-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpc.tf
27 lines (23 loc) · 828 Bytes
/
vpc.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.2.0"
name = var.vpc_presets.name
cidr = var.vpc_presets.cidr
azs = data.aws_availability_zones.available.names
private_subnets = var.vpc_presets.private_subnets_cidr
public_subnets = var.vpc_presets.public_subnets_cidr
enable_nat_gateway = true
single_nat_gateway = true
enable_dns_hostnames = true
tags = {
"kubernetes.io/cluster/${local.cluster_name}" = "shared"
}
public_subnet_tags = {
"kubernetes.io/cluster/${local.cluster_name}" = "shared"
"kubernetes.io/role/elb" = "1"
}
private_subnet_tags = {
"kubernetes.io/cluster/${local.cluster_name}" = "shared"
"kubernetes.io/role/internal-elb" = "1"
}
}