在AWS CLI上找不到IAM凭证 [英] IAM credentials not found on AWS CLI
问题描述
我正在尝试自动将db备份上传到ubuntu机器上的s3.我有正确生成的数据库备份,但是当我尝试上传到s3时,出现以下错误:
I'm trying to automate a db backup upload to s3 on an ubuntu machine. I have the db backup generating correctly, but when I try to upload to s3 I get the following error:
A client error (InvalidAccessKeyId) occurred when calling the PutObject
operation: The AWS Access Key Id you provided does not exist in our records.
我使用了命令行aws configure命令来配置我的凭据,然后打开〜/.aws/config文件并确保它是正确的.我也跑了
I used the command line aws configure command to configure my credentials, then opened the ~/.aws/config file and made sure it was correct. I also ran
aws configure list
并收到以下信息:
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ****************B6YQ config_file ~/.aws/config
secret_key ****************Vstu config_file ~/.aws/config
region cn-north-1 config_file ~/.aws/config
当这不起作用时,我尝试为root用户和IAM用户都重新生成新的凭据,但这仍然不起作用. 我尝试了IAM模拟器,以查看S3 put命令是否可以正常工作.
When that didn't work I tried regenerating new credentials for both the root user and the IAM user, but that still didn't work. I tried the IAM simulator to see if the S3 put command would work and it did.
有人对我能做什么有任何想法吗?
Does anyone have any ideas as to what I can do?