如何正确配置 aws-vault 以与 Ubuntu Linux 20.04 LTS 配合使用?

Lei*_*son 6 amazon-web-services

我全新安装了 Ubuntu 20.04,在 .aws/config 中设置了 [profile ...],并设置了 /credentials,但是根据我是否使用 kwallet 还是秘密服务,我看到了 2 个单独的错误 - 两者似乎都无法按预期工作,初始误差:

$ aws-vault --debug ls
2021/02/23 18:35:47 [keyring] Considering backends: [kwallet secret-service file]
2021/02/23 18:35:47 Loading config file /home/leigh/.aws/config
2021/02/23 18:35:47 Parsing config file /home/leigh/.aws/config
aws-vault: error: The name org.kde.kwalletd was not provided by any .service files
Run Code Online (Sandbox Code Playgroud)

在其他地方的帖子中,建议使用“秘密服务”:export AWS_VAULT_BACKEND=secret-service

然而,这样的设置会引发一个新的错误:

$ aws-vault --debug ls
2021/02/23 18:40:32 [keyring] Considering backends: [secret-service]
2021/02/23 18:40:32 Loading config file /home/leigh/.aws/config
2021/02/23 18:40:32 Parsing config file /home/leigh/.aws/config
aws-vault: error: The collection "aws-vault" does not exist. Please add a key first
Run Code Online (Sandbox Code Playgroud)

让它按预期工作的正确配置是什么?先感谢您