-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws.fsx - add kms-key filter to fsx resource #3487
Conversation
session_factory=session_factory, | ||
) | ||
resources = p.run() | ||
self.assertEqual(len(resources), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should be asserting that the resource that was returned was the one you're expecting, not just that there was a single resource filtered in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verifying the annotation is a good sanity check, that the related filter was invoked.
Also, while you're at it can you add this filter to the fsx-backup resource as well, it has a KmsKeyId reference as well |
Implemented the review comments and pushed the updates. Can you please check @thisisshi and @kapilt ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine, there's a bunch of recorded json here that could be trimmed, but the actual code and test look okay.
Adding KMS filter in the FSX resource. We need this to enable encryption .