diff --git a/mmv1/templates/terraform/examples/go/org_policy_policy_project.tf.tmpl b/mmv1/templates/terraform/examples/go/org_policy_policy_project.tf.tmpl index de076a51c3f9..96c248672ba0 100644 --- a/mmv1/templates/terraform/examples/go/org_policy_policy_project.tf.tmpl +++ b/mmv1/templates/terraform/examples/go/org_policy_policy_project.tf.tmpl @@ -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" } diff --git a/mmv1/templates/terraform/examples/org_policy_policy_project.tf.erb b/mmv1/templates/terraform/examples/org_policy_policy_project.tf.erb index de076a51c3f9..96c248672ba0 100644 --- a/mmv1/templates/terraform/examples/org_policy_policy_project.tf.erb +++ b/mmv1/templates/terraform/examples/org_policy_policy_project.tf.erb @@ -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" }