Your function doesn't have permission to write to Amazon CloudWatch Logs

My function has the following warning message when I go to the monitoring tab on web console:

“Your function doesn’t have permission to write to Amazon CloudWatch Logs. To view logs, add the AWSLambdaBasicExecutionRole managed policy to its exec”

What can be the root cause of this misconfiguration?

3 Likes