AccessDeniedException: User: arn:aws:sts::764717618004:assumed-role/cloudwatch_logs_events_putter/

0

Hello, I have observed that the Lambda functions are working correctly on my local machine with my NextJS application. However, when I deployed my NextJS application on the server, I encountered an error in the network tab.

{"message":"AccessDeniedException: User: arn:aws:sts::764717618004:assumed-role/cloudwatch_logs_events_putter/uZUu4Ca7Slsek0AGRJnQtenJ-5c0c2554740d00c0e47b39b0106000bb2d9b492 is not authorized to perform: cognito-idp:AdminInitiateAuth on resource: arn:aws:cognito-idp:us-east-2:764717618004:userpool/us-east-2_Y93BT0AII because no identity-based policy allows the cognito-idp:AdminInitiateAuth action"}

1개 답변
0

Hi Shyam,

This error comes from the AWS Lambda function from not having the ability to execute the API action cognito-idp:AdminInitiateAuth.

You can correct this by adding an going to your lambda function, going to configuration, and selecting permissions. Under Execution Role, click on the role name and then edit the inline policy to allow the action.

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠