Erik Osterman (Cloud Posse)
05/29/2026, 6:08 PMpaulm
06/03/2026, 7:11 PMtag_policy_compliance = "warning" is less comprehensive than tag_policy_compliance = "error" , and even the latter will let through some plans that will fail on apply.
Definitely use AWS Organizations tag policies, because the AWS API enforces them no matter what.
Don't count on plan-time warnings from Terraform for all potential violations. In the TF AWS provider repo, there is one open issue (unrelated to this specific gap) and there was a hint of issues with warning in comments in the PR for the tag_policy_compliance feature.paulm
06/03/2026, 7:13 PM$ terraform plan
[...]
Planning failed. Terraform encountered an error while generating this plan.
[...]
│ Error: Missing Required Tags - An organizational tag policy requires the following tags for aws_security_group: [department]
│
│ with aws_security_group.allow_tls,
│ on <http://main.tf|main.tf> line 6, in resource "aws_security_group" "allow_tls":
│ 6: resource "aws_security_group" "allow_tls" {