Log group does not exist error when using aws lambda

Viewed 1535

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
2 Answers

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.

Invoke lambda for the first time, it will create the log group.

Related