Written in typescript and can be run with ts-node
. You'll also need colordiff
(brew install colordiff
). Assumes much about the cdk.out
file structure and CLI output format which may certainly change. This should give you two prompts: one for your environment (and the stack to run the diff for), and one showing you a list of lambda functions where assets have changed for which you can run a colordiff.
Replace the inline stack names, in this case mine are BackgroundJobsStackStaging
and one for prod.
Useful for understanding the impact of deploying bundled code when it's changed. In my case, my lambda code bundles share common code with my API so it can change quite often with no impact on the lambda itself necessarily.