Skip to content

Commit

Permalink
Replace labelKeys/Values for tagKeys/Values in policy constraint exam…
Browse files Browse the repository at this point in the history
…ples (#11125)
  • Loading branch information
rubensf authored Jul 11, 2024
1 parent f6d628a commit cf5eb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "google_org_policy_policy" "primary" {
rules {
condition {
description = "A sample condition for the policy"
expression = "resource.matchLabels('labelKeys/123', 'labelValues/345')"
expression = "resource.matchTagId('tagKeys/123', 'tagValues/345')"
location = "sample-location.log"
title = "sample-condition"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "google_org_policy_policy" "primary" {
rules {
condition {
description = "A sample condition for the policy"
expression = "resource.matchLabels('labelKeys/123', 'labelValues/345')"
expression = "resource.matchTagId('tagKeys/123', 'tagValues/345')"
location = "sample-location.log"
title = "sample-condition"
}
Expand Down

0 comments on commit cf5eb84

Please sign in to comment.