返回几个月前的应用程序,我运行:
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/