Skip to content

Use direct references rather than interpolated strings for custom roles #105

@zefdelgadillo

Description

@zefdelgadillo

In order for Terraform to apply resources in the correct order, IAM configuration should use the direct attributes from the custom role definition.

See role below:

resource "google_project_iam_binding" "BigQuerySchemaUpdate" {
  project = var.tag_engine_project
  role    = "projects/${var.bigquery_project}/roles/BigQuerySchemaUpdate"**
  members = ["serviceAccount:${var.tag_creator_sa}"]
  depends_on = [google_project_service.tag_engine_project]
}

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