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
Terraform creates an application gateway with an empty backend pool
Actual Behavior
Plan fails with
Error: backend_address_pool.0.ip_addresses: attribute supports 1 item as a minimum, config has 0 declared
Steps to Reproduce
terraform apply
Important Factoids
This breaks a real-world use case, where a customer wants to use the same code to deploy app gateways in Prod and DR but not create any VMs in DR since that's handled by ASR failover. Since ip_addresses is an optional attribute, the workaround is to write
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 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Sep 23, 2020
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_application_gateway
Terraform Configuration Files
https://gist.github.com/simonbrady/ac018ec5302c7969a4b5baa08a711a66#file-main-tf
Debug Output
https://gist.github.com/simonbrady/ac018ec5302c7969a4b5baa08a711a66#file-trace-log
Panic Output
n/a
Expected Behavior
Terraform creates an application gateway with an empty backend pool
Actual Behavior
Plan fails with
Steps to Reproduce
terraform apply
Important Factoids
This breaks a real-world use case, where a customer wants to use the same code to deploy app gateways in Prod and DR but not create any VMs in DR since that's handled by ASR failover. Since
ip_addresses
is an optional attribute, the workaround is to writewhich is an ugly hack.
References
The text was updated successfully, but these errors were encountered: