-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_firewall: support multiple ip_configuration blocks #4045
Comments
Hi @adubnik , could you please update your post to use the "Feature Request" template, found here: https://github.com/terraform-providers/terraform-provider-azurerm/issues/new?template=Feature_Request.md as it helps the developers quickly understand how your suggested feature might be implemented? Thanks. |
if we take a baseline https://www.terraform.io/docs/providers/azurerm/r/firewall.html resource "azurerm_public_ip" "test-1" {
name = "testpip-1"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_public_ip" "test-2" {
name = "testpip-2"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_firewall" "test" {
name = "testfirewall"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
ip_configuration {
name = "ip-configuration"
subnet_id = "${azurerm_subnet.test.id}"
public_ip_address_ids = [
"${azurerm_public_ip.test-1.id}",
"${azurerm_public_ip.test-2.id}"
]
}
} public_ip_address_id -> takes 1 IP address ID Alternatively support multiple configurations
|
Any idea on this ? We need it :D |
cc @nexxai ? |
hi, |
Hi I have just got this issue of terraform not allowing multiple ip_configuration block. But instead of allowing multiple ip_configuration blocks I would rather go with having a resource that would attach the ip configuration with azure firewall. e.g. ` resource "azurerm_firewall_ip_attachment" "second" { Considering the use case of many ip_configurations attached to a single firewall. The above makes it independent rather than having loads of ip_configuration blocks in the same azurerm_firewall resource. |
For all whose use-case involves NAT IPs, use a load balancer with Multiple NAT IP support solution instead. |
@houkms is updating the data resource in scope of this or another issue required? |
@timja data source will also be updated here. |
Allow enable_ip_configuration to accept multiple ip_configurations. (fixes #4045)
…#4639) Allow enable_ip_configuration to accept multiple ip_configurations. (fixes hashicorp#4045)
This has been released in version 1.37.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.37.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Description
Currently it is only possible to have one ip_configuration block per azurerm_firewall resource where Azure Firewall actually supports multiple IP configurations. Having multiple IP addresses associated with a Firewall is essential...
Is this possible to enhance the module and add a feature to enable the multiple ip_configuration blocks?
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: