» google_compute_project_metadata

Authoritatively manages metadata common to all instances for a project in GCE. For more information see the official documentation and API.

» Example Usage

resource "google_compute_project_metadata" "default" {
  metadata = {
    foo  = "bar"
    fizz = "buzz"
    "13" = "42"

» Argument Reference

The following arguments are supported:

  • metadata - (Required) A series of key value pairs.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format {{project}}

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes (also used for update).
  • delete - Default is 4 minutes.

» Import

This resource can be imported using the project ID:

terraform import google_compute_project_metadata.foo my-project-id