pulumi-cdk icon indicating copy to clipboard operation
pulumi-cdk copied to clipboard

Added support for throwing errors from CDK stack metadata

Open karakter98 opened this issue 2 years ago • 2 comments

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

karakter98 avatar Sep 01 '23 10:09 karakter98

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

github-actions[bot] avatar Sep 01 '23 10:09 github-actions[bot]

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

github-actions[bot] avatar Jan 22 '24 07:01 github-actions[bot]