terraform-provider-google/website/docs/d/google_compute_default_service_account.html.markdown
ishashchuk 2efa710696 Datasource for GCE service account (#1119)
* Data source for retrieving GCE service account
* Added project id for service account lookups (#15)
* Renaming attribute project_id -> project
2018-03-12 09:41:15 -07:00

875 B

layout page_title sidebar_current description
google Google: google_compute_default_service_account docs-google-datasource-compute-default-service-account Retrieve default service account used by VMs running in this project

google_compute_default_service_account

Use this data source to retrieve default service account for this project

Example Usage

data "google_compute_default_service_account" "default" { }

output "default_account" {
  value = "${google_compute_default_service_account.default.email}"
} 

Argument Reference

The following arguments are supported:

  • project - (Optional) The project ID. If it is not provided, the provider project is used.

Attributes Reference

The following attributes are exported:

  • email - Email address of the default service account used by VMs running in this project