0

I set up API Gateway with Lambda function. If I run Lambda with 'test' button in console, console.log writes to CloudWatch fine. If I run http calls from Postman to Gateway then to Lambda, there is no logs. Is this the way? If yes, how can the app log in production? I know the API gateway can log as well, but this way doesn't log the console.log in Lambda. Thanks in advance.

2
  • 7
    The behavior is the same, it doesn't matter how your AWS Lambda is invoked. Maybe your API Gateway is misconfigured? Do you point to a different AWS Lambda Version or a different Function? Commented Aug 6, 2018 at 10:51
  • Maybe the Lambda is in another region? Commented Aug 7, 2018 at 19:35

1 Answer 1

1

MaiKaY's answer was correct. It was only I didn't 'deploy' API. AWS way: configure, save, in the end we need to 'deploy'. Thank you all.

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.