1 / 18

www_devopscheetah_com_how-create-an-ec2-instance-on-aws_

EC2 instance is a virtual server in AWS language, where we can run our applications. We can choose our flavour of operating system like linux, windows. It is a web service where an AWS subscriber can request and provision a compute server in AWS cloud. AWS provides multiple instance types for the respective business needs of the user.

Atulr
Download Presentation

www_devopscheetah_com_how-create-an-ec2-instance-on-aws_

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DevOpsCheetah Home Linux Cloud  Programming  Monitoring  CI/CD  Categories  Create an EC2 instance on AWS  June 2, 2021  Atul Rajput  0 Comments EC2 instance is a virtual server in AWS language, where we can run our applications. We can choose our flavour of operating system like linux, windows. It is a web service where an AWS subscriber can request and provision a compute server in AWS cloud. AWS provides multiple instance types for the respective business needs of the user. Security Group is used to allow the inbound traffic on the server, by default everything is disallow in inbound rules and everything is allowed in outbound rules. So, be careful when we are allowing the traffic or user for access. Prerequisites to create an EC2 instance:- VPC SUBNET Security Group AMI Instance type "Cookie Settings" to provide a controlled consent. We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit Cookie Settings Accept All

  2. In the previous blog, I explained about “How to create VPC and subnets https://www.devopscheetah.com/how-we-can-create-vpc-subnets-on-aws/“. So, we are using same VPC and subnet here to create an EC2 Instance. Now we are going to create an instance, click on services and select EC2 service.

  3. Now click on instances, left side of the screen then you will this screen.

  4. Now click on launch instance then you will see this screen select the OS like we are going to work on CentOS 7. select the AMI (Amazon Machine Image) like we are going to work on CentOS 7 so tab on “AWS marketplace” and search CentOS 7 image and select that.

  5. Now select the instance type as per the requirement, Click on continue

  6. Presently we are going to use free tier instance type t2.micro, select that type and click on next. It’s our requirement which instance type we require for our projects like 4core and 16GB ram. Now provides the configuration details:

  7. Define the details: No. of instances = 1 (we can define as per the requirement how many instances we want) Network = Select the VPC in which you want to create an instance Subnet = Select the subnet in which you want to create Placement group = Placement Groups are logical groupings or clusters of instances in the selected AWS region Capacity Reservation = Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. IAM Role = Through roles we can assign permissions to the instance (like fetch data from s3 bucket)

  8. Enable Termination Protection = Always enable it because it protects from accidental termination After defining these details click on next(add storage) After click on that you will see this screen and see the button of ”ADD NEW VOLUME” if you want to add more storage you can add or increase the volume size like 30GB instead to add another disk but we are going with same. Now click on next(ADD TAGS)

  9. Now, you will see this image

  10. Define the appropriate name of the instance, which is easy to identify and recall. Now click on next (Configure security Group). Then you will this screen

  11. Create a new security group or select an existing security group. Now we are going to create new security group. Define the name and description and we add some more rules for http and allow the worldwide traffic. Note:- We are assigning worldwide ssh access, but its not recommended always give ssh access to minimal users. Type = HTTP Source = (In this we define the traffic, custom, anywhere or my ip)

  12. Now click on Review and Launch and then you will see this image

  13. And now click on Launch and you will see this image We need to create or select an existing key pairs and we are going to create new key pair. Select a new key pair option and give the key pair name.

  14. After this click on download key pair, because it is necessary for us to login into an instance. Be careful don’t loose the pem file because if you loose you will be in trouble.

  15. Now you will see the downloaded file with extension of .pem(EMT-TOK.pem) Now click on Launch instances and finally your instance is created.

  16. Now you can see your instance is ready.   If you want to learn “How to create VPC and Subnets” please click on the link given below:- https://www.devopscheetah.com/how-we-can-create-vpc-subnets-on-aws/   Tags: Amazon web service , EC2 instance on AWS , Elastic Compute Cloud 1 thought on “Create an EC2 instance on AWS” Avitesh Tondak says: June 3, 2021 at 7:58 am

  17. Gajab Reply Leave a Reply Your email address will not be published. Required fields are marked * Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment. POST COMMENT

  18.  Previous Post Next Post  Related Posts    Blogs About Us Contact Us Privacy Policy © 2021. DevOpsCheetah.com PDFmyURL.com - convert URLs, web pages or even full websites to PDF online. Easy API for developers!

More Related