我使用了上面的CLI命令,但控制台中出现错误,请找到错误的附件屏幕截图 请找到以下lambda的功能策略:
{ "Version": "2012-10-17", "Id": "default", "Statement": [
{
"Sid": "events-access",
"Effect": "Allow",
"Principal": {
"Service": "events.amazonaws.com"
},
"Action": "lambda:InvokeFunction",
"Resource": "arn:aws:lambda:us-east-1:096280016729:function:leto_debug_log",
"Condition": {
"ArnLike": {
"AWS:SourceArn": "arn:aws:events:us-east-1:096280016729:rule/*"
}
}
} ] }
我遵循以下链接的回答,但仍然出现错误: Allow all cloudwatch event rules to have access to lambda function