-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(core): Add IncludeNestedStacks option to createChangeSet #19224
Comments
#17396 does this |
ok thanks. Unfortunately #19044 happened. |
So is there a plan to bring this option back in? |
This is a workaround for #5722 - users can do `cdk deploy --no-execute` and then view the nested changesets as a way to get a full diff of changes. This PR is a re-roll of #17396. That PR broke an integration test in the CLI, which this version fixes. Closes #19224. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Re-opening this issue since the change did not make it to release. It was reverted a few times due to causing failures in our CI integration tests. |
This is a workaround for aws#5722 - users can do `cdk deploy --no-execute` and then view the nested changesets as a way to get a full diff of changes. This PR is a re-roll of aws#17396. That PR broke an integration test in the CLI, which this version fixes. Closes aws#19224. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Any updates on this? I'm currently working on migrating my project to aws-cdk v2, and getting a reliable diff on nested stack resources would be really useful 😅 |
I'm getting s3 access errors on my nested stack whenever I do cross-account deploys and was wondering if this was the issue |
Just chiming in here... it's been a while, but this would be hugely helpful. Without this, we're hesitant to make too much use of nested stacks |
still no action here? Unfortunately my workaround doesn't work anymore: sed -i "s/ChangeSetName: changeSetName,/ChangeSetName: changeSetName,IncludeNestedStacks: true,/g" node_modules/aws-cdk/lib/api/deploy-stack.js
sed -i "s/ChangeSetName: changeSetName,/ChangeSetName: changeSetName,IncludeNestedStacks: true,/g" node_modules/aws-cdk/lib/index.js doing that did the trick for me. But it looks like something has changed in the recent versions. I am on 2.70.0 now and I don't get the netested changes anymore. Will investigate that later. It sucks not knowing what might change in a nested stack exactly. |
I discover this and it's a bit kind of show stopper because I was planning to use --no-execute to review changes but if cannot see what changes there are in a changeset, I really don't understand. |
I don't understand this code is working perfectly : just need to add the IncludeNestedStacks: true, why do we should have to patch with sed. thanks @konstantinj for sharing your tip. This must be addressed by the CDK DEV team if it doesn't introduced unexpected behavior or regression. this https://github.com/aws/aws-cdk/pull/19494/files/120c7196153b601203e9e26709733722905657fe doesn't seem to be merged. |
As mentioned above, this was merged and reverted before release because it was causing errors in our CI. I'm not sure why this caused errors in our CI before, maybe @madeline-k or someone else knows about that, all I can see is that it caused an error unexpectedly in one of our CLI integ tests #19618. I'm not sure what investigation, if any, has continued here. We would probably take another look at this sooner than later if someone helps us by submitting a PR for this |
Ok, in the meantime I'm using the Sed workaround and this review changeset feature is a must have for us. I also opened a support ticket with enterprise support. Thanks, |
|
I encounter this issue now that we intensively use CDK with Nested Stack. everytime there's no change in a stack it creates a failed changeset in the Nested that you cannot even delete. Only way to remove them is to create a change that updates the Nested Stack... we are close from the show stopper in production with all those defects. Everyday I found a new issue |
Description
As @rectalogic points out here #5722 (comment) a year ago it is helpful to see the exact changes of nested stacks in the aws console. Without that option you only see that a nested stack will change. With that option you'll get a link in the console to the changeset of the nested stacks. This would be very helpful for me. I even think setting
IncludeNestedStacks: true
as default does not harm.Use Case
It's currently impossible to see changes of nested stacks even when using changesets.
Proposed Solution
You need to add
IncludeNestedStacks: true
here:aws-cdk/packages/aws-cdk/lib/api/deploy-stack.ts
Line 298 in bd4141d
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: