Infrastructure Manager lets you attach optional metadata to deployments using
annotations and labels. These key-value pairs help you organize, track, and
filter your deployments across Google Cloud.

## What are annotations and labels?

*Annotations* are key-value pairs of free-form text. You can use them to attach
arbitrary information associated with the resource.

You can use *labels* to organize resources. For example, you can apply logic
based on label selection.

Annotations are used for storing non-identifying information typically used by
client tools to store arbitrary data attached to a resource, while labels are
typically used to organize resources.

For more information about using annotations with Google Cloud, see
[annotations AIP](https://google.aip.dev/148#annotations) documentation. To learn more about using labels, see the
[labels overview](https://docs.cloud.google.com/resource-manager/docs/labels-overview.md.txt#what-are-labels) documentation.

## Annotation and label constraints

As with annotations, labels are key-value pairs that must conform to the
following limitations:

- Keys and values both must be 128 bytes or less.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- Keys must start with a lowercase letter or international character.
- All characters must use UTF-8 encoding. International characters are allowed.
  For example:

      --annotation="appVersion=v.1.2.3,environment=production"

## Use annotations and labels with Infra Manager

The use of annotations and labels can be applied in a variety of ways across
your Google Cloud infrastructure.

When you create or update deployments with Infra Manager, you can use
annotations and labels to monitor deployments or query sets of information.
For more information, see [deploy infrastructure using Infra Manager](https://docs.cloud.google.com/infrastructure-manager/docs/deploy-resources.md.txt),
[update a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/update-deployment.md.txt), or [preview a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/preview-deployment.md.txt).

## What's next

Use Infra Manager to standardize, reuse, and scale your infrastructure
with Google Cloud:

- [Deploy a VPC using Terraform](https://docs.cloud.google.com/infrastructure-manager/docs/deploy-vpc-with-terraform.md.txt)
- [Deploy infrastructure using Infra Manager](https://docs.cloud.google.com/infrastructure-manager/docs/deploy-resources.md.txt)