Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Dakota Lewallen
Dakota Lewallen

Posted on

     

TIL: How to CDK Diff Your Entire App

If you use theAWS CDK to deploy resources, you may also likely use thePipelines construct to deploy. Let's say you do, and you run acdk diff against your app prior to committing. It's awfully disappointing as it will only show you changes to the encasing pipeline.
However thanks to thisfantastic answer from @fedonev on StackOverflow, I learned that there isspecial syntax within the CDK CLI that allows you to wildcard the stack you would like a command to run against.

You may also use wildcards to specify IDs that match a pattern.
? matches any single character
* matches any number of characters (* alone matches all stacks)
** matches everything in a hierarchy

So running

  cdk diff '**'
Enter fullscreen modeExit fullscreen mode

Will diff not only diff the pipeline stack, but all the stack's within your application.

The more you know


Find me onMastodon |LinkedIn |Github |Substack

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

AWS Community Builder 👷‍♂️ | 3x AWS Certified 📝 | Empowering Developers
  • Location
    Indiana, US
  • Education
    Self-taught
  • Work
    Principal Software Engineer @ QsrSoft
  • Joined

More fromDakota Lewallen

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp