-
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
google_container_cluster data source does not work for some zones #11683
Comments
Odd, I'm seeing this config generate the correct request:
Are you using the most recent version of the provider? (4.20.0) Do you have default regions or zones set? I'm wondering if those are having something to do with this |
Hi @slevenick! I do have a default region set in my provider, which is instantiated as such: provider "google" {
project = local.gcp_project_id
region = local.gcp_region
}```
I just tried removing it and got the very same behavior. Maybe something in my `state` could be triggering it? I can try to `state rm` and reimport a few resources if that would help. |
Hm, yeah can you share the |
I ran into something similar on a multi-zone GKE cluster and thought it was a bug too. All I had to do was set the |
@zli82016 can we get this one closed as not reproducible? We had looked into this last year in the linked bug after it was forwarded to us, but were unable to reproduce it. |
Closing this issue as it is not reproducible. |
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. |
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
Terraform v1.1.9
Affected Resource(s)
Terraform Configuration Files
The actual code is big, but it boils down to just these lines:
Debug Output
I'm including the relevant snippet, note how the first data source clause generates a request to
locations/southamerica-east1
despite referring to a specific zone, while the second does in fact look for the cluster inzones/us-east1-c
.Expected Behavior
The data source should lookup the cluster in location
southamerica-east1-c
, just as it did forus-east1-c
Actual Behavior
The data source looks for the cluster in
southamerica-east1
- the region - even if providade with locationsouthamerica-east1-c
Steps to Reproduce
southamerica-east1-c
or any zonegoogle_container_cluster
data sourceReferences
The text was updated successfully, but these errors were encountered: