Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created May 3, 2023 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendrixroa/10722d41c46c47d86a13de6ceb7ec72c to your computer and use it in GitHub Desktop.
Save hendrixroa/10722d41c46c47d86a13de6ceb7ec72c to your computer and use it in GitHub Desktop.
AWS VPC Ready to use module snippet
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "NoiselessVPC"
cidr = "10.0.0.0/16"
azs = ["${var.region}a", "${var.region}b", "${var.region}c"]
private_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
public_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment