Skip to content
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

Terraform plan/apply after importing an empty project fails #3

Open
memes opened this issue Nov 29, 2018 · 0 comments
Open

Terraform plan/apply after importing an empty project fails #3

memes opened this issue Nov 29, 2018 · 0 comments

Comments

@memes
Copy link
Member

memes commented Nov 29, 2018

After importing an empty GCP project, planning or applying additional state to the project will fail with an error because the default compute service account does not exist.

Error: Error refreshing state: 1 error(s) occurred:

* module.demo.data.google_compute_default_service_account.default: 1 error(s) occurred:

* module.demo.data.google_compute_default_service_account.default: data.google_compute_default_service_account.default: Error reading GCE service account not found: googleapi: Error 403: Access Not Configured. Compute Engine API has not been used in project 382312586678 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=NNNNNN then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

Fix: add a dependency on API setup to the default service account data source.

Related to: #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant