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
  • Loading branch information
rubensf authored and Charlesleonius committed Aug 1, 2024
1 parent 2515882 commit 3b463e5
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 3b463e5

Please sign in to comment.