-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
list to string migration in loadbalancer backend pools #2172
Comments
@mbrancato Thank you for this issue! |
@magodo To be clear (and I know this code is old), it has nothing to do with the |
From your config, I assume you want to bind the same list of the backend pool id to multiple nic, in which case it is a X*Y cases, which is not supported by core for now. |
@magodo no, that was not the intent. The original config is mapping a list of backend pools to a single interface. This list is already built, there is no recursion / looping in core needed here AFAIK. In the migration from |
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
Terraform Version
Affected Resource(s)
Terraform Configuration Files
I have a module with now deprecated code like this:
Expected Behavior
I want to be able to do the following to migrate to the new pool association resource.
Actual Behavior
The
azurerm_network_interface_backend_address_pool_association
resource however has moved to a string for singular backend pools, and does not allow a list to be provided. This normally in other code would need a nested loop, but we don't have that here. There is probably a way with some creative math (${var.nb_instances * length(var.lb_backend_pool_ids)}
etc.) to accomplish this, but that seems overly complex.Steps to Reproduce
terraform apply
References
azurerm_network_interface_(backend_address_pool|nat_rule)_association
#2079The text was updated successfully, but these errors were encountered: