aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.09k stars 4.01k forks source link

delete stack doesn't have --deletion-mode option #8756

Closed huyhoang160593 closed 1 week ago

huyhoang160593 commented 1 week ago

Describe the bug

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/delete-stack.html as here mention there is --deletion-mode that can be use to some kind of force delete a stack, but when using cli they are unknown option

Expected Behavior

have --deletion-mode option available

Current Behavior

Unknown options: --deletion-mode, FORCE_DELETE_STACK

Reproduction Steps

aws cloudformation delete-stack --stack-name --deletion-mode "FORCE_DELETE_STACK"

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.13.0 Python/3.11.4 Linux/6.9.4-200.fc40.x86_64 exe/x86_64.fedora.40 prompt/off

Environment details (OS name and version, etc.)

Linux

tim-finnigan commented 1 week ago

It looks like --deletion-mode was just added recently in 2.15.56. I just tested in 2.16.8 and can confirm the option is recognized. Please update to a more recent version of the AWS CLI, documentation here: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

github-actions[bot] commented 1 week ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.