Create a new Instance (Ubuntu 14.04) on AWS EC2 and setup Security Groups

To create a new Instance (Ubuntu 14.04) on AWS EC2 and setup Security Groups is a very simple task and will take approx 5-10 minutes to complete. In this post, we will see how we can create a new Instance (Ubuntu 14.04) on AWS EC2.

Step 1: First login to your AWS console, select any region and click on EC2 link.

Create a new Instance (Ubuntu 14.04) on AWS EC2 1

Step 2: You will see the EC2 Dashboard screen. Now click on Launch Instance button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 2

Step 3: Choose any Amazon Machine Image (AMI) which basically means the instance type you want to launch. In this post I have selected  “Ubuntu Server 14.04 LTS (HVM), SSD Volume Type” but you can select any Instance which you want to launch.

Create a new Instance (Ubuntu 14.04) on AWS EC2 3

Step 4: Next step is to choose an Instance type. In this post I have selected “t2.micro” you can select any Instance type as per your requirement and then click Next:Configure Instance Details button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 4

Step 5: Configure Instance Details and click on Next: Add Storage button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 5

Step 6: Configure Add Storage and then click on Next: Tag Instance button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 6

Step 7: Tag Instance ( A tag consists of a case-sensitive key-value pair. For example, you could define a tag with key = Name and value = Webserver.) and click Next: Configure Security Group button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 7

Step 8: Configure Security Group

A security group is a set of firewall rules that control the traffic for your instance. On this page, you can add rules to allow specific traffic to reach your instance.
For example, if you want to set up a web server and allow Internet traffic to reach your instance, add rules that allow unrestricted access to the HTTP and HTTPS ports.

So, I have added rule HTTP:80 and HTTPS:443. But you can configure Security Group according to your need and click on Review and Launch button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 8

Step 9: Next step is to review your Instance details and then click on the Launch button.

Create a new Instance (Ubuntu 14.04) on AWS EC2 9

Step 10: Select an existing key pair or create a new key pair.

A key pair consists of a public key that AWS stores, and a private key file that you store. Together, they allow you to connect to your instance securely. For Windows AMIs, the private key file is required to obtain the password used to log into your instance. For Linux AMIs, the private key file allows you to securely SSH into your instance.

If you don’t have any key pairs. Please create a new key pair by selecting the Create a new key pair option above to continue.

Then you have to download the private key file (*.pem file) before you can continue. Store it in a secure and accessible location. You will not be able to download the file again after the instance has been created so please be careful and remember to download the same.

Create a new Instance (Ubuntu 14.04) on AWS EC2 10

After downloading the *.pem file click on Launch Instance button and wait for the instance to launch then you will see the below “Launch Status” screen that means your instance has been created successfully.

Create a new Instance (Ubuntu 14.04) on AWS EC2 11

%d bloggers like this: