Search code examples
amazon-web-servicesaws-lambdaaws-cloudwatch-log-insights

Log group does not exist error when using aws lambda


I'm using aws SQS to trigger a lambda function, after I send message to sqs, when I want to see the cloudwatch log in lambda, I got this error. I'm in the same aws region, any idea what this happened?

Log group does not exist
The specific log group: /aws/lambda/configurationTest does not exist in this account or region

Solution

  • This error happen when newly created Lambda execution role doesn't have access CloudWatch log write access.

    Steps :

    1. Go to IAM
    2. Select role and add policy to write CloudWatch log.