google_tags_tag_value

A TagValue is a child of a particular TagKey. TagValues are used to group cloud resources for the purpose of controlling them using policies.

To get more information about TagValue, see:

Example Usage - Tag Value Basic

resource "google_tags_tag_key" "key" {
    parent = "organizations/123456789"
    short_name = "keyname"
    description = "For keyname resources."
}

resource "google_tags_tag_value" "value" {
    parent = "tagKeys/${google_tags_tag_key.key.name}"
    short_name = "valuename"
    description = "For valuename resources."
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

TagValue can be imported using any of these accepted formats:

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

import {
  id = "tagValues/{{name}}"
  to = google_tags_tag_value.default
}

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

$ terraform import google_tags_tag_value.default tagValues/{{name}}
$ terraform import google_tags_tag_value.default {{name}}