Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read
Step-by-Step Guide to Deploying an EC2 Instance on AWS and Connecting it to Your Computer
P

👋 Hi, I’m Praduman Prajapati — a DevOps Engineer with hands-on experience in building production-grade CI/CD pipelines, containerized applications, and scalable, secure, and automated cloud infrastructure.

I’ve work on multiple real-world projects including: • Automated CI/CD pipelines using Jenkins, GitHub Actions, and ArgoCD • Kubernetes cluster provisioning and deployment on AWS (EKS and kubeadm) • Containerization and orchestration with Docker and Kubernetes • Infrastructure provisioning and automation using Terraform and Ansible • DevSecOps implementations with Trivy, SonarQube, OWASP, Prometheus, and Grafana • Production-grade deployments of applications on cloud infrastructure

  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

More from this blog

P

Praduman's blog

22 posts

Hi, I'm learning DevOps tools and concepts. I enjoy sharing my learning experiences and projects through blogs to help others who are on a similar journey.

Deploy EC2 Instance on AWS & Connect to Computer