generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Closed
Copy link
Labels
Status: Long Term ⏳We will do it, but will take a longer amount of time due to complexity/prioritiesWe will do it, but will take a longer amount of time due to complexity/prioritiesStatus: Looking For Assistance 🦆This item is looking for anyone to help develop the code and submit a PR for resolutionThis item is looking for anyone to help develop the code and submit a PR for resolutionType: Feature Request ➕New feature or requestNew feature or request
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
For some firewall policy rules it's necessary to know the firewall public IP. This creates a circular dependency:
- FW public IP created by this module
- needs to be referenced in firewall policy / rule collections
- firewall policy / rule collections must already exist to be assigned to firewall when creating it through this module
New or Affected Resource(s)/Data Source(s)
avm_ptn_hubnetworking (module hub_firewalls in main.firewall.tf)
Potential Terraform Configuration
Suggestion:
Update firewall / ip_configurations / public_ip_config block, add parameter public_ip_id, in the module code if the public_ip_id value is set simply directly assign it to the firewall and disregard any other params in the block, if it's not set proceed with IP creation like it's done right now.
Note: the avm-res-network-azurefirewall module already supports directly passing a public IP resource id, see here: https://github.com/Azure/terraform-azurerm-avm-res-network-azurefirewall/blob/main/variables.tf in "firewall_ip_configuration"References
No response
Metadata
Metadata
Assignees
Labels
Status: Long Term ⏳We will do it, but will take a longer amount of time due to complexity/prioritiesWe will do it, but will take a longer amount of time due to complexity/prioritiesStatus: Looking For Assistance 🦆This item is looking for anyone to help develop the code and submit a PR for resolutionThis item is looking for anyone to help develop the code and submit a PR for resolutionType: Feature Request ➕New feature or requestNew feature or request