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
}
Proposed Solution
Update the snippet to provide two public subnets:
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
Product
Terraform
Issue type
Bug
Location
Modules->Module blocksDescription of Issue
The tutorial text directly below the
module "vpc"code block states:However, the provided Terraform configuration snippet only supplies a single public subnet CIDR in the list:
Proposed Solution