Aws-cdk: cdk diff does not work with nested stacks

Created on 8 Jan 2020  路  9Comments  路  Source: aws/aws-cdk

Running cdk diff only lists the S3 templates of the root stack as changed.

Reproduction Steps

Create a nested stack with some resources in a nested stack. Deploy the nested stack. Add more resources to nested stack.

cdk diff should report the changes in the nested stack.

Error Log

N/A

Environment

  • CLI Version : 1.19.0
  • Framework Version: 1.19.0
  • OS : macOS
  • Language : TypeScript

This is :bug: Bug Report

bug efformedium in-progress p1 packagtools

Most helpful comment

@cmckni3 It does! I will look into what is required to add this to the cdk. Thanks!

All 9 comments

When a resource inside a nested stack fails, the error details are nowhere to be found.

In nested stack:

Embedded stack [enormousId] was not successfully created: The following resource(s) failed to create: [schema].

Without nested stack:

schema Property validation failure: [Length of value for property {/Definition} is less than minimum allowed length {1}]

The second error is obviously way more helpful, but is nowhere to be found when using nested stacks. Maybe this is related?

@LanderN it might be related. There's an issue for that exact issue at #4489

Maybe #5722 and #4488 are related.

any updates on this?

This issue, #4489, #4490 and #5974 make working with Nested Stacks in CDK much more troublesome than it should be.
Is there any update on this?

@LanderN agreed

I updated to 1.33.0 yesterday but haven鈥檛 tried running cdk diff yet.

Any updates, we just hit this problem as well and it will cause us issues with using CDK. Is there a workaround?

I wonder if the recent announcement about nested stack change sets will help.

https://aws.amazon.com/about-aws/whats-new/2020/11/aws-cloudformation-change-sets-now-support-nested-stacks/

@cmckni3 It does! I will look into what is required to add this to the cdk. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v-do picture v-do  路  3Comments

slipdexic picture slipdexic  路  3Comments

peterdeme picture peterdeme  路  3Comments

kawamoto picture kawamoto  路  3Comments

artyom-melnikov picture artyom-melnikov  路  3Comments