forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubnets.tf
More file actions
29 lines (26 loc) 路 927 Bytes
/
Copy pathsubnets.tf
File metadata and controls
29 lines (26 loc) 路 927 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
resource "aws_subnet" "public_a" {
vpc_id = aws_vpc.gistpin.id
cidr_block = "10.0.1.0/24"
availability_zone = "us-east-1a"
map_public_ip_on_launch = true
tags = { Name = "gistpin-public-a" }
}
resource "aws_subnet" "public_b" {
vpc_id = aws_vpc.gistpin.id
cidr_block = "10.0.2.0/24"
availability_zone = "us-east-1b"
map_public_ip_on_launch = true
tags = { Name = "gistpin-public-b" }
}
resource "aws_subnet" "private_a" {
vpc_id = aws_vpc.gistpin.id
cidr_block = "10.0.11.0/24"
availability_zone = "us-east-1a"
tags = { Name = "gistpin-private-a" }
}
resource "aws_subnet" "private_b" {
vpc_id = aws_vpc.gistpin.id
cidr_block = "10.0.12.0/24"
availability_zone = "us-east-1b"
tags = { Name = "gistpin-private-b" }
}