【发布时间】:2019-08-21 20:04:10
【问题描述】:
我正在尝试将所有可用文件从我的 s3 存储桶下载到我的本地计算机。我已经安装了 AWS cli。然后我也使用 aws configure 来设置访问密钥和密钥。我在尝试执行以下命令时遇到问题:
$ aws s3 sync s3://tempobjects .
设置命令
LAMU02XRK97:s3 vsing$ export AWS_ACCESS_KEY_ID=*******kHXE
LAMU02XRK97:s3 vsing$ export AWS_SECRET_ACCESS_KEY=******Ssv
LAMU02XRK97:s3 vsing$ aws configure list
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ****************kHXE shared-credentials-file
secret_key ****************pSsv shared-credentials-file
region us-east-1 config-file ~/.aws/config
错误:
LAMU02XRK97:s3 vsing$ aws s3 sync s3://tempobjects .
fatal error: An error occurred (InvalidAccessKeyId) when calling the ListObjectsV2 operation: The AWS Access Key Id you provided does not exist in our records.
【问题讨论】:
-
我建议显而易见 - 确保访问密钥 ID 和秘密访问密钥有效。至少您访问密钥 ID 中的后缀
kHXE表明有问题,访问密钥 ID 通常为大写。 -
access_key id 只能是大写
标签: amazon-web-services amazon-s3