How to create an EC2 instance on AWS and connect to it via terminal

This is a tutorial for creating a new instance on aws. If you are new to aws, then this video will help you get started on aws.

I list down here the steps which I have covered in the video.

1. Select the Region which is nearest to you. I have selected here EU-WEST-1, but you are free to select any one which is near to you.

2. Then select the OS family. I have selected here Amazon Linux 1. The reason is, its managed by amazon. So it is more secured than plain centos.

3. Select the instance type. For testing purpose, I have just selected t2.micro which falls into free tier. But you are free to choose what every instance type matches your demand.

4. Set a security group. Its important to open ports which will be used. Like port 22, 80, 443. All other ports should be turned off by default. For port 22 only give access to your IP to have a more security on your instance.

5. Select storage EBS as the root volume.

6. Create a key pair for that instance to connect from your terminal.

7. Once you have completed all the steps then review again. If ok then proceed next. An instance will be created for you.

8. Once your instance is up and running then you will see an green icon in your EC2 instance list. Grab the instance IP / URL. Then connect it from your terminal.

8 thoughts on “How to create an EC2 instance on AWS and connect to it via terminal”

  1. Pingback: How to setup PHP 7.1in Amazon Linux 1 - AWS with Atiq

  2. Pingback: How to install Install Docker In Ubuntu 18 - AWS with Atiq

  3. Pingback: How to use CloudWatch to Monitor Memory and access log - AWS with Atiq

  4. Pingback: How to use CloudWatch to Monitor RAM - AWS with Atiq

  5. Pingback: How to Install PHP 8 on AWS EC2 instance - AWS with Atiq

  6. Pingback: How to Setup MongoDB server in Amazon Linux 2 - AWS with Atiq

  7. Pingback: How to Setup MySQL server in Ubuntu 18.04 in AWS - AWS with Atiq

  8. Pingback: How to Setup WordPress Using Docker in AWS - Top WordPress Tips

Leave a Comment

Your email address will not be published. Required fields are marked *