Skip to content

Missing Service Account Role #6

@zentec

Description

@zentec

In order for all modules to work properly for the Google Cloud Ops Agent (installed in startup.sh), a missing permission needs to be added to the service account.

resource "google_project_iam_member" "metric-writer" {
  project    = var.project_id
  role       = "roles/monitoring.metricWriter"
  member     = "serviceAccount:${google_service_account.haproxy-compute-svc.email}"
  depends_on = [google_service_account.haproxy-compute-svc]
}

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