aws-amplify - 放大推送产量 "The AWS Access Key Id you provided does not exist in our records."

标签 aws-amplify

返回几个月前的应用程序,我运行:

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

amplify Push 继续返回相同的消息。 当我返回控制台并查看用户时,它显示“今天访问 key 年龄”,而不是 45 天前(在我请求新凭据之前)。

还有什么线索可以告诉我我还可以检查什么吗?

最佳答案

尝试检查/amplify/.config/local-aws-info.json 中配置的“profileName”。 就我而言,我尝试使用不同的配置文件运行推送命令,但这不起作用。切换到正确的配置文件解决了该问题。

关于aws-amplify - 放大推送产量 "The AWS Access Key Id you provided does not exist in our records.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57772336/

相关文章:

javascript - AWS 扩大认知用户

reactjs - Amplify - 如何设置 cognito 使用电子邮件作为用户名?

ios - 端点不符合创建亚马逊 pinpoint 营销事件的条件

android - 使用 AWS DynamoDB 在 Android 应用程序中使用多个表

graphql - 如何从 AWS Amplify 生成的 GraphQL 文档获取createdAt、updatedAt 和owner 字段?

amazon-s3 - 使用放大覆盖公开特定的 S3 存储桶文件夹

angular - 将AWS放大到Angular应用程序时出现错误: global is not defined

aws-amplify - 模型字段上的 AWS Amplify AppSync @function

reactjs - 如何让 React 组件等待 redux 存储变量设置?