Using CDK diff to diff resources wrapped in a pipeline

0

I have a CDK project where we wrap all our resources in the Pipeline construct. Prior to adding the pipeline, we could run cdk diff locally to view changes to the resources we were deploying. Now that we use the Pipeline construct, running diff's locally only results in changes to the pipeline construct being displayed. Is there any way other fiddling with the pipeline construct to view diff's of the application resources and not the pipeline?

1 Answer
0
Accepted Answer

Got a great answer from this SO post.

The most direct solution is this: cdk diff '**' -a 'ts-node ./bin/app-pipeline.ts'

Which rides on this feature in the CDK, where when you pass '**' to a CDK command (synth, diff, etc.) it will dive through the hierarchy and apply the command to everything in the project.

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions