Create a VPC and launch an EC2 to publish a page using AWS CLI commands

Lab Details

  1. This lab walks you through creating a VPC, some subnets, an Internet Gateway, a route table, and then configuring these services to work together to form an effective VPC. We will then launch an EC2 instance. into the VPC and create a web page using AWS CLI commands.

  2. Duration: 1 hour 15 minutes

  3. AWS Region: US East (N. Virginia) us-east-1


  1. Log into the AWS Management Console.

  2. Create an IAM Role.

  3. Create a VPC.

  4. Create a Subnet.

  5. Create an Internet gateway.

  6. Attach it to the VPC.

  7. Create a custom Route table.

  8. Edit the route table and add all traffic routes to the internet gateway.

  9. Associate the subnet to your Route table.

  10. Create a security group with port 80 enabled.

  11. Create a new key pair.

  12. Launch a new EC2 instance with an HTML page

  13. Allocate an Elastic IP.

  14. Attach the Elastic IP with EC2 Instance.

  15. View the website in the web browser.

Architecture Diagram

Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses