google_compute_project_metadata_item

Manages a single key/value pair on metadata common to all instances for a project in GCE. Using google_compute_project_metadata_item lets you manage a single key/value setting in Terraform rather than the entire project metadata map.

Example Usage

resource "google_compute_project_metadata_item" "default" {
  key   = "my_metadata"
  value = "my_value"
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

Import

Project metadata items can be imported using the key, e.g.

In Terraform v1.5.0 and later, use an import block to import project metadata items using one of the formats above. For example:

import {
  id = "{{key}}"
  to = google_compute_project_metadata_item.default
}

When using the terraform import command, project metadata items can be imported using one of the formats above. For example:

$ terraform import google_compute_project_metadata_item.default {{key}}

Timeouts

This resource provides the following Timeouts configuration options: configuration options: