AWS Builder Center

Day 9 Of Cloud with AWS: Launching an EC2 Instance

#100DaysOfCloud challenge using AWS #100DaysOfCloud challenge using AWS

In today's task:
Launch an EC2 Instance with the following specifications:
SettingValue
Instance Namedevops-ec2
AMIAmazon Linux
Instance Typet2.micro
Key Pairdevops-kp
Security GroupDefault security group

Step 1: Open the EC2 Dashboard

  1. Log in to the AWS Management Console.
  2. Search for EC2 in the AWS services search bar.
  3. Open the EC2 Dashboard.

Step 2: Start Launching an Instance

  1. Click Launch Instance.
  2. Under the Name and tags section, enter:
1
devops-ec2

Step 3: Select Amazon Linux AMI

Under the Application and OS Images (Amazon Machine Image) section:
  1. Choose Amazon Linux.
  2. Select the latest available Amazon Linux AMI.
Example:
  • Amazon Linux 2023 AMI

Step 4: Choose Instance Type

Under the Instance type section:

  1. Select:
1
t2.micro
This instance type is eligible for the AWS Free Tier and is commonly used for lightweight workloads and testing environments.

Step 5: Create a New RSA Key Pair

Under the Key pair (login) section:
  1. Click Create new key pair.
  2. Configure the following:
SettingValue
Key pair namedevops-kp
Key pair typeRSA
Private key file format.pem
  1. Click Create key pair.
The private key file will automatically download to your local machine. Store it securely because it is required for SSH access.

Step 6: Configure Network Settings

Under the Network settings section:
  1. Keep the default VPC settings.
  2. Under Security group, select:
1
Select existing security group
  1. Choose the default security group available in the VPC.
The default security group typically allows internal communication between resources within the same group.

Step 7: Review and Launch

  1. Verify all configuration details.
  2. Click Launch instance.
AWS will begin provisioning the EC2 instance.

Step 8: Verify the Instance

After deployment:
  1. Navigate to Instances in the EC2 dashboard.
  2. Confirm:
    • Instance name is devops-ec2
    • Instance type is t2.micro
    • Key pair is devops-kp
    • Security group is default
    • Instance state is Running
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article