我正在尝试使用类似以下内容访问 AWS Glacier(从 Ubuntu 14.04 上的命令行):
aws glacier list-vaults -
而不是
aws glacier list-vaults --account-id 123456789
documentation 建议这应该是可能的:
You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request.
除非“用于签署请求的凭据”意味着我必须在命令中明确包含凭据,而不是依赖于我的 .aws/credentials 文件,否则我希望它能工作。相反,我得到:
aws: error: argument --account-id is required
有没有人知道如何解决这个问题?
最佳答案
-
应该作为 --account-id
的值传递,就像
aws glacier list-vaults --account-id -
--account-id
实际上是必需的选项。
关于aws-cli - 无法使用 AWS CLI 访问 Glacier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29199027/