terraform-provider-google/website/docs/d/google_storage_project_service_account.html.markdown
ishashchuk ef3ea881b1 Datasource for retrieving GCS service account (#1110)
* Datasource for retrieving GCS service account

* Removing duplicated argument

* Gofmt post resolving conflicts

* Addressing review comment
2018-02-21 13:37:23 -08:00

1.0 KiB

layout page_title sidebar_current description
google Google: google_storage_project_service_account docs-google-datasource-storage-project-service-account Get the email address of the project's Google Cloud Storage service account

google_storage_project_service_account

Use this data source to get the email address of the project's Google Cloud Storage service account. For more information see API.

Example Usage

data "google_storage_project_service_account" "gcs_account" {}

resource "google_pubsub_topic_iam_binding" "binding" {
	topic       = "${google_pubsub_topic.topic.name}"
	role        = "roles/pubsub.publisher"
		  
	members     = ["${data.google_storage_project_service_account.gcs_account.id}"]
}

Argument Reference

There are no arguments available for this data source.

Attributes Reference

The following attributes are exported:

  • id - The ID of the service account, which is its email address