Created
December 7, 2018 12:43
-
-
Save samcre/d2975631fbbc916e4335aa1c3df90fc1 to your computer and use it in GitHub Desktop.
VPC Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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