How to Launch/Create an AWS EC2 instance(Ubuntu)
Let’s Get Started
- Go to Amazon Web Services Website. (link)

2. Sign in to your AWS account using Root user if you don’t have account please create.
- Link for Create Account https://portal.aws.amazon.com/billing/signup#/start
- For Sign In Click on My Account -> AWS Management Console

3. Go to Find Services and choose EC2

4. Click on Instances and then click on Launch Instance

5. You see a series of AMI entries. Amazon owns all these AMIs.
What is AMI?
- The Amazon Image Machine (AMI) is like template that is configured with an operating system and other software, which determine the user’s operating environment.
For this article we are using Ubuntu (AMI)
- Search for Ubuntu Server 18.04 LTS and click on Select

6. You see a listing of instance types. Choose an instance type t2.micro (Free Tier you don’t have to pay) click on Next: Configure Instance Details

7. Just have a look on Details and don’t change anything as of now, we will see this in upcoming blog and click on Next: Add Storage

8. Keep 8 GB for now. It if sufficient to launch an instance and click on Next: Add Tags

9. Don’t change anything here keep as it is and click on Next: Configure Security Group

10. Choose select an existing security group check default and click on Review and Launch

11. Review All Instance configuration and click on Launch

12. Follow below steps to create a new key pair
- Choose Create a new key pair
- Enter name for key in field Key pair name
- Download key and click on Launch Instance
- Click on View Instances
13. Now your Instance is ready

How to login EC2 instance?
1) For Linux User use below steps to connect
- chmod 400 /path_of_your_pem_file
- ssh –i /path_of _your_pem_file ubuntu@public_dns
2) For Windows User use below steps to connect
- Download a putty and puttygen tools.
Note — You need to convert your pem key to ppk for login using putty (Use puttygen for generate ppk from pem key)
- Open putty and Enter public IP in Host Name field keep port 22 as it is

- You need to give key to get the access click on
Connections -> SSH -> Auth
Click on Brows and select your ppk key ( pem will not work)
Click on Open

Finally your first EC2 Ubuntu Server is ready to use
Note — Default user for sever is ubuntu















Comments
Post a Comment