-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2-load-balancer-rules.tf
27 lines (26 loc) · 1.48 KB
/
2-load-balancer-rules.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
resource "azurerm_lb_rule" "region_02_load_balancer_01_rule_01" {
resource_group_name = azurerm_resource_group.region_02.name
loadbalancer_id = azurerm_lb.region_02_load_balancer_01.id
name = "load-balancer-01-rule-01"
protocol = "Tcp"
frontend_port = 80
backend_port = 80
frontend_ip_configuration_name = "PublicIPAddress"
backend_address_pool_id = azurerm_lb_backend_address_pool.region_02_load_balancer_01_backend_address_pool_01.id
probe_id = azurerm_lb_probe.region_02_load_balancer_01_probe_01.id
load_distribution = "SourceIPProtocol"
disable_outbound_snat = true
}
resource "azurerm_lb_rule" "region_02_load_balancer_01_rule_02" {
resource_group_name = azurerm_resource_group.region_02.name
loadbalancer_id = azurerm_lb.region_02_load_balancer_01.id
name = "load-balancer-01-rule-02"
protocol = "Tcp"
frontend_port = 443
backend_port = 443
frontend_ip_configuration_name = "PublicIPAddress"
backend_address_pool_id = azurerm_lb_backend_address_pool.region_02_load_balancer_01_backend_address_pool_01.id
probe_id = azurerm_lb_probe.region_02_load_balancer_01_probe_01.id
load_distribution = "SourceIPProtocol"
disable_outbound_snat = true
}