Resource Tags | Twingate

Resource Tags

Organize your Network using tags.

Tags are pieces of metadata that you can attach to your Resources. You can use tags to:

Tags let you organize your Network by labeling your Resources with attributes relevant to the Resource beyond just their name and address. You can add custom information about a Resource such as its owner, purpose, or location. Using tags to filter Resources is the fastest way to find a specific set of Resources.

overview permalink Overview

Each tag is a key-value pair. Tag keys indicate what the tag represents, e.g. owner or environment. Tag values represent specific information associated with the key, e.g. devops or production.

tag requirements permalink Tag requirements

using tags permalink Using tags

Tags are flexible and let you categorize your Resources in ways that work for you. As an example, you could use tags to track each Resource’s owner and purpose, making it easy to know who to reach out to when there are problems with a Resource or what each Resource does.

best practices permalink Best practices

common tags permalink Common tags

While there are many possible things you could track with tags, these are some common tags that are useful in most Networks.

Ownership

Technical information

Of course, you’re not limited to just the examples here. Use tags for anything that’s useful for classifying Resources and organizing your Network.

managing tags permalink Managing tags

Tags can be managed from the Admin Console or the API. When creating or editing a Resource, you can add new tags by clicking on the Add Tag button.

Adding tags via the Resource modal

To add a new tag, first set its key and then set its value. As you type keys and values, Twingate will suggest keys and values from other tags in your Network. Any tags that you add will be saved when you save the Resource.

Continue to add tags as needed. You can only edit a tag’s key or value when creating the tag. If needed, you can remove a tag by clicking on the ✕ remove icon to the right of a tag.

A Resource with multiple tags

filtering resources using tags permalink Filtering Resources using tags

In the Admin Console, navigate to Network → Resources. From the Resource table, you can use the Tags filter to show Resources that only match a specific set of tags.

The tags filter

To add tags to the filter, select Select Key and search for the key you want to use. Then, decide whether to filter for a list of values to include ( in) or exclude ( not in). From there, search for all of the tag values you want to use in the filter.

An example filter

using the api and terraform permalink Using the API and Terraform

Tags can be managed from the Twingate API and will soon be supported in Terraform, Pulumi, and the Kubernetes operator.

Using the API and its integration, you can manage your tags at scale. In particular, with Terraform and Pulumi, you can import tags from your cloud provider. This ensures that whatever context you have in AWS or GCP gets reflected within Twingate.

Last updated 5 months ago