Skip to content

Terraform module to create a vpc with public and private subnets across multiple availability zones along with internet gateway and NAT gateway

License

Notifications You must be signed in to change notification settings

awsmag/terraform-aws-vpc

Repository files navigation

aws-vpc-terraform

awsmag.com

Terraform module to create a vpc with public and private subnets across multiple availability zones along with internet gateway and NAT gateway.

Example

module "vpc" {
  source = "awsmag/vpc/aws"
  # We recommend pinning every module to a specific version
  # version = "x.x.x"
  region = "eu-west-1"
  namespace = "tf-generated-vpc"
  cidr_block = "192.0.0.0/20"
  public_subnet_cidr = [ "192.0.1.0/24", "192.0.2.0/24", "192.0.3.0/24" ]
  private_subnet_cidr = [ "192.0.4.0/24", "192.0.5.0/24", "192.0.6.0/24" ]
}

About

Terraform module to create a vpc with public and private subnets across multiple availability zones along with internet gateway and NAT gateway

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages