How to set up Amazon EC2

Amazon Elastic Compute Cloud (EC2) is a popular cloud computing service that Amazon Web Services (AWS) offers. It allows users to deploy and manage virtual servers in the cloud easily.

Amazon EC2 provides a variety of instance types structured to fit different use cases. These include numerous CPU, memory, storage, and network capacity combinations. It allows users to choose the optimized bundle of resources for their applications. The instances enable us to maximize or minimize resource usage according to our requirements.

Creating an EC2 instance

Search for “EC2” on the AWS console and click the EC2 service from the search results. This takes us to the EC2 dashboard.

Note: Before starting this lab, make sure to select us-east-1 US East (N. Virginia) region as the default region in the cloud console. We will not be able to access resources from other regions.

From the sidebar, click “Instances” under “Instances,” and then click the “Launch instances” button.

1. Choose an Amazon Machine Image (AMI)

Select the “Amazon Linux 2 AMI (HVM) Kernel 5.10, SSD Volume Type” AMI, with 64-bit (x86) architecture.

2. Choose an instance type

Select the t2.micro type from the list.

3. Configure instance details

We don’t need to change anything on this page. Leave everything as it is and proceed to the next step.

4. Key pairs

From the “Key pair name” dropdown menu, select the “Proceed without a key pair (Not recommended)” option, as we don’t need to create any new key pairs.

5. Configure Network settings

  • Keep the “Create Security Group” as the default option, and ensure the “Anywhere” option is selected from the source drop-down.

  • Select and enable the “Allow HTTP traffic from the Internet” option.

6. Add storage

There should already be an 8 GiB gp2 Amazon EBSAmazon Elastic Block Store (EBS) uses volumes as a block storage device to store persistent and frequently updated data. storage selected. It will be attached to the instance we’re about to launch. We don’t need to add any new storage for this instance or modify the existing one.

Leave everything at its default and proceed to the next step.

7. Launch Instance

Review the settings for the new instance before clicking the “Launch” button to launch our instance.

Congratulations! You’ve successfully created an EC2 instance.

Click “View Instances” to return to the “Instances” page. Within a few minutes, the status of our newly created instance should automatically change to “Running.”

Click “Instances” under “Instances"
1 of 7

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved