简体   繁体   English

未知服务:“secretsmanager”或 AWS Secrets Manager 服务不在 AWS CLI 列表中

[英]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.

相关问题 AWS和机密(系统管理员,机密管理员,密钥管理服务) - AWS and secrets (Systems Manager, Secrets Manager, Key Management Service) 使用 aws-secretsmanager-jdbc 从 AWS 机密管理器读取 RDS 机密时出现异常 - Exception while reading RDS secrets from AWS secrets manager using aws-secretsmanager-jdbc AWS secretsmanager 错误,无法列出具有特定前缀的秘密 - AWS secretsmanager error, unable to list the secrets with particular prefix 使用 AWS cli 解析来自 AWS 机密管理器的机密 - Parsing secrets from AWS secrets manager using AWS cli 使用 `aws_secretsmanager_secret_policy` 为 AWS Secrets Manager 创建/管理策略有什么好处? - What is the benefit of using `aws_secretsmanager_secret_policy` for creating/managing policy for AWS Secrets manager? 为 secretsmanager 过滤 aws cli 命令 - Filter aws cli command for secretsmanager aws secretsmanager list-secrets 命令返回秘密并按标签过滤它们 - aws secretsmanager list-secrets command to return secrets and filter them by tag 如何在AWS Secrets Manager服务中管理AWS RDS的主用户凭证(由cloudformation创建)? - How to manage master user credentials of aws RDS (created by cloudformation) in aws secrets manager service? 在 AWS Secrets Manager 中创建密钥 - Create secrets in AWS Secrets Manager AWS Secrets Manager 和 javascript - AWS Secrets Manager and javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM