AccessDeniedExceptionnull服务:AWSLambdaInternal;状态代码:403 Amplify

问题描述

添加资源相同的问题后,在添加身份验证后,我遇到了推动放大的问题 放大添加身份验证 放大推 我得到

Following resources Failed

Resource Name: UserPoolClientLambda (AWS::Lambda::Function)
Event Type: create
Reason: AccessDeniedExceptionnull (Service: AWSLambdaInternal; Status Code: 403; Error Code: AccessDeniedException; Request ID: 8434d2a2-4287-4b79-b22f-5d95094436a0; Proxy: null)


× An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occurred during the push operation: Resource is not in the state stackUpdateComplete

我如何解决这个问题?

PS: amplify cli 是 4.41.2 版本

解决方法

终于可以搞定了。 我的问题与我向用户公开的 api 密钥案例有关。

我得到了 AWS 支持的帮助。最初,我只是想修复我的结算付款方式,他们提到由于暴露的 api 密钥他们锁定了我的帐户。他们引导我完成了我的 API 密钥轮换,我只等了大约 3-5 个小时才解锁我的帐户。

我按照相同的步骤进行了尝试,并且成功

$ amplify add auth
$ amplify push