Lambdas stopped firing after amplify push, post changes to custom auth challenge functions

0

Been working on custom auth challenge the last couple of hours. Made some minor changes to the lambdas in amplify/backend/function/{create_define_verify_auth} and ran amplify push before testing on simulator. The custom challenge involves a passwordless, phone-number & OTP only signUp and signIn procedure.

Making changes the same way as above worked fine until about 10pm JST, but when I last pushed local changes, the lambdas stopped firing. No changes to front-end, nothing in simulator debug, nothing in cloudwatch. The only minor change I made to the lambda was around logging.

What are some approaches I can take to fix this?

질문됨 일 년 전294회 조회
1개 답변
0

Hi,

To troubleshoot this issue, I would recommend following steps:

  1. Check whether the Lambda triggers configured are showing up on user pool by checking the Cognito Console.
  2. Check whether metrics of Lambda trigger shows any invocation.
  3. Also check if you have made changes to the code on define_auth_challenge Lambda because it defines the custom auth workflow. Slight change might affect the entire authentication process.
  4. You can look at CloudTrail logs for Cognito Authentication events e.g, filter by 'EventName' equals 'InitiateAuth'.
  5. Also check on the CloudFormation templates of function for any possible change by comparing with old templates. Currently deployed templates for Auth can be found on 'amplify/backend/auth/<name>' folder and for the Lambda function on 'amplify/backend/function/<function name>' folder.
  6. Also try upgrading the Amplify CLI version and running 'amplify push' again.

Being customised solution, the issue could be unique and hence, I would recommend opening a technical support case with AWS (https://console.aws.amazon.com/support/home#/case/create)

Also please use official repository of Amplify to get support on this by creating a Github issue. - https://github.com/aws-amplify/amplify-cli/issues

AWS
지원 엔지니어
답변함 일 년 전

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

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

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

관련 콘텐츠