-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Stack description not triggering a change to the stack when adding to existing stack #9638
Comments
@jpSimkins - as a workaround, can you try supplying the |
@shivlaks Thanks for your suggestion. I used:
Still not working. |
I destroyed the stack and re-deployed it. For now I have a description. I will leave this open for now as this should trigger a change event either way. Having to destroy a stack to add a description does not seem ideal or warranted. |
@jpSimkins - I'm not able to reproduce this issue. I created and deployed a stack. new MyFlyStack(app, 'MyFlyStack', {
description: 'my stack description',
}); yarn build && cdk synth
yarn run v1.22.4
warning package.json: No license field
$ tsc
✨ Done in 6.85s.
Description: my stack description and then when i run a diff Stack MyFlyStack
Template
[+] Description Description: my stack description This was on version |
Hello @shivlaks, Thanks for your reply. I had this issue a while ago so I decided to see what would happen to my existing stack. I currently have the description so I first attempted to remove it:
When I run a diff:
All looks good, once I deployed:
The description was not removed. This is similar to what happened to me when I first added the description. I can try with a new stack if you need better details. My setup: |
@jpSimkins - got it, I'll go off that. curious whether adding Or rather, maybe it's specific to removal of a description. |
@shivlaks Ran into this issue again today using CDK: 1.72.0 (build c2f38e8) I have an existing stack that I needed to update the description on. When running a diff, I see the description change.
When deploying, there are no changes.
When trying with Unfortunately, I am not able to resolve this one as I cannot destroy this stack as it is already in use. I just changed the replication destination so I wanted to update the stack description to reflect this. |
I've ran to this issue also. Using CDK version 1.74.0 (build e86602f). |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
For anyone wondering - you need to make a change to the resources to force the description to propagate. Ie. add a dummy role then deploy then remove it then deploy. |
❓ General Issue
The Question
I see that the description was added for a stack by this PR
I wanted to add a description to my existing stack, so I added the prop to the entry point:
but when I run
cdk deploy
I am presented with:Environment
Other information
My stack code did not change, I only edited the entry point file to include the prop for the description.
My stack is:
I am new to the CDK (today is my second day using it) so please excuse any missed jargon that I am not using properly.
The text was updated successfully, but these errors were encountered: