-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubnets.tf
49 lines (42 loc) · 1.55 KB
/
subnets.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
resource "aws_subnet" "private-ap-southeast-2a" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.0.0/19"
availability_zone = "ap-southeast-2a"
tags = {
"Name" = "private-ap-southeast-2a"
"kubernetes.io/role/internal-elb" = "1"
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
}
resource "aws_subnet" "private-ap-southeast-2b" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.32.0/19"
availability_zone = "ap-southeast-2b"
tags = {
"Name" = "private-ap-southeast-2b"
"kubernetes.io/role/internal-elb" = "1"
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
}
resource "aws_subnet" "public-ap-southeast-2a" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.64.0/19"
availability_zone = "ap-southeast-2a"
map_public_ip_on_launch = true
tags = {
"Name" = "public-ap-southeast-2a"
"kubernetes.io/role/elb" = "1"
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
}
resource "aws_subnet" "public-ap-southeast-2b" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.96.0/19"
availability_zone = "ap-southeast-2b"
map_public_ip_on_launch = true
tags = {
"Name" = "public-ap-southeast-2b"
"kubernetes.io/role/elb" = "1"
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
}