-
Notifications
You must be signed in to change notification settings - Fork 9.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
count doesn't iterate in subblocks under the resource #10182
Comments
Chiming in because I have already encountered several cases where this would prove useful.
|
We also encountered this when attempting to add a variable number of backends to a backend_service. |
@jbardin - would love to actually implement this. Trying to figure out what level to implement this at and it would seem that it belongs in the Other assumption, we would follow the same sort of API that count has on a resource. So, that you would get |
Going to close this as a dup of #7034! Same idea. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.7.11
Affected Resource(s)
google_compute_backend_service
, but may affect othersTerraform Configuration Files
Expected Behavior
Terraform would have expanded and created multiple backend blocks inside the
google_compute_backend_service
resource.Actual Behavior
* google_compute_backend_service.backend-service: backend.0: invalid or unknown key: count
Important Factoids
This may not be intended functionality, but does have useful possibilities for resources with multiple of a subblock.
The text was updated successfully, but these errors were encountered: