DEV Community

Cover image for Day 6.Launch EC2 Instance
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

Day 6.Launch EC2 Instance

Lab Information

The Nautilus DevOps team is strategizing the migration of a portion of their infrastructure to the AWS cloud. Recognizing the scale of this undertaking, they have opted to approach the migration in incremental steps rather than as a single massive transition. To achieve this, they have segmented large tasks into smaller, more manageable units.

For this task, create an EC2 instance with following requirements:

1) The name of the instance must be xfusion-ec2.

2) You can use the Amazon Linux AMI to launch this instance.

3) The Instance type must be t2.micro.

4) Create a new RSA key pair named xfusion-kp.

5) Attach the default (available by default) security group.

Lab Solutions

Step-by-Step Instructions (AWS Console)

  1. Log in

Use your console URL and credentials.
Ensure region = us-east-1 (N. Virginia).

  1. Navigate to EC2

Search for EC2 service in the console.

  1. Launch Instance

Click Launch instance.

  1. Configure Instance Details 4.1 Name the instance

In the "Name and tags" section:

Name: xfusion-ec2

4.2 Choose Amazon Linux AMI

Under “Application and OS Images (Amazon Machine Image) (AMI)”:

Select:

Amazon Linux 2 AMI (HVM), SSD Volume Type
(or Amazon Linux 2023 if that’s what your lab provides — both satisfy "Amazon Linux AMI")

4.3 Select Instance Type

Choose:

t2.micro
(Eligible for free tier, commonly used in labs)

4.4 Create Key Pair

Under Key pair (login):

Click Create new key pair

Enter:

Name: xfusion-kp

Key pair type: RSA

Private key file format: .pem (recommended)

Click Create key pair
(A .pem file downloads automatically — save it securely.)

4.5 Security Group

Under Network settings:

Choose Select existing security group

Select the default security group for the default VPC
(It will typically be named “default”)

No changes needed.

  1. Launch

Scroll down and click Launch instance.


Resources & Next Steps


Credits

  • All labs are from: KodeKloud
  • Thanks for providing them.

Top comments (0)