2015-08-20 19:18:41 +00:00
|
|
|
---
|
|
|
|
layout: "google"
|
|
|
|
page_title: "Google: google_compute_project_metadata"
|
2015-10-23 14:10:41 +00:00
|
|
|
sidebar_current: "docs-google-compute-project-metadata"
|
2015-08-20 19:18:41 +00:00
|
|
|
description: |-
|
|
|
|
Manages common instance metadata
|
|
|
|
---
|
|
|
|
|
|
|
|
# google\_compute\_project\_metadata
|
|
|
|
|
|
|
|
Manages metadata common to all instances for a project in GCE.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2016-04-10 21:34:15 +00:00
|
|
|
```js
|
2015-08-20 19:18:41 +00:00
|
|
|
resource "google_compute_project_metadata" "default" {
|
2016-04-10 21:34:15 +00:00
|
|
|
metadata {
|
|
|
|
foo = "bar"
|
|
|
|
fizz = "buzz"
|
|
|
|
13 = "42"
|
|
|
|
}
|
2015-08-20 19:18:41 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2016-04-10 21:34:15 +00:00
|
|
|
* `metadata` - (Required) A series of key value pairs. Changing this resource
|
|
|
|
updates the GCE state.
|
2015-08-20 19:18:41 +00:00
|
|
|
|
2016-04-10 21:34:15 +00:00
|
|
|
- - -
|
2015-08-20 19:18:41 +00:00
|
|
|
|
2016-04-10 21:34:15 +00:00
|
|
|
* `project` - (Optional) The project in which the resource belongs. If it
|
|
|
|
is not provided, the provider project is used.
|
|
|
|
|
|
|
|
## Attributes Reference
|
2015-08-20 19:18:41 +00:00
|
|
|
|
2016-04-10 21:34:15 +00:00
|
|
|
Only the arguments listed above are exposed as attributes.
|