Skip to content

AWS Manage tutorial: Documentation incorrectly states two public subnets instead of one in example-vpc #3292

Description

@hyelngtil

Product

Terraform

Issue type

Bug

Location

Description of Issue

The tutorial text directly below the module "vpc" code block states:

"This configuration defines a VPC named example-vpc with two public and two private subnets."

However, the provided Terraform configuration snippet only supplies a single public subnet CIDR in the list:

module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "5.19.0"

  name = "example-vpc"
  cidr = "10.0.0.0/16"

  azs             = ["us-west-2a", "us-west-2b", "us-west-2c"]
  private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
  public_subnets  = ["10.0.101.0/24"]

  enable_dns_hostnames = true

}
Image

Proposed Solution

Update the snippet to provide two public subnets:

public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions