放大推送收益“您提供的AWS Access Key ID在我们的记录中不存在。”

时间:2019-09-03 13:02:07

标签: aws-amplify

几个月前回到一个应用程序,我跑了:

axes

返回

amplify push

因此,我在控制台中生成了一组新的凭据,并使用Current Environment: dev | Category | Resource name | Operation | Provider plugin | | -------- | --------------------- | --------- | ----------------- | | Api | e9app201907021400api | Update | awscloudformation | | Auth | eauth201907021400 | No Change | awscloudformation | ? Are you sure you want to continue? Yes GraphQL schema compiled successfully. Edit your schema at /Projects/2019/june/e9-app/amp<snip>0api/schema ✖ An error occurred when pushing the resources to the cloud The AWS Access Key Id you provided does not exist in our records. 安装了它们。

我跑了aws configure

得到

aws configure list

已选中:

      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                  default           manual    --profile
access_key     ****************CAGH shared-credentials-file    
secret_key     ****************uU0C shared-credentials-file    
    region                eu-west-1      config-file    ~/.aws/config

返回:

cat ~/.aws/credentials

[default] aws_access_key_id = ****************CAGH aws_secret_access_key = ****************uU0C 继续返回相同的消息。 当我回到控制台并查看用户时,它显示“今天访问密钥年龄”,而不是45天前(在我请求新凭据之前)。

关于我还能检查什么的任何线索吗?

2 个答案:

答案 0 :(得分:0)

似乎与用户帐户关联的非活动密钥使活动密钥无效。为了验证该理论,我重新激活了非活动密钥。此后,我删除了无效密钥。 因此,放大对我来说似乎看不到非主键。

Screenshot from aws console

答案 1 :(得分:0)

尝试在/amplify/.config/local-aws-info.json中检查已配置的“ profileName”。 就我而言,我试图使用其他配置文件运行push命令,但没有用。切换到正确的配置文件可以解决此问题。