-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathroute-tables.tf
69 lines (55 loc) · 1.37 KB
/
route-tables.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
61
62
63
64
65
66
67
68
69
###################################################
# Route Tables
###################################################
module "private_route_table" {
source = "../../modules/route-table"
# source = "tedilabs/network/aws//modules/route-table"
# version = "~> 0.2.0"
name = "test-private"
vpc_id = module.vpc.id
subnets = module.private_subnet_group.ids
gateways = []
## Route Rules
ipv4_routes = [
{
destination = "0.0.0.0/0"
target = {
type = "NAT_GATEWAY"
id = module.public_nat_gateway.id
}
},
]
ipv6_routes = []
prefix_list_routes = []
vpc_gateway_endpoints = []
propagating_vpn_gateways = []
tags = {
"project" = "terraform-aws-network-examples"
}
}
module "public_route_table" {
source = "../../modules/route-table"
# source = "tedilabs/network/aws//modules/route-table"
# version = "~> 0.2.0"
name = "test-public"
vpc_id = module.vpc.id
subnets = module.public_subnet_group.ids
gateways = []
## Route Rules
ipv4_routes = [
{
destination = "0.0.0.0/0"
target = {
type = "INTERNET_GATEWAY"
id = module.vpc.internet_gateway.id
}
},
]
ipv6_routes = []
prefix_list_routes = []
vpc_gateway_endpoints = []
propagating_vpn_gateways = []
tags = {
"project" = "terraform-aws-network-examples"
}
}