-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpc.tf
32 lines (27 loc) · 847 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
28
29
30
31
32
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.55.0"
name = "tf-eks-vpc"
cidr = "10.5.0.0/16"
azs = ["${var.region}a", "${var.region}b"]
private_subnets = ["10.5.1.0/24", "10.5.2.0/24"]
public_subnets = ["10.5.10.0/24", "10.5.20.0/24"]
enable_nat_gateway = true
single_nat_gateway = true
one_nat_gateway_per_az = false
enable_vpn_gateway = false
enable_dns_hostnames = true
enable_dns_support = true
enable_dhcp_options = true
public_subnet_tags = {
"kubernetes.io/cluster/${var.cluster_name}" = "shared"
"kubernetes.io/role/elb" = "1"
}
private_subnet_tags = {
"kubernetes.io/cluster/${var.cluster_name}" = "shared"
"kubernetes.io/role/internal-elb" = "1"
}
tags = {
Terraform = "true"
}
}