Make sure you have given CloudWatch Logs permission to execute your function如何解决?
To give CloudWatch Logs permission to execute your function, you can follow these steps:
- Open the AWS Management Console and go to the AWS Lambda service.
- Select your function from the list.
- Go to the "Configuration" tab.
- Under "Permissions", click on the "Edit" button next to the execution role.
- This will take you to the IAM console. Click on "Attach policies".
- In the search bar, type "CloudWatchLogsFullAccess" and select the policy.
- Click on "Attach policy" to add it to your execution role.
- Go back to the Lambda console and click on "Save" to apply the changes.
Now, CloudWatch Logs will have the necessary permissions to execute your function
原文地址: https://www.cveoy.top/t/topic/hLxj 著作权归作者所有。请勿转载和采集!