Skip to content

Commit f7f3258

Browse files
authored
Merge pull request #190 from SazniMohamed/main-nov-4-new
Add max return for Traffic Manager multivalue profile
2 parents f752fed + f9d867f commit f7f3258

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

modules/azurerm/Firewall-Multiple-PIP/output.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,14 @@ output "firewall_public_ip_names" {
4343
value = [for pip in azurerm_public_ip.firewall_public_ip : pip.name]
4444
depends_on = [azurerm_public_ip.firewall_public_ip]
4545
}
46+
47+
output "firewall_nat_rule_address_mapping" {
48+
value = {
49+
for key, rule in var.dynamic_nat_rules :
50+
key => {
51+
destination_address = azurerm_public_ip.firewall_public_ip[key].ip_address
52+
translated_address = rule.private_ip_address
53+
}
54+
}
55+
depends_on = [azurerm_firewall_nat_rule_collection.public_loadbalancer_dnat_rules]
56+
}

modules/azurerm/Traffic-Manager-Profile/traffic_manager_profile.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ resource "azurerm_traffic_manager_profile" "traffic_manager_profile" {
1515
traffic_routing_method = var.routing_method
1616
traffic_view_enabled = var.traffic_view_enabled
1717
tags = var.tags
18+
max_return = var.max_return
1819

1920
dns_config {
2021
relative_name = join("-", ["tm", var.traffic_manager_profile_dns_config_relative_name])

modules/azurerm/Traffic-Manager-Profile/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ variable "expected_status_code_ranges" {
8181
description = "A list of status code ranges in the format of 100-101"
8282
type = list(string)
8383
}
84+
85+
variable "max_return" {
86+
default = 8
87+
description = "The maximum number of endpoints to be returned in DNS queries."
88+
type = number
89+
}

0 commit comments

Comments
 (0)