diff --git a/google/data_source_google_storage_project_service_account.go b/google/data_source_google_storage_project_service_account.go index 92cfac9d..96543973 100644 --- a/google/data_source_google_storage_project_service_account.go +++ b/google/data_source_google_storage_project_service_account.go @@ -7,6 +7,14 @@ import ( func dataSourceGoogleStorageProjectServiceAccount() *schema.Resource { return &schema.Resource{ Read: dataSourceGoogleStorageProjectServiceAccountRead, + Schema: map[string]*schema.Schema{ + "project": { + Type: schema.TypeString, + Computed: true, + Optional: true, + ForceNew: true, + }, + }, } } @@ -23,6 +31,8 @@ func dataSourceGoogleStorageProjectServiceAccountRead(d *schema.ResourceData, me return handleNotFoundError(err, d, "GCS service account not found") } + d.Set("project", project) + d.SetId(serviceAccount.EmailAddress) return nil diff --git a/website/docs/d/google_storage_project_service_account.html.markdown b/website/docs/d/google_storage_project_service_account.html.markdown index 4a179b4f..11f339b0 100644 --- a/website/docs/d/google_storage_project_service_account.html.markdown +++ b/website/docs/d/google_storage_project_service_account.html.markdown @@ -27,7 +27,9 @@ resource "google_pubsub_topic_iam_binding" "binding" { ## Argument Reference -There are no arguments available for this data source. +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