-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Can't use google compute zones for count iteration like in registry docs #8878
Comments
I am able to create compute instances through IGM based out of the zones with the following config. However your error message shows
|
Count is a meta argument available to all terraform resources: https://www.terraform.io/docs/language/meta-arguments/count.html |
I am able to create 4 network end point groups (for the 4 zones) with your config. I am using terraform version 13.x, can you check the same on your end. If its happening only on terraform 14.x then its upstream terraform core issue
Plan output
|
can you try registry.terraform.io/hashicorp/google v3.63.0 instead of 62? |
|
* adding security policy field to networkInterfaceAccessConfig * adding security policy to networkInterface instead of networkInterfaceAccessConfig * finishing solution 1 and adding integration tests and doc * cleanups for solution 1 * wrapping update security policy for beta * replacing the networks in tests * fixing code review by implementing the solution two * replacing networks in tests * fixing nic read for instance_template resource * adding checking for access config security policy while flattening to prevent the instance template to break * fixing error while creating instance with empty security_policy * changing region for tests which use network_edge_security_service * comment all failing tests but one to test if it runs alone * making the tests running serially * fixing the tests to be called only by the serial one * fixing code review comments * fixing missing compute_image data from merge * fixing code review Signed-off-by: Modular Magician <magic-modules@google.com>
* adding security policy field to networkInterfaceAccessConfig * adding security policy to networkInterface instead of networkInterfaceAccessConfig * finishing solution 1 and adding integration tests and doc * cleanups for solution 1 * wrapping update security policy for beta * replacing the networks in tests * fixing code review by implementing the solution two * replacing networks in tests * fixing nic read for instance_template resource * adding checking for access config security policy while flattening to prevent the instance template to break * fixing error while creating instance with empty security_policy * changing region for tests which use network_edge_security_service * comment all failing tests but one to test if it runs alone * making the tests running serially * fixing the tests to be called only by the serial one * fixing code review comments * fixing missing compute_image data from merge * fixing code review Signed-off-by: Modular Magician <magic-modules@google.com>
Can't use the google compute zones to iterate through data to fetch even though example
Tried to use it exactly like in the docs: https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_zones
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
I can use terraform to loop over resources to create in each zone
Actual Behavior
See original error
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: