How do you write a custom check that requires one resource referencing another? #1848
Unanswered
agjmills
asked this question in
Help and suppports
Replies: 2 comments
-
https://aquasecurity.github.io/tfsec/v1.27.1/guides/configuration/custom-checks/#requirespresence |
Beta Was this translation helpful? Give feedback.
0 replies
-
That would check for any alias though wouldn't it? So two keys with only one having an alias would still pass the check even though not correct. |
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
-
AWS KMS keys names don't display in the console, you have to create a KMS Key alias.
This is a separate resource, and you'd write it like this:
How would I write a rule which checks that at least one alias exists for an
aws_kms_key
resource?Beta Was this translation helpful? Give feedback.
All reactions