-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[CLI]package/tools: Force deploy flag does not work #15065
Comments
I can't seem to reproduce this, what changes did you make to your stack? |
I didn't make any changes to my stack. My understanding is that the point of the force flag is that it will at least trigger Cloudformation regardless of whether you've changed anything and then Cloudformation will determine what needs updating and what doesn't. In reality, for me at least, the CDK CLI just skips it completely because the template has not changed and Cloudformation is never triggered. |
I have tested it. |
Agreed @jefftham it seems as if this flag cannot work as a user would expect it to work. |
I agree with @jefftham , we should be able to overwrite the Cloudformation rule using --force, to literally force to deploy. |
any updates on this? it's a really annoying issue that this flag doesn't actually work |
@Lockoo You only need to add |
this won't trigger a deploy if there are no changes, it just doesnt need approval to deploy when there are. |
I have the same use case - I want I found #8493 which claims that you can do this with |
it's been two years without working :-(, no updates about this issue yet? it would be really nice to have this working again without doing any work-around |
Hi everyone on this issue, Please run the command again with
And observe the additional logged output.
If you are planning to use |
Our workaround has been to deploy the last version, then redeploy the current version. Far from ideal. |
People expect the `--force` flag to do something that it doesn't do. Explicitly warn them about that behavior when it happens. Relates to #15065.
People expect the `--force` flag to do something that it doesn't do. Explicitly warn them about that behavior when it happens. Relates to #15065. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Running
cdk deploy stack-name --require-approval never --force
does not work. Specifically its skips updating the stack with(no changes)
outputted in the command line. I've also tried the following patterns:cdk deploy stack-name --force
cdk deploy --force stack-name
Reproduction Steps
Repo is private so cannot link but simply running one of the above commands with cdk toolkit version
1.108.0
should suffice. I can try and reproduce in a public repo if the person seeing this cannot reproduce.What did you expect to happen?
CDK would never skip updating stacks due to "no changes" in the template when the
--force
flag is passed.What actually happened?
CDK skips updating stacks due to "no changes" in the template when the
--force
flag is passed.Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: