Skip to content

Instantly share code, notes, and snippets.

@samcre
Created December 7, 2018 12:43
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 samcre/d2975631fbbc916e4335aa1c3df90fc1 to your computer and use it in GitHub Desktop.
Save samcre/d2975631fbbc916e4335aa1c3df90fc1 to your computer and use it in GitHub Desktop.
VPC Module
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "${var.vpc_name}"
cidr = "${var.vpc_cidr}"
azs = "${var.azs}"
private_subnets = "${var.priv_subnets_cidrs}"
public_subnets = "${var.pub_subnets_cidrs}"
enable_nat_gateway = true
one_nat_gateway_per_az = true
tags {
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment