Launching an EC2 instance
Instructions
Q&A (0)
Notes (0)
Resources (0)
Saving Progress...
Resources
There are no resources for this lesson.
Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.
In this lesson, we will go through the steps of launching an Amazon Elastic Compute Cloud (EC2) instance.
To begin, log in to your AWS account and go to the EC2 dashboard by clicking on the "Services" menu at the top of the page and selecting "EC2" under the "Compute" category:
Click the "Launch Instance" button to begin the process of launching an EC2 instance.
Under Name and tags specify a name for your EC2 instance. I am going to name it AmazonLinux after the OS:
The Application and OS Images can be left blank at Amazon Linux, or you are free to select a specific image or OS. Remember that some of these can incur additional (probably not significant) charges.
Under Instance type, t2.micro should be selected by default which falls under the free tier so we will chose this option:
Amazon EC2 key pairs are a security feature of Amazon EC2 that allows users to securely connect to their Amazon EC2 instances. Since we haven't configured any key pairs let's click the Create new key pair to do so now. I will use firstkeypair as the name and choose RSA and .pem.
If you plan to use PuTTY (i.e. your on Windows and don't have an SSH client which is provided on newer installations of Windows), you will want to use .ppk for the private key file format.
Click the Create key pair button and you will see the key pair download. You might want to back this file up because if you lose it you'll need to recreate your keypair and it can make your EC2 instances unreachable.
Now you should see the firstkeypair selected in the key pair section.
Expand the Network settings and change the Allow SSH traffic from to My IP.
This ensures that other people cannot connect to your VM and do something that would break the rules (such as hacking or other illegal actions) using your AWS account resources.
We can leave the Configure storage section default at 8GB. Remember, we get up to 30GB free (check to verify), so that means we can have multiple VMs as long as they fall under the 30GB of storage.
Review the settings you have chosen, then click Launch instance:
You will now see the page displaying the VM creation process. Once it is done, either click the instance ID shown below or go back to the EC2 instances overview page by clicking Instances in the breadcrumbs at the top of the screen.
Note that I needed to refresh the page before my EC2 instance was visible, so you may need to do that as well before seeing your instance in the list:
That's it! You've successfully created your AWS EC2 Instance. Great job! Next is connecting to the EC2 instance. See you in the next lecture!