Create a VPC 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 be using the AWS CLI to create the VPC.

  2. Duration: 45 minutes

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

Architecture Diagram

Task Details

  1. Log into the AWS Management Console.

  2. Create an IAM Role.

  3. Launch an EC2 Instance

  4. SSH into EC2 Instance

  5. Create a VPC using AWS CLI.

  6. Create a Subnet.

  7. Create an Internet gateway.

  8. Attach it to the VPC.

  9. Create a custom Route table.

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

  11. Associate the Subnet to your Route table

  12. View the new VPC