-
Notifications
You must be signed in to change notification settings - Fork 0
/
subnet.tf
41 lines (34 loc) · 923 Bytes
/
subnet.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
resource "aws_subnet" "public-1a" {
vpc_id = aws_vpc.devops-training.id
cidr_block = "10.0.3.0/24"
availability_zone = "ap-southeast-1a"
map_public_ip_on_launch = true
tags = {
Cluster = "training"
}
}
resource "aws_subnet" "public-1b" {
vpc_id = aws_vpc.devops-training.id
cidr_block = "10.0.4.0/24"
availability_zone = "ap-southeast-1b"
map_public_ip_on_launch = true
tags = {
Cluster = "training"
}
}
resource "aws_subnet" "private-1a" {
vpc_id = aws_vpc.devops-training.id
cidr_block = "10.0.1.0/24"
availability_zone = "ap-southeast-1a"
tags = {
Cluster = "training"
}
}
resource "aws_subnet" "private-1b" {
vpc_id = aws_vpc.devops-training.id
cidr_block = "10.0.2.0/24"
availability_zone = "ap-southeast-1b"
tags = {
Cluster = "training"
}
}