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

Any way to get the diagram of "cdk diff"? #27

Open
gabrielenosso opened this issue Sep 30, 2022 · 2 comments
Open

Any way to get the diagram of "cdk diff"? #27

gabrielenosso opened this issue Sep 30, 2022 · 2 comments

Comments

@gabrielenosso
Copy link

Is there the possibility, or could there be, a way to generate the diagram highlighting the differences?

Would be amazing to have maybe a border or background colored behind resources (red for removed, yellow for modified, green for new resources).

@pistazie
Copy link
Owner

I find visual diff very interesting.

I guess this isn't trivial due to the lack of "plugin-ability" in AWS-CDK.

I guess one would first have to investigate, how CDK produces diffs and then think of whether this process can be integrated into cdk-dia.

@gabrielenosso
Copy link
Author

There's a tool which reverse engineered the diff, and is now able to give you a JSON file with all the info:
https://www.npmjs.com/package/cdk-pretty-diff

If you try it out, be sure to install v2 (npm i cdk-pretty-diff@2)

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

No branches or pull requests

2 participants