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 年前1095 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则