我正在尝试将我的CloudWatch规则链接到Lambda目标 . 但似乎它不起作用
CronPullQuotationFromActuary:
Type: AWS::Lambda::Function
Properties:
...
CronPullQuotationFromActuaryEvent:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: cron(5 0/1 * * ? *) # Run every hour at 5 minute
State: ENABLED
Targets:
- Arn: !GetAtt CronPullQuotationFromActuary.Arn
Id: !Ref CronPullQuotationFromActuary
即使CloudWatch仪表板看起来很好
lambda不是
注意没有触发器 . 这是为什么?
1 回答
您似乎缺少Lambda Permission for CloudWatch Events .
根据 To create a rule using the AWS CLI Schedule AWS Lambda Functions Using CloudWatch Events: Create a Rule,您需要以下权限: