Merge pull request #725 from jgoldschrafe/feature-google-compute-service-accounts

Support service accounts on GCE instances
This commit is contained in:
Armon Dadgar 2015-01-05 11:30:38 -08:00
commit 975855d950

View File

@ -30,6 +30,10 @@ resource "google_compute_instance" "default" {
metadata {
foo = "bar"
}
service_account {
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
}
}
```
@ -60,6 +64,8 @@ The following arguments are supported:
specified multiple times for multiple networks. Structure is documented
below.
* `service_account` - (Optional) Service account to attach to the instance.
* `tags` - (Optional) Tags to attach to the instance.
The `disk` block supports:
@ -82,6 +88,11 @@ The `network` block supports:
* `address` - (Optional) The IP address of a reserved IP address to assign
to this interface.
The `service_account` block supports:
* `scopes` - (Required) A list of service scopes. Both OAuth2 URLs and gcloud
short names are supported.
## Attributes Reference
The following attributes are exported: