The CDK Change Analyzer (C2A) is a tool that helps you:
- Review the changes that a CDK deployment will introduce to your infrastructure in a visual interface.
- Write rules to automatically classify certain changes as "safe" or "unsafe", making sure you only need to review changes if there is something important to review.
CDK Change Analyzer can be used independently, or as an integration with CDK Pipelines.
C2A is currently in Developer Preview. Let us know how this tool is working for you.
To use C2A:
- Add a PerformChangeAnalysis step to your CDK pipeline.
- Create a JSON file to encode your own rules to save yourself manual reviewing time.
The CDK Change Analyzer suite of tools consists of multiple packages in this repository. The packages are:
| Package | Purpose |
|---------|-----------------------------------| |
aws-c2a
| A CLI to run C2A on a Cloud Assembly | |
@aws-c2a/cdk-pipelines-step
| A custom approval step for use with CDK Pipelines | |
@aws-c2a/rules
| Defines the rules language used by C2A to automatically identify changes to
approve | |
@aws-c2a/visualizer
| A tool to visualize the graph model underlying the C2A rules. | |
@aws-c2a/presets
| Rules packs that are vended by AWS | |
@aws-c2a/web-app
| The web interface that displays the differences between a deployed CDK
application and an upcoming revision | |
@aws-c2a/models
| Definition of the C2A object model | |
@aws-c2a/engine
| The engine that analyzes and reports changes between two instances of the
model |
We use yarn workspaces
and lerna
to manage our monorepo. To learn more about
the repository structure, check out the documentation here.
deploy the app/integ.nested-stacks.js file yarn workspace aws-c2a run start
nested-stacks ```
## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more
information.
## License
This project is licensed under the Apache-2.0 License.