aws_resource_missing_tags doesn't take into account default_tags in the AWS provider #998
Closed
Izzy-Irvine
started this conversation in
General
Replies: 2 comments
-
|
Reproducible example needed, the rule is written to handle this: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Oh sorry. I was using it wrong. My tags were set by a variable. When I removed '--recursive' and added '--var-file' it worked as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The AWS provider can take default tags: https://www.hashicorp.com/en/blog/default-tags-in-the-terraform-aws-provider
However, if I add the aws_resource_missing_tags rule, this only checks the tags assigned to resources; it doesn't take into account that tags might be added in the default_tags too
Beta Was this translation helpful? Give feedback.
All reactions