mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-16 16:20:02 +00:00
1.1 KiB
1.1 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
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
The following arguments are supported:
project
- (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
Attributes Reference
The following attributes are exported:
id
- The ID of the service account, which is its email address