-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivate-subnets.tf
More file actions
35 lines (27 loc) · 881 Bytes
/
private-subnets.tf
File metadata and controls
35 lines (27 loc) · 881 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
resource "aws_subnet" "template_private_sub_1" {
vpc_id = aws_vpc.template.id
cidr_block = "10.${var.quad}.4.0/24"
map_public_ip_on_launch = false
availability_zone = "${var.region}a"
tags = {
Name = "${var.application}-private-sub-1"
}
}
resource "aws_subnet" "template_private_sub_2" {
vpc_id = aws_vpc.template.id
cidr_block = "10.${var.quad}.5.0/24"
map_public_ip_on_launch = false
availability_zone = "${var.region}b"
tags = {
Name = "${var.application}-private-sub-2"
}
}
resource "aws_subnet" "template_private_sub_3" {
vpc_id = aws_vpc.template.id
cidr_block = "10.${var.quad}.6.0/24"
map_public_ip_on_launch = false
availability_zone = "${var.region}c"
tags = {
Name = "${var.application}-private-sub-3"
}
}