Organize resources with Google Cloud tags

Stay organized with collections Save and categorize content based on your preferences.

Overview

A Google Cloud tag is a key-value pair that can be attached to your Google Cloud resources, such as projects or Cloud Spanner instances. You can use tags to group and organize resources, and to conditionally set access policies based on whether a resource has a specific tag. You can create and manage tags using the Google Cloud console, the Google Cloud CLI, or REST APIs.

Common use cases for tags

Some common use cases for tags include:

  • Environment tags: Specify production, test, and development environments for resources by creating key-value pairs such as env:prod, env:dev, and env:test.
  • Identity and Access Management (IAM) tags: Grant Identity and Access Management (IAM) roles based on whether a resource has a specific tag. The presence or absence of a tag value is the condition for that IAM policy and helps control access to your Cloud Spanner resource.
  • State tags: Indicate and manage the state of a resource by creating tags. For example, state:active, state:todelete, and state:archive.

What's next

  • Learn more about tags.

  • Learn more about how to create and manage tags on your Cloud Spanner instances using Resource Manager.

  • Learn more about labels, another way to organize your Google Cloud resources.