Launch EC2 Instance

1. Open EC2 Region

Login to your AWS Console / Navigate to Your AWS Region on the top right corner.

For example: Singapore Region (ap-southest-1)

cloud.vn

2. Access EC2 Service

Enter ec2 and click on the EC2 service cloud.vn

EC2 Dashboard cloud.vn

By default, there is no EC2 instances running. There is a default security group & VPC for each Region. cloud.vn

The default security group allows on the incoming and outgoing traffic inside the VPC, but not outside.

3. Launch an EC2 instance

Go to Instances tab on the left sidebar, Click on Launch instances cloud.vn

Click on Select Amazon Linux (Free tier eligible) cloud.vn

Select instance type t2.micro / Click Next: Configure Instance Details cloud.vn

Configure Instance Details (Using default configuration)

  • Network: Default VPC

  • Subnet: No preference

  • Auto-assign Public IP: Enable

Click Next: Add Storage cloud.vn

Add Storage

  • Enter Size (GiB): 8GB

  • Delete on termination: Yes

Click on Next: Add tags cloud.vn

Add tags

Enter your tags for naming. cloud.vn

Configure Security Group cloud.vn

Select an existing security group / Click Review & Launch cloud.vn

Click Launch cloud.vn

4. Create Keypair

cloud.vn

Select Create a new key pair / Enter key pair name: awstraining2021

Click Download Key Pair to your favourite folder to access later.

Click Launch instances cloud.vn

Instance is lanching… cloud.vn

Status check is passed cloud.vn

Instance Detail Info - Public IP Address cloud.vn

Instance Security Info - Security groups cloud.vn

Click on the default security group cloud.vn

Add rule cloud.vn

Select All ICMP - IPv4 and Source Anywhere / Click Save rules cloud.vn

Successfully! cloud.vn

Copy the EC2 instance’s public IP Address (Eg: 54.179.142.0) cloud.vn

PING command from your local computer cloud.vn

Congratulations! You have launched an EC2 instance successfully!