-
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
Regression: terraform cannot create google_computer_instance_group_manager in other region than project #9344
Comments
Debug output shows that one instance group manager is 'removed':
This would explain why both autoscalers get the same instance group manager: the list contains only the first group, so the element() function wraps. It looks like the resourceComputeInstanceGroupManagerRead() function assumes that all instance group managers are created in the region of the project, see
Introduced in commit da1cf0d This assumption is wrong, as GCP does not limit projects to a single region and breaks for example global load balancer setups. |
I think this is the same as #9126 (where it's not marked as a regression). |
Closed via #11294 |
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
0.7.1-0.7.5: tested with 0.7.0, 0.7.1, 0.7.2 and 0.7.5. Version 0.7.0 is OK, 0.7.1 and higher show regression.
Affected Resource(s)
google_compute_autoscalerThe issue is with the google_computer_instance_group_manager, not the autoscaler that tries to target it. See comment below
Terraform Configuration Files
Debug Output
https://gist.github.com/bastiaanb/864db1bceb0682f5efd83498b44bb1d2
Contains stderr and stdout of 0.7.5 and stdout of 0.7.0 for comparison.
Panic Output
none
Expected Behavior
google_compute_autoscalers should have been created, with autoscaler #0 pointing to instance group #0 and autoscaler #1 to instance group #1, like done by version 0.7.0.
Actual Behavior
Both autoscaler instances have the first instance group as target, which coincidentally fails due to different zones.
Steps to Reproduce
terraform apply
Important Factoids
No 'atypical' settings or accounts.
References
None
The text was updated successfully, but these errors were encountered: