-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(core): CDK Synth Generates report for CFN guards #31798
Comments
Hey @justin-masse, have you seen the policy validation at synthesis feature? If i'm understanding your ask correctly, you are looking for the ability to run the synthesized CloudFormation template against policy as code definitions using something like CloudFormation Guard. If that's the case, the policy at synth feature will help you accomplish that. Today there are a couple of supported plugins, check em out and hopefully they can help you. |
@adamjkeller Thanks for your reply. |
That may very well be it, let me dig in more to the implementation. Admittedly I just assumed this had not been implemented yet instead of checking first (my bad) |
This will work! |
Comments on closed issues and PRs are hard for our team to see. |
Describe the feature
There are plenty of tools that let you check CFN Templates against defined (or generic) policies to make sure things like
*
do not end up in APIGW resource policies for example. But right now nothing exists to point this back to CDK code. I can highlight for dev teams in their CFN templates where the problem is but would like a way to also point to the actual CDK code in question.Use Case
Looking to validate CDK code against company defined policies for what should be able to synth out to a CFN template (or at least provide a report of warnings/etc).
Proposed Solution
At synth time, allow a flag to be passed that would generate a report for warnings either with a "default (AWS defined)" policy of best practices or let users provide some sort of list/json of rules.
Something similar to using: https://github.com/aws-cloudformation/cloudformation-guard
Other Information
No response
Acknowledgements
CDK version used
doesnt matter
Environment details (OS name and version, etc.)
doesnt matter
The text was updated successfully, but these errors were encountered: