0

I have defined a resource/method in API Gateway to make a post call to Lambda Function which is a microservice exposing few endpoints.

Method: post

Payload:

[{"gts_user_id":2,"gts_role_id":2,"gts_user_role_is_primary":1}]

enter image description here

This call is not reaching the Lambda method. I am not able to see any logs. What may be the reasons?

7
  • Can you show a picture of the API GW Resources, show us the API GW POST pointing to the Lambda. Second are you using Velocity Apache - its the language used to do ETL's on incoming and outgoing JSON? Have you looked in Cloud Watch > Log Groups > /aws/lambda/user ? The Error will be there... Commented Jun 7, 2021 at 3:47
  • Thanks Jeremy for quick response. How to attach a picture? Please share your emailID, I will send the picture. I am using Springboot microservice. Inside Cloud Watch > Log Groups > /aws/lambda/IdentitityService, there is no log. It is working if I pass a plain JSON object and not an array. Commented Jun 7, 2021 at 4:37
  • I added the picture in google drive: drive.google.com/file/d/1ouCCZPipfWabGRTnrm4N4cWuF-x_gShj/… Commented Jun 7, 2021 at 5:13
  • I did remove the URL @MonoranjanGorai. It was broken and contained details. Furthermore, your picture that you linked is a Word document. Commented Jun 7, 2021 at 5:35
  • 1
    Here is my article on aws lambda and API gateway plz check - dzone.com/articles/aws-lambda-with-mysql-rds-and-api-gateway Commented Jun 7, 2021 at 6:34

1 Answer 1

1

But after analyzing and exploring several options I found that there was policy error "The final policy size (20577) is bigger than the limit (20480)". I removed the triggers & recreated, then it started to work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.