google_project_service_identity

Generate service identity for a service.

To get more information about Service Identity, see:

Example Usage - Service Identity Basic

data "google_project" "project" {}

resource "google_project_service_identity" "hc_sa" {
  provider = google-beta

  project = data.google_project.project.project_id
  service = "healthcare.googleapis.com"
}

resource "google_project_iam_member" "hc_sa_bq_jobuser" {
  project = data.google_project.project.project_id
  role    = "roles/bigquery.jobUser"
  member  = "serviceAccount:${google_project_service_identity.hc_sa.email}"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Import

This resource does not support import.

Timeouts

This resource provides the following Timeouts configuration options: configuration options:

User Project Overrides

This resource supports User Project Overrides.