Skip to content

Commit

Permalink
Update LocationTagBinding docs (GoogleCloudPlatform#9128)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Thornton <[email protected]>
  • Loading branch information
rileykarson and c2thorn authored Oct 2, 2023
1 parent b80a2b3 commit fc4eb6e
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
---
subcategory: "Tags"
description: |-
A LocationTagBinding represents a connection between a TagValue and a Regional cloud resources.
A LocationTagBinding represents a connection between a TagValue and a non-global cloud resource.
---

# google\_tags\_location\_tag\_binding

A TagBinding represents a connection between a TagValue and a Regional cloud resource (currently project, folder, or organization). Once a TagBinding is created, the TagValue is applied to all the descendants of the cloud resource.
A LocationTagBinding represents a connection between a TagValue and a non-global target such as a Cloud Run Service or Compute Instance. Once a LocationTagBinding is created, the TagValue is applied to all the descendants of the cloud resource.


To get more information about TagBinding, see:
To get more information about LocationTagBinding, see:

* [API documentation](https://cloud.google.com/resource-manager/reference/rest/v3/tagBindings)
* How-to Guides
* [Official Documentation](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)

## Example Usage
## Example Usage - Cloud Run Service

To bind a tag to a Cloud Run instance:
To bind a tag to a Cloud Run service:

```hcl
resource "google_project" "project" {
Expand Down Expand Up @@ -45,7 +44,7 @@ resource "google_tags_location_tag_binding" "binding" {
}
```

To bind a (firewall) tag to compute instance:
## Example Usage - Compute Instance

```hcl
resource "google_project" "project" {
Expand Down Expand Up @@ -88,7 +87,7 @@ The following arguments are supported:

* `location` -
(Required)
Location of the resource.
Location of the target resource.

- - -

Expand All @@ -115,7 +114,7 @@ This resource provides the following
## Import


TagBinding can be imported using any of these accepted formats:
LocationTagBinding can be imported using any of these accepted formats:

```
$ terraform import google_tags_location_tag_binding.default {{location}}/{{name}}
Expand Down

0 comments on commit fc4eb6e

Please sign in to comment.