Skip to content
Discussion options

You must be logged in to vote

From testing your case, I think under the hood there's a gap specifically when combining these cross-resource references with for_each loops. I've filed a bug for that here.


But the more general question about multi-resource configurations is still a useful thing to cover! That situation was the motivation behind the traverse filter. Your S3 case is a useful example, because you need to be able to catch server-side encryption defaults defined inline or in the separate resource. A policy like this could check both variations:

policies:
  - name: aws-s3-bucket-sse-defaults
    description: >
      All S3 buckets should have server-side encryption enabled
      by default.
    resource: ter…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evanrappe
Comment options

Answer selected by evanrappe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants