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

error creating service_account #1

Open
bradrust opened this issue Dec 2, 2022 · 0 comments
Open

error creating service_account #1

bradrust opened this issue Dec 2, 2022 · 0 comments

Comments

@bradrust
Copy link

bradrust commented Dec 2, 2022

Not sure why (for me) it isn't picking up the project from the module definition (which does have a project definition set) but my deployment never completes because the serviceAccount referenced was not created.

Error: project: required field is not set
with module.gke-oom-kill-monitoring.google_service_account.sa,
on .terraform/modules/gke-oom-kill-monitoring/iam.tf line 7, in resource "google_service_account" "sa":
7: resource "google_service_account" "sa" {

I am not sure if there should be a depends_on in the deployment on that service_account being created but my attempt at using this module failed because the deployment and subsequent pod never was created because the service_account wasn't created. I only saw this exception when I manually removed the deployments serviceAccount reference which let the terraform process proceed with resource creations.

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