File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : " google"
3
+ page_title : " Google: google_storage_project_service_account"
4
+ sidebar_current : " docs-google-datasource-storage-project-service-account"
5
+ description : |-
6
+ Get the email address of the project's Google Cloud Storage service account
7
+ ---
8
+
9
+ # google\_ storage\_ project\_ service\_ account
10
+
11
+ Use this data source to get the email address of the project's Google Cloud Storage service account.
12
+ For more information see
13
+ [ API] ( https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount ) .
14
+
15
+ ## Example Usage
16
+
17
+ ``` hcl
18
+ data "google_storage_project_service_account" "gcs_account" {}
19
+
20
+ resource "google_pubsub_topic_iam_binding" "binding" {
21
+ topic = "${google_pubsub_topic.topic.name}"
22
+ role = "roles/pubsub.publisher"
23
+
24
+ members = ["${data.google_storage_project_service_account.gcs_account.id}"]
25
+ }
26
+ ```
27
+
28
+ ## Argument Reference
29
+
30
+ There are no arguments available for this data source.
31
+
32
+ ## Attributes Reference
33
+
34
+ The following attributes are exported:
35
+
36
+ * ` id ` - The ID of the service account, which is its email address
Original file line number Diff line number Diff line change 85
85
< li <%= sidebar_current ( "docs-google-datasource-signed_url" ) %> >
86
86
< a href ="/docs/providers/google/d/signed_url.html "> google_storage_object_signed_url</ a >
87
87
</ li >
88
+ < li <%= sidebar_current ( "docs-google-datasource-storage-project-service-account" ) %> >
89
+ < a href ="/docs/providers/google/d/google_storage_project_service_account.html "> google_storage_project_service_account</ a >
90
+ </ li >
88
91
</ ul >
89
92
</ li >
90
93
You can’t perform that action at this time.
0 commit comments