[英]Unknown service: 'secretsmanager' or AWS Secrets Manager service is not in the list of AWS CLI
I was trying to use AWS secrets manager service for storing secret keys.我试图使用 AWS Secrets Manager 服务来存储密钥。 I could store the key in the secrets manager, but while retrieving the key using the code they provide I'm getting this error.我可以将密钥存储在机密管理器中,但是在使用他们提供的代码检索密钥时出现此错误。
UnknownServiceError: Unknown service: 'secretsmanager'. UnknownServiceError:未知服务:'secretsmanager'。 Valid service names are: acm, alexaforbusiness,...有效的服务名称是:acm、alexaforbusiness、...
I tried a search on the AWS CLI and the service is not on the list also.我尝试在 AWS CLI 上进行搜索,但该服务也不在列表中。
aws: error: argument command: Invalid choice, valid choices are:
acm | alexaforbusiness
apigateway | application-autoscaling
appstream | appsync
.
.
.
Do I need some kind of aws cli update?我需要某种 aws cli 更新吗? May be because of the CLI version that I'm using.可能是因为我使用的 CLI 版本。 Then, how can I update that.那么,我该如何更新。 I tried我试过
sudo apt-get install -y awscli
an it says它说
awscli is already the newest version (1.11.13-1ubuntu1~16.04.0).
secretsmanager is only available from aws cli version 1.15.8 and upwards secretsmanager 仅适用于 aws cli 版本1.15.8及更高版本
aws --version aws --version
aws-cli/1.15.10 Python/2.7.10 Darwin/17.5.0 botocore/1.10.10 aws-cli/1.15.10 Python/2.7.10 Darwin/17.5.0 botocore/1.10.10
You may need to manually install/update aws cli您可能需要手动安装/更新 aws cli
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.