-
Notifications
You must be signed in to change notification settings - Fork 0
/
routing_tables.tf
35 lines (30 loc) · 1002 Bytes
/
routing_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
resource "azurerm_route_table" "rt23" {
name = "az104-06-rt23"
location = var.location
resource_group_name = module.rg1.rg.name
route {
name = "route23"
address_prefix = "10.63.0.0/20"
next_hop_type = "VirtualAppliance"
next_hop_in_ip_address = "10.60.0.4"
}
}
resource "azurerm_subnet_route_table_association" "srt23" {
subnet_id = module.vnet2.subnet.id
route_table_id = azurerm_route_table.rt23.id
}
resource "azurerm_route_table" "rt32" {
name = "az104-06-rt32"
location = var.location
resource_group_name = module.rg1.rg.name
route {
name = "route32"
address_prefix = "10.62.0.0/20"
next_hop_type = "VirtualAppliance"
next_hop_in_ip_address = "10.60.0.4"
}
}
resource "azurerm_subnet_route_table_association" "srt32" {
subnet_id = module.vnet3.subnet.id
route_table_id = azurerm_route_table.rt32.id
}