mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 17:46:43 +00:00
880 B
880 B
layout | page_title | sidebar_current | description |
---|---|---|---|
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 = "${data.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