Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/azurerm/Firewall-Multiple-PIP/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ output "firewall_public_ip_names" {
value = [for pip in azurerm_public_ip.firewall_public_ip : pip.name]
depends_on = [azurerm_public_ip.firewall_public_ip]
}

output "firewall_nat_rule_address_mapping" {
value = {
for key, rule in var.dynamic_nat_rules :
key => {
destination_address = azurerm_public_ip.firewall_public_ip[key].ip_address
translated_address = rule.private_ip_address
}
}
depends_on = [azurerm_firewall_nat_rule_collection.public_loadbalancer_dnat_rules]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resource "azurerm_traffic_manager_profile" "traffic_manager_profile" {
traffic_routing_method = var.routing_method
traffic_view_enabled = var.traffic_view_enabled
tags = var.tags
max_return = var.max_return

dns_config {
relative_name = join("-", ["tm", var.traffic_manager_profile_dns_config_relative_name])
Expand Down
6 changes: 6 additions & 0 deletions modules/azurerm/Traffic-Manager-Profile/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ variable "expected_status_code_ranges" {
description = "A list of status code ranges in the format of 100-101"
type = list(string)
}

variable "max_return" {
default = 8
description = "The maximum number of endpoints to be returned in DNS queries."
type = number
}