Why Aren’t My AWS Lambda Logs Saving to CloudWatch Anymore?

0
5
Asked By ChillaxinNinja42 On

I created a basic Lambda function that activates when I upload a file to a bucket and then saves an image to another bucket. It used to log its activities to CloudWatch, but now it isn't saving any logs, even though everything else functions properly. I've played around with permissions, and I've confirmed that the ARNs for the CloudWatch log groups are set up correctly. What could be causing this issue?

3 Answers

Answered By CodeCrafter21 On

Yeah, checking permissions seems essential. If those are fine, it could be a networking issue, like if something's changed that is preventing access to the CloudWatch API. Better take a look!

Answered By TechieGuru99 On

It sounds like your Lambda function might not have the necessary permissions to write logs to CloudWatch. Make sure the AWSLambdaBasicExecutionRole is attached to your Lambda, and that should fix the problem.

Answered By DataDiva88 On

If the logging was working before and suddenly stopped, try to think about what might have changed. Did you move the function into a different subnet in a VPC recently? Or has anyone modified the function's role policy?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.