aws-cli - 无法使用 AWS CLI 访问 Glacier

标签 aws-cli amazon-glacier

我正在尝试使用类似以下内容访问 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/

相关文章:

amazon-s3 - Glacier和S3使用生命周期规则,指定的键不存在

amazon-web-services - 使用 AWS CLI 获取实例的名称和 ARM 列表

amazon-web-services - AWS CLI 按标签搜索资源

amazon-s3 - S3 对象 : Difference between 'expires' and 'expiration date'

amazon-web-services - 列出具有特定存储类的 S3 存储桶对象

amazon-web-services - 在 CloudFormation 模板中引用 Glacier 作为资源?

linux - 在 AWS 基础设施中使用 bash 脚本从 Autoscaling Group 标签安装包

shell - 如何在 Circle CI 中设置环境变量

amazon-web-services - S3 默认使用哪个 Glacier 保管库?

python-2.7 - boto 的 Glacier-to-S3 Restore() 功能不起作用