DEV Community

Cover image for Steps to Launch a Virtual Machine (EC2 Instance) in AWS
Nwafor Somadina Emeka
Nwafor Somadina Emeka

Posted on

Steps to Launch a Virtual Machine (EC2 Instance) in AWS

🚀 Steps to Launch a Virtual Machine (EC2 Instance) in AWS

  1. Log in to AWS Management Console

  2. Navigate to EC2 Service

    • In the search bar, type EC2 and select it. This opens the EC2 dashboard.

Navigate

  1. Launch Instance
    • Click Launch Instance.

Launch Instance

  • Give your instance a name (e.g., "feb30ec2").
  1. Choose an Amazon Machine Image (AMI)

    • Select the operating system you want (e.g., Ubuntu, Amazon Linux, Windows Server).
  2. Select Instance Type

    • Choose hardware configuration (CPU, memory).
    • For beginners, t2.micro or t3.micro is Free Tier eligible.

Instance Type

  1. Configure Key Pair
    • Create or select a key pair for SSH/RDP access.- _feb20key _
    • Download the .pem file (for Linux) or .ppk (for Windows with PuTTY).

Configure Key Pair

key

  1. Configure Network Settings (use default)
    • Place the VM in a VPC and subnet.
    • Allow inbound rules (e.g., SSH on port 22 for Linux, RDP on port 3389 for Windows).
  2. Add Storage (use default)
    • Define the size of your root volume (e.g., 8 GB for Linux).
    • You can add extra volumes if needed.
  3. Review and Launch
    • Double-check settings, then click Launch Instance.

Launch

  1. Connect to Your VM
    • For Linux: use SSH with your key file.
    • For Windows: use RDP with the administrator password (retrieved from AWS console).

Linux

Linux

success

Please like, share and comment.

Top comments (1)

Collapse
 
precious_nwafor profile image
Precious Uchechukwu Nwafor

Beautiful. Welldone