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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ