This is an English translation of a Japanese blog. Some content may not be fully translated.
AWS

What to Check When CloudWatch Logs Are Not Being Written from Lambda

Getting this error and logs are not being written at all.

image-20230127162101389

Cause

The role from another Lambda function was being reused, and the CloudWatch Logs write destination was configured specifically for that other Lambda function. This can be resolved by modifying the IAM policy or creating a new policy.

Suggest an edit on GitHub