Skip to content

error creating service_account #1

@bradrust

Description

@bradrust

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions