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?

profile picture
已提問 1 年前檢視次數 1093 次
1 個回答
0
已接受的答案

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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南