2018-03-12 16:41:15 +00:00
|
|
|
---
|
|
|
|
layout: "google"
|
|
|
|
page_title: "Google: google_compute_default_service_account"
|
|
|
|
sidebar_current: "docs-google-datasource-compute-default-service-account"
|
|
|
|
description: |-
|
|
|
|
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
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
data "google_compute_default_service_account" "default" { }
|
|
|
|
|
|
|
|
output "default_account" {
|
2018-03-20 00:12:17 +00:00
|
|
|
value = "${data.google_compute_default_service_account.default.email}"
|
2018-03-12 16:41:15 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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
|