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

Added support for throwing errors from CDK stack metadata #89

Closed
wants to merge 2 commits into from

Conversation

karakter98
Copy link

@karakter98 karakter98 commented Sep 1, 2023

These changes allow tools like cdk-nag to cause runtime errors when running the Pulumi program by attaching errors and warnings as metadata to the CDK cloud assembly.

Before, using cdk-nag in a Pulumi program would not print the error messages to the console, and the pulumi up command could go through even if cdk-nag checks were failing.

This PR added dependencies, because it uses the CDK CLI package to parse the stack metadata and emit the errors/warnings. The aws-cdk-lib package lacks this functionality.

Closes #86

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

Copy link

PR is now waiting for a maintainer to run the acceptance tests. This PR will only perform build and linting.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@corymhall
Copy link
Contributor

@karakter98 with the latest changes, this should now work. Let me know if you experience any other issues.

@corymhall corymhall closed this Nov 25, 2024
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.

Support for cdk-nag and similar tools
2 participants