Posted on November 1, 2020 - 2 minute read

How to launch an EC2 instance

The intent is to show how to quickly launch your first EC2 instance.

Step 1 : Choose the type of instance

Step 2 : Create a Security Group

Step 3 : Create a Key Pair

Step 4 (for Linux instances) : Connect to instance using SSH

For Linux users:

chmod 400 my-key-pair.pem

Or, if you are using Windows:

At the SSH client of your choice, input the details provided.

ssh -i my-key-pair.pem user@server-public-dns

Example:

ssh -i "linux-lab.pem" ubuntu@ec2-52-90-153-75.compute-1.amazonaws.com

SSH connection

Step 4 (for Windows instances) : Connect to instance using RDP