Create Public Subnet

Create Public Subnet

  1. Click Subnets.
  • Click Create subnet.

VPC

  1. At the Create subnet page.
  • In the VPC ID section, click Lab VPC.
  • In the Subnet name field, enter Lab Public Subnet.
  • In the Availability Zone section, select the first Availability zone.
  • In the field IPv4 CIRD block enter 10.10.1.0/24.

VPC

  1. Scroll to the bottom of the page, click Create subnet.

  2. Click Lab Public Subnet.

  • Click Actions.
  • Click Edit subnet settings.

VPC

  1. Click Enable auto-assign public IPv4 address.
  • Click Save.

VPC

  1. Click Internet Gateways.
  • Click Create internet gateway.

VPC

  1. At the Create internet gateway page.
  • In the Name tag field, enter Lab IGW.
  • Click Create internet gateway.

VPC

  1. After successful creation, click Actions.
  • Click Attach to VPC.

VPC

  1. At the Attach to VPC page.
  • In the Available VPCs section, select Lab VPC.
  • Click Attach internet gateway.
  • Check the successful attaching process as shown below.

VPC

  1. Next we will create a custom route table to assign to Lab Public Subnet.
  • Click Route Tables.
  • Click Create route table.

VPC

  1. At the Create route table page.
  • In the Name field, enter Lab Publicrtb.
  • In the VPC section, select Lab VPC.
  • Click Create route table.
  1. After creating the route table successfully.
  • Click Edit routes.

VPC

  1. At the Edit routes page.
  • Click Add route.
  • In the Destination field, enter 0.0.0.0/0
  • In the Target section, select Internet Gateway and then select Lab IGW.
  • Click Save changes.

VPC

  1. Click the Subnet associations tab.
  • Click Edit subnet associations to proceed with the associate custom route table we just created in Lab Public Subnet.

VPC

  1. At the Edit subnet associations page.
  • Click on Lab Public Subnet.
  • Click Save associations.

VPC

  1. Check that the route table information has been associated with Lab Public Subnet and the internet route information has been pointed to the Internet Gateway as shown below.

VPC