Step-by-Step Guide to Deploying an EC2 Instance on AWS and Connecting it to Your Computer

Table of contents

  1. Go to the instances present under EC2 services on AWS

  2. choose a name

  3. Choose an OS image you want to launch on your instance

  4. Create a new key pair and save it to your local

  5. Under network setting leave all as default

  6. Leave all the settings as default and click on launch instance

  7. Congrats! You've created an instance

  8. Go to the instances now and wait for your instance to start running

  9. Click on instance ID and copy the public IPv4 address

  10. Now open a terminal on your local and run the command

    chmod 400 <Path-to-your-key-pair-file>
    
    ssh -i <Path-to-your-key-pair-file> <OS-image-name>@<your-copied-public-IPv4-address>
    

    congrats! you are now connected to the instance you have created on AWS

0
Subscribe to my newsletter

Read articles from Praduman Prajapati directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Praduman Prajapati
Praduman Prajapati

Bridging the gap between development and operations. Hey there! I’m a DevOps Engineer passionate about automation, cloud technologies, and making infrastructure scalable and efficient. I specialize in CI/CD, cloud automation, and infrastructure optimization, working with tools like AWS, Kubernetes, Terraform, Docker, Jenkins, and Ansible to streamline development and deployment processes. I also love sharing my knowledge through blogs on DevOps, Kubernetes, and cloud technologies—breaking down complex topics into easy-to-understand insights. Let’s connect and talk all things DevOps!