How to Launch/Create an AWS EC2 instance(Ubuntu)




 Let’s Get Started

  1. Go to Amazon Web Services Website. (link)
Image for post

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

Image for post

3. Go to Find Services and choose EC2

Image for post

4. Click on Instances and then click on Launch Instance

Image for post

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

Image for post

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

Image for post

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

Image for post

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

Image for post

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

Image for post

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

Image for post

11. Review All Instance configuration and click on Launch

Image for post

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

Image for post

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

Image for post

- 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

Image for post

Finally your first EC2 Ubuntu Server is ready to use

Note — Default user for sever is ubuntu



Comments

Popular posts from this blog

Remote Friendly Companies

Introduction to Istio, Kiali, Jaeger, Grafana, and Prometheus

Cloud Foundry app toolchain using IBM BLUMIX