-
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
Error with enabling services on a project #1579
Comments
@danawillow, I think you were looking into some failures related to project services. Is this one related? |
It doesn't look like the exact same issue, but it's probably related. @morgante, do you have debug logs? |
Thanks @danawillow, I don't have the old debug logs but after #1632 this is no longer happening. |
Once the fix for hashicorp/terraform-provider-google#1579 is released, then we can kick out this variable. In the short term, this may cause the user to need to enable services manually and re-run `terraform apply`. Also set GKE cluster zone. Updates #108
As of provider version 0.17.1, this still fails. Repro:
Output:
|
Hey @james-stephenson, a few questions:
|
It look like you must add the This might actually be a problem with dependency resolution, whereby this resource isn't waiting for the project to complete creation. |
That code above was the simplest reproduction I could create to show the problem. I am testing using my gcloud default authentication credentials, though I believe this also fails with a service account. If you look at the output I pasted above, it's clearly not waiting for the project to exist, and even tries creating the services before it tries to create the project. |
Yeah, your config doesn't tell Terraform that the project should be created before the services. You can resolve that by adding a depends_on or, even better, using a reference to create the implicit dependency.
|
Ugh, that's right. Sorry for the false alarm :/ |
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! |
I'm currently seeing an odd condition where Terraform fails to activate services.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
It should activate the service.
Actual Behavior
I got a permission denied error.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
I verified that my service account does in fact have permission to activate services on that project:
My Terraform service account owns the project.
The text was updated successfully, but these errors were encountered: