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

Monday, September 14, 2020

Iaas with AWS : Create an EC2 Amazon Windows 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 "Microsoft Windows Server 2019 Base with Containers", make sure it says "Free tier eligible", then click on the "Select" button.



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.
For Windows server we have to add another rule which will allow us to connect to the server with RDP.  So in the type "Type" dropdown menu select "RDP" and for the IP allow all with the value 0.0.0.0/0


Now I already have a Security Group with those rules so I just need to select it


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".  For this step if you already created a key pair you can use an existing one. Else you have to click on the "Download Key Pair" button if you have to create a new key pair, else you cannot connect to your AWS EC2 instance.


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.  In the next blog we will learn how to connect to our AWS instance in the wild. See you then.

No comments:

Post a Comment

Search This Blog