Build an AWS VPC with public and private subnets

8 steps · about 1 h 24 min · Beginner

  1. Plan VPC and subnet CIDR blocks (reference, Amazon Web Services, 10 min)

    Avoids address ranges that clash or run out later.

  2. Create a VPC with the console wizard (tutorial, Amazon Web Services, 12 min)

    Builds subnets, route tables and gateways in one pass.

  3. Decide what makes a subnet public or private (reference, Amazon Web Services, 10 min)

    Explains that the route table, not the name, sets exposure.

  4. Attach an internet gateway for public subnets (reference, Amazon Web Services, 8 min)

    Gives public instances a path to and from the internet.

  5. Give private subnets outbound access with a NAT gateway (reference, Amazon Web Services, 12 min)

    Lets private servers fetch updates without being reachable.

  6. Read and edit VPC route tables (reference, Amazon Web Services, 12 min)

    Shows how each subnet's traffic is steered.

  7. Add network ACLs as a subnet-level filter (reference, Amazon Web Services, 10 min)

    Explains stateless rules that sit alongside security groups.

  8. Confirm traffic paths with VPC flow logs (reference, Amazon Web Services, 10 min)

    Proves which connections are accepted or rejected.