Skip to content

Instantly share code, notes, and snippets.

@BastienM
Created December 31, 2020 12:58
Show Gist options
  • Save BastienM/f988eb6ee5154727de0ec465cf4b56e2 to your computer and use it in GitHub Desktop.
Save BastienM/f988eb6ee5154727de0ec465cf4b56e2 to your computer and use it in GitHub Desktop.
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "production"
cidr = "10.0.0.0/16"
azs = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
enable_nat_gateway = true
enable_vpn_gateway = false
tags = {
Terraform = "true"
Environment = "production"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment