Tech Junkie Blog - Real World Tutorials, Happy Coding!: Iaas with AWS : Create an EC2 Amazon Linux 2 Instance

Monday, August 10, 2020

Iaas with AWS : Create an EC2 Amazon Linux 2 Instance

In this blog we are going to start our journey into AWS infrastructure with the creation of an EC2 instance which is probably the most common task you'll ever do. 

 Here are the steps to create an EC2 instance on AWS:

1. Log into AWS and on the "Find Services" search box type EC2 and press enter 

2. You will be taken to EC2 screen, then click on "Instances"

2. Click on "Launch Instance"


3. On "Step 1: Choose an Amazon Machine Image (AMI)" screen select "Amazon Linux 2 AMI (HVM), SSD Volume Type"


4. On the "2. Choose Instance Type" screen select the one that says "Free tier eligible"


5. Then select "Next: Configuration Instance Details" at the bottom of the screen
6. On the "3. Configure Instance" select the subnets that are closest to you
7. Then select "Next: Add Storage" at the bottom of the screen
8. Accept the default and press "Next: Add Tags"

9. Select "Add Tag", then select "Next: Configure Security Group"

10. On this screen you are going to set the configuration for SSH and HTTP traffic, select "Create new security group" then give it a name and description.  There will be and "SSH" rule already assigned accept it, now we are going to add the HTTP rule by clicking on the "Add Rule" button. Select "HTTP" from the dropdown list.


11.  Select "Review and Launch" at the bottom of the screen.
12. Make sure the t2.micro image is selected if you want to stay in the free tier, select "Edit instance type" to select it, if it's not. Then click "Launch"

13.  On the "Launch Screen" click on the "Download Key Pair" to download the private key file(.pem). Make sure you remember where you download this file because you will need it to connect the instance later on.  Give your key pair a name and select "Launch Instances"

14. On the "Launch Status" screen click on the instance link to see the status of instance deployment, it will take a couple of minutes to complete the deployment but eventually you will see the the "Instance State" is "running" and the "Status Checks" is good


You've just deployed an EC2 instance in the cloud.  Doesn't that sound cool, now you can binge on coffee without guilt because you did something cool for today.  Actually as a developer there' really no guilt in the first place :)  In the next blog we will learn how to connect to our AWS instance in the wild. See you then.

2 comments:

  1. Thanks for sharing such an Amazing information, I Couldn't leave without reading your blog. I have read another good blog, I think you have read it too. click here AVG belgie contacteren

    ReplyDelete
  2. Amazing Article ! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up

    AWS Training Hyderabad/
    AWS Course Hyderabad/
    AWS Training Institutes Hyderabad/
    AWS Online Training Hyderabad/

    ReplyDelete

Search This Blog