Skip to content
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

Merged
merged 6 commits into from
Jan 31, 2019

Conversation

shineyb
Copy link
Contributor

@shineyb shineyb commented Jan 31, 2019

Adding KMS filter in the FSX resource. We need this to enable encryption .

session_factory=session_factory,
)
resources = p.run()
self.assertEqual(len(resources), 1)
Copy link
Member

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.

Copy link
Collaborator

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.

@thisisshi thisisshi changed the title Fsx encryption aws.fsx - add kms-key filter to fsx resource Jan 31, 2019
@thisisshi
Copy link
Member

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

@shineyb
Copy link
Contributor Author

shineyb commented Jan 31, 2019

Implemented the review comments and pushed the updates. Can you please check @thisisshi and @kapilt ?

Copy link
Collaborator

@kapilt kapilt left a 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.

@kapilt kapilt merged commit 71f2a23 into cloud-custodian:master Jan 31, 2019
lamyanba pushed a commit to lamyanba/cloud-custodian that referenced this pull request Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants