Skip to content
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

aws ecs get-task-protection --cluster <value> gives an "Invalid choice" error #8273

Closed
jedkass opened this issue Oct 27, 2023 · 2 comments
Closed
Labels
documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged.

Comments

@jedkass
Copy link

jedkass commented Oct 27, 2023

Describe the issue

I'm trying to get task protection info for my ECS cluster/service. I am on CLI version 2.8.3 and am following the docs here for v2. However, when I try to call aws ecs get-task-protection --cluster <value>, I get the following:

aws: error: argument operation: Invalid choice, valid choices are:

create-capacity-provider                 | create-cluster
create-service                           | create-task-set
delete-account-setting                   | delete-attributes
delete-capacity-provider                 | delete-cluster
delete-service                           | delete-task-set
deregister-container-instance            | deregister-task-definition
describe-capacity-providers              | describe-clusters
describe-container-instances             | describe-services
describe-task-definition                 | describe-task-sets
describe-tasks                           | discover-poll-endpoint
execute-command                          | list-account-settings
list-attributes                          | list-clusters
list-container-instances                 | list-services
list-tags-for-resource                   | list-task-definition-families
list-task-definitions                    | list-tasks
put-account-setting                      | put-account-setting-default
put-attributes                           | put-cluster-capacity-providers
register-container-instance              | register-task-definition
run-task                                 | start-task
stop-task                                | submit-attachment-state-changes
submit-container-state-change            | submit-task-state-change
tag-resource                             | untag-resource
update-capacity-provider                 | update-cluster
update-cluster-settings                  | update-container-agent
update-container-instances-state         | update-service
update-service-primary-task-set          | update-task-set
deploy                                   | wait

It seems like get-task-protection is not a valid choice? Was this command removed?

Links

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/get-task-protection.html

@jedkass jedkass added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels Oct 27, 2023
@jedkass
Copy link
Author

jedkass commented Oct 27, 2023

I deleted the CLI installation and re-downloaded via homebrew. Version is now 2.13.29 and it seems like this command is available. I saw this command in the v1 docs too so not sure exactly what happened here, but going to close as resolved!

@jedkass jedkass closed this as completed Oct 27, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant