Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 636 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 636 Bytes

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" ]
}