File tree Expand file tree Collapse file tree 5 files changed +0
-145
lines changed
infrastructure/global/vpc Expand file tree Collapse file tree 5 files changed +0
-145
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ resource "aws_vpc_endpoint" "s3" {
3
3
service_name = " com.amazonaws.eu-central-1.s3"
4
4
vpc_endpoint_type = " Gateway"
5
5
route_table_ids = concat (
6
- [for route in aws_route_table . private : route . id ],
7
6
[for route in aws_route_table . public : route . id ]
8
7
)
9
8
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,27 +10,3 @@ resource "aws_subnet" "private" {
10
10
AZ = each.key
11
11
}
12
12
}
13
-
14
- resource "aws_route_table" "private" {
15
- for_each = toset (keys (local. private_azs_cidr ))
16
- vpc_id = aws_vpc. default . id
17
-
18
- route {
19
- cidr_block = " 0.0.0.0/0"
20
- network_interface_id = aws_instance. nat_instance . primary_network_interface_id
21
- }
22
-
23
- tags = {
24
- Name = " private subnet route table ${ each . value } "
25
- }
26
-
27
- depends_on = [
28
- aws_instance . nat_instance
29
- ]
30
- }
31
-
32
- resource "aws_route_table_association" "private_subnet_to_private_route" {
33
- for_each = toset (keys (local. private_azs_cidr ))
34
- route_table_id = aws_route_table. private [each . value ]. id
35
- subnet_id = aws_subnet. private [each . value ]. id
36
- }
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ resource "aws_route_table_association" "public_subnet_to_public_route" {
36
36
subnet_id = aws_subnet. public [each . value ]. id
37
37
}
38
38
39
- # Internet gateway
40
-
41
39
resource "aws_internet_gateway" "default" {
42
40
vpc_id = aws_vpc. default . id
43
41
}
You can’t perform that action at this time.
0 commit comments