Skip to content

samples/guestbook: GCP section fails on terraform apply #108

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

Closed
enocom opened this issue Jun 19, 2018 · 3 comments · Fixed by #156
Closed

samples/guestbook: GCP section fails on terraform apply #108

enocom opened this issue Jun 19, 2018 · 3 comments · Fixed by #156
Assignees
Labels
bug Something isn't working
Milestone

Comments

@enocom
Copy link
Contributor

enocom commented Jun 19, 2018

Terraform fails to provision GCP resources with the following errors:

Error: Error applying plan:

4 error(s) occurred:

* google_project_service.container: 1 error(s) occurred:

* google_project_service.container: Error enabling service: Error waiting for apis ["container.googleapis.com"] to be enabled for enocom-dev: googleapi: Error 403: The caller does not have permission, forbidden
* google_project_service.runtimeconfig: 1 error(s) occurred:

* google_project_service.runtimeconfig: Error enabling service: Error waiting for apis ["runtimeconfig.googleapis.com"] to be enabled for enocom-dev: googleapi: Error 403: The caller does not have permission, forbidden
* google_project_service.storage: 1 error(s) occurred:

* google_project_service.storage: Error enabling service: failed to issue request: googleapi: Error 403: The caller does not have permission, forbidden
* google_project_service.sql: 1 error(s) occurred:

* google_project_service.sql: Error enabling service: failed to issue request: googleapi: Error 403: The caller does not have permission, forbidden

This was apparently noted in hashicorp/terraform-provider-google#1579 and then fixed with hashicorp/terraform-provider-google#1632.

But the fix still isn't in the newest version of the Terraform GCP provider (v.0.14.0). Once the fix lands, we need to update this line to require the version with the fix.

@zombiezen zombiezen added bug Something isn't working blocked Blocked on a different issue labels Jun 19, 2018
@zombiezen zombiezen changed the title GCP section of guestbook sample fails on terraform apply samples/guestbook: GCP section fails on terraform apply Jun 20, 2018
@zombiezen
Copy link
Contributor

Once the Terraform GCP provider updates, I'd also like to fix all the TODOs enabling the other services.

@zombiezen
Copy link
Contributor

I've figured out a workaround for the time being: I can keep the service resources in place, but set them to count = 0. Then, once the new release is cut and we have confidence that we can flip it back on, we just remove the count = 0.

enocom pushed a commit that referenced this issue Jun 21, 2018
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
@zombiezen
Copy link
Contributor

I can confirm that a dev build of hashicorp/terraform-provider-google@e123401 fixes this issue.

@zombiezen zombiezen added in progress This is being actively worked on and removed blocked Blocked on a different issue labels Jun 25, 2018
cflewis pushed a commit that referenced this issue Jun 26, 2018
Kick out variable-guard for project services.

Fixes #108
zombiezen added a commit that referenced this issue Jun 27, 2018
@zombiezen zombiezen removed the in progress This is being actively worked on label Jul 19, 2018
@vangent vangent added this to the Sprint 19 milestone Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants