forked from hashicorp/terraform-provider-google
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Datasource for retrieving GCS service account (hashicorp#1110)
* Datasource for retrieving GCS service account * Removing duplicated argument * Gofmt post resolving conflicts * Addressing review comment
- Loading branch information
1 parent
e083952
commit c1a1729
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
docs/d/google_storage_project_service_account.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_storage_project_service_account" | ||
sidebar_current: "docs-google-datasource-storage-project-service-account" | ||
description: |- | ||
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](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters