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 Antwort
0
Akzeptierte Antwort

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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen