Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.62 KB | None | 0 0
  1. module "vpc" {
  2.   source = "terraform-aws-modules/vpc/aws"
  3.  
  4.   name = "my-vpc"
  5.   cidr = "${local.cidr}"
  6.  
  7.   azs             = "${local.azs}"
  8.   private_subnets = "${local.private_subnets}"
  9.   public_subnets  = "${local.public_subnets}"
  10.  
  11.   enable_nat_gateway = true
  12.   single_nat_gateway = true
  13.   one_nat_gateway_per_az = false
  14.  
  15.   private_subnet_tags = {
  16.     "kubernetes.io/role/internal-elb" = 1
  17.   }
  18.  
  19.   public_subnet_tags = {
  20.     "kubernetes.io/role/elb" = 1
  21.   }
  22.  
  23.   tags = {
  24.     Environment = "${local.environment}"
  25.     Application = "network"
  26.     "kubernetes.io/cluster/${local.cluster_name}" = "shared"
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement