paulm
05/29/2026, 5:01 PMtag_policy_compliance provider argument introduced in Terraform AWS provider v6.22.0 (2025-11-20). I knew about tag policies in AWS Organizations (note: this is a different policy type than an SCP) but I'd missed the new Terraform feature.
Once you've defined tag policies, adding tag_policy_compliance = "warning" to your provider configuration produces warnings at plan time. tag_policy_compliance = "error" makes it stick.
Who is using this already?
LinkedIn | AWS blog | AWS sample Terraform code | Terraform AWS provider documentationErik Osterman (Cloud Posse)
05/29/2026, 6:08 PMpaulm
05/29/2026, 7:40 PMtag_policy_compliance is available in OpenTofu, too!
search.opentofu.org/provider/opentofu/aws/latest/docs/guides/tag-policy-compliance#enforcing-tag-policy-complianceErik Osterman (Cloud Posse)
05/29/2026, 7:44 PMpaulm
05/29/2026, 7:45 PM