You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureRM Provider) Version
Terraform: 1.0.5
AzureRM: 2.77.0
Affected Resource(s)
azurerm_firewall_policy
Terraform Configuration Files
resource"azurerm_firewall_policy""base" {
name="fw-${local.workspace}-${var.location}"location=var.locationresource_group_name=azurerm_resource_group.default.nameprivate_ip_ranges=[]
dns {
proxy_enabled=trueservers=[var.hub_dns_forwarder_ip]
}
tags=local.tags
}
Debug Output
Panic Output
Expected Behaviour
The SNAT functionally is set to None or Empty inside Azure
Actual Behaviour
│ Error: Not enough list items
│
│ with azurerm_firewall_policy.base,
│ on firewall_rules_base.tf line 6, in resource "azurerm_firewall_policy" "base":
│ 6: private_ip_ranges = []
│
│ Attribute requires 1 item minimum, but config has only 0 declared.
Steps to Reproduce
Create resource from above
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Hi @jkroepke - iirc omitting that property entirely should achieve your desired result. By attempting to specify a value, even an empty list, this effectively activates that part of the configuration.
As per #10627 it should be implemented by now but omitting private_ip_ranges = ["0.0.0.0/0"] or private_ip_ranges = [] doesn't seem to have any effect on changing the setting to Never. The setting remains at the default setting For all IP addresses except IANA RFC 1918 ranges.
Community Note
Terraform (and AzureRM Provider) Version
Terraform: 1.0.5
AzureRM: 2.77.0
Affected Resource(s)
azurerm_firewall_policy
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
The SNAT functionally is set to None or Empty inside Azure
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: