Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / All-Topics

How to Create AWS EC2 Instance (ubuntu) with Elastic IP (Step-by-Step Guide)

5.00/5 (1 vote)
10 Feb 2016CPOL2 min read 5.4K  
How to create AWS EC2 Instance (ubuntu) with Elastic IP (Step-by-Step guide)

Pre-requisites

You need a AWS subscription: Get it done here.

Time to nail it down.


Step 1. Create EC2 Instance

  1. After registration, you will land here:

  2. Click on EC2 then click on Launch Instance:

  3. Choose an AMI (Amazon Machine Image from list) :- Click on Quick Start and then select Ubuntu Server 14.04 LTS (HVM), SSD Volume Type.

  4. Choose Instance type: you have to choose size of instance RAM and others configuration here. You will be charged accordingly (Choose free tier for now).

  5. Configure Instance details: Leave them as it is for now. No need to change it on a basic level.

  6. Configure Storage for this instance: By-default, it is 10 GB. You can extend it as per your need (upto 30 GB is covered in free tier).

  7. Give your Instance a Name (Tag it): Tag your instance. Name is the default Tag. You can provide a name for it.

  8. Configure Security Group: Create a security group so that you can access your blog from outside world. Open port 80,22,443. Name it as you wish.

  9. Click on Review and Launch, then click on Launch. It will land you to key-pair creation page. Create a new key and download that key and then click on Launch instance.

  10. Click on View Instance to view your newly created instance


Step 2. Create Elastic IP to Access Newly Created EC2 Instance Publicly

  1. Click on Elastic IPs

  2. Then click on Allocate a New IP:

  3. Select your newly created IP and click on Associate Address. It will open another dialog box to select EC2 Instance. Select your instance by typing name of it and click on Associate button. Now, you can access your instance publicly by typing your newly created Elastic IP in address bar of any browser.

  4. Use ubuntu as username and key file (pem) to access newly created ubuntu instance on putty/filezilla.

     

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)