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)
2. Access EC2 Service
Enter ec2 and click on the EC2 service
By default, there is no EC2 instances running. There is a default security group & VPC for each Region.
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
Click on Select Amazon Linux (Free tier eligible)
Select instance type t2.micro / Click Next: Configure Instance Details
Configure Instance Details (Using default configuration)
Network: Default VPC
Subnet: No preference
Auto-assign Public IP: Enable
Add Storage
Enter Size (GiB): 8GB
Delete on termination: Yes
Add tags
Select an existing security group / Click Review & Launch
4. Create Keypair
Select Create a new key pair / Enter key pair name: awstraining2021
Click Download Key Pair to your favourite folder to access later.
Instance Detail Info - Public IP Address
Instance Security Info - Security groups
Click on the default security group
Select All ICMP - IPv4 and Source Anywhere / Click Save rules
Copy the EC2 instance’s public IP Address (Eg: 54.179.142.0
)
PING command from your local computer
Congratulations! You have launched an EC2 instance successfully!