Create Public subnet

Create Public subnet

  1. Click Subnets.

    • Click Create subnet. VPC
  2. At the Create subnet page.

    • In the VPC ID section, click select Lab VPC.
    • In the Subnet name section, enter Lab Public Subnet.
    • In the Availability Zone section, select the first Availability zone.
    • In the IPv4 CIDR block section, enter 10.10.1.0/24. VPC VPC
  3. Scroll to the bottom of the page, click Create subnet.

  4. Click select Lab Public Subnet.

    • Click Actions.
    • Click Edit subnet settings. VPC
  5. Click select Enable auto-assign public IPv4 address.

    • Click Save. VPC
  6. Click Internet Gateways.

    • Click Create internet gateway. VPC
  7. At the Create internet gateway page.

    • In the Name tag section, enter Lab IGW.
    • Click Create internet gateway. VPC
  8. After successful creation, click Actions.

    • Click Attach to VPC. VPC
  9. At the Attach to VPC page.

    • In the Available VPCs section, select Lab VPC.
    • Click Attach internet gateway.
    • Check the attachment process is successful as shown below. VPC
  10. Next we will create a custom route table to attach to Lab Public Subnet.

    • Click Route Tables.
    • Click Create route table. VPC
  11. At the Create route table page.

    • In the Name section, enter Lab Publicrtb.
    • In the VPC section, select Lab VPC.
    • Click Create route table. VPC
  12. After the route table is successfully created.

    • Click Edit routes. VPC
  13. At the Edit routes page.

    • Click Add route.
    • In the Destination section, enter 0.0.0.0/0
    • In the Target section, select Internet Gateway then select Lab IGW.
    • Click Save changes. VPC
  14. Click the Subnet associations tab.

    • Click Edit subnet associations to proceed associating the custom route table we just created to Lab Public Subnet. VPC
  15. At the Edit subnet associations page.

    • Click select Lab Public Subnet.
    • Click Save associations. VPC
  16. Check that the route table information has been associated with Lab Public Subnet and the route to internet is pointing to the Internet Gateway as shown below. VPC