-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvpc.tf
More file actions
35 lines (30 loc) · 779 Bytes
/
Copy pathvpc.tf
File metadata and controls
35 lines (30 loc) · 779 Bytes
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
33
34
35
variable "region" {
default = "ap-southeast-1"
}
data "aws_availability_zones" "available" {}
locals {
cluster_name = "EKS-Cluster"
}
module vpc {
source = "terraform-aws-modules/vpc/aws"
version = "5.19.0"
name = "AoK-VPC"
cidr = "10.0.0.0/16"
azs = data.aws_availability_zones.available.names
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
enable_nat_gateway = true
single_nat_gateway = true
enable_dns_hostnames = true
tags = {
"Name" = "AoK-VPC"
}
public_subnet_tags = {
"Name" = "AoK-Public-Subnet"
"kubernetes.io/role/elb" = "1"
}
private_subnet_tags = {
"Name" = "AoK-Private-Subnet"
"kubernetes.io/role/elb" = "1"
}
}