If I enter:

 aws secretsmanager get-secret-value --secret-id  my secret id

It says invalid choice.

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

and doesn't list secretsmanager as one of the choices or any variation on secretsmanager?

aws secretsmanager get-secret-value --secret-id  my secret id

was used in a video from 2018

Similarly, this command doesn't work

and AWS help and AWS man don't contain secrets manager?

  • Could you please post which version of aws-cli you are using? Jun 5, 2020 at 11:34
  • i tried with a new account with the
    – doug
    Jun 7, 2020 at 16:29
  • aws-cli/1.14.35 Python/2.7.5 Linux/3.10.0-957.21.2.el7.x86_64 botocore/1.8.39
    – doug
    Jun 7, 2020 at 16:33

1 Answer 1


AWS secrets are still accessible via the CLI.

The link you provided goes to an old version of the AWS CLI. Check out the latest version and commands here: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/secretsmanager/index.html

  • thanks though the first part of the command is still aws secretsmanager and if i do aws --help it dosn't display secretsmanager as an avalible option?
    – doug
    Jun 7, 2020 at 15:36
  • thanks iv got it working now from a docker instance still don't know what was wrong with it but it was likely the aws cli as you surjested so thanks!
    – doug
    Jun 7, 2020 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.