-
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
Using gce_cluster_config -> service_account_scopes in google_dataproc_cluster always recreate the cluster #4403
Comments
Hey @kdzhao! Can you share the |
It looks like service_account_scopes indeed is the issue: The terraform apply output (related to service account scope) looks like:
And the related Terraform code is like:
|
And a bit search, I wonder if Terraform/Google provider counts the default scopes as mentioned in this doc: |
Ah- per https://www.terraform.io/docs/providers/google/r/dataproc_cluster.html#service_account_scopes, those scopes are required to be specified on the resource. I'll make that message more explicit. We don't have much ability to allow a user to only specify a subset of the scopes, so unfortunately if any extra scopes are defined those need to be added too. |
Oh, I see. After adding all the scopes as below, I see now it works as expected.
Thanks! |
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 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.11.14
Affected Resource(s)
Expected Behavior
If there is no change to cluster_config -> gce_cluster_config -> service_account_scopes, the cluster should not be recreated.
Actual Behavior
The cluster is recreated even if there is no change for the service_account_scopes.
Steps to Reproduce
Just set the value, for example:
service_account_scopes = ["sql-admin"]
The text was updated successfully, but these errors were encountered: