-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsubnets.tf
61 lines (48 loc) · 1.27 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
50
51
52
53
54
55
56
57
58
59
60
resource "aws_subnet" "devops-pub-1a" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.0.0/24"
availability_zone = "${var.region}a"
tags = {
Name = "devops_public_subnet_1a"
}
}
resource "aws_subnet" "devops-prv-1a" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.1.0/24"
availability_zone = "${var.region}a"
tags = {
Name = "devops_private_subnet_1a"
}
}
resource "aws_subnet" "devops-pub-1b" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.2.0/24"
availability_zone = "${var.region}b"
tags = {
Name = "devops_public_subnet_1b"
}
}
resource "aws_subnet" "devops-prv-1b" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.3.0/24"
availability_zone = "${var.region}b"
tags = {
Name = "devops_private_subnet_1b"
}
}
resource "aws_subnet" "devops-pub-1c" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.4.0/24"
availability_zone = "${var.region}c"
tags = {
Name = "devops_public_subnet_1c"
}
}
resource "aws_subnet" "devops-prv-1c" {
vpc_id = aws_vpc.devops_vpc.id
cidr_block = "10.44.5.0/24"
availability_zone = "${var.region}c"
tags = {
Name = "devops_private_subnet_1c"
}
}