Open sjackson0109 opened 1 year ago
Can fix by amending modules/networking/firewall/module.tf, lines 39-47 as follows:
dynamic "ip_configuration" {
for_each = try([var.settings.public_ip_key], {})
content {
name = ip_configuration.key
public_ip_address_id = var.public_ip_addresses[var.client_config.landingzone_key][ip_configuration.value].id
subnet_id = contains(["0", 0], ip_configuration.key) ? var.subnet_id : null
}
}
Is there an existing issue for this?
Versions
Terraform v1.5.5 on windows_amd64
Affected Resource(s)/Data Source(s)
azurerm_firewall
Terraform Configuration Files
Expected Behaviour
expect this to build the resource successfully.
Actual Behaviour
The "ip_configuration" is invalid, 2 "subnet_id" have been set, one "subnet_id" should be set among all "ip_configuration" blocks
Steps to Reproduce
terraform plan terraform apply
Important Factoids
No response
References
No response