79557965

Date: 2025-04-06 08:34:50
Score: 1.5
Natty:
Report link

how to check when I hit the my-url in the browser is it triggers the lambda function or not?

CloudWatch logs and CloudWatch metrics will tell you if the Lambda is getting invoked and if anything is going wrong with it. Both are accessible from the "Monitoring" tab of the Lambda dashboard. Remember you'll need to be in the correct region (us-east-1).

If lambda function is hit how to check the output of that. (Where can I see the lambda function console logs)?

As above - CloudWatch logs.

CloudTrail is another place you should be able to see what's going wrong. You might need to create a trail first.

BTW, CloudFront Functions are a better fit that Lambda@Edge for this use case - faster, more scalable, cheaper - see this answer for an example.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how to
  • Low reputation (0.5):
Posted by: andycaine