Cron作业云监视事件错误:“事件模式包含无效值(只能是非空数组或非空对象) [英] Cron job cloud watch event error: "Event pattern contains invalid value (can only be a nonempty array or nonempty object)
问题描述
我正在尝试使用玉米作业表达式为lambda函数目标设置时间表.目标是每天IST早上7点运行lambda函数.
I am trying to set a schedule using a corn job expression for a lambda function target. The goal is to run the lambda function every day at 7 am IST.
我的cron工作表达是:
My cron job expression is:
0 7 * * * ....
已将目标设置为lambda函数.
have set the target to be a lambda function.
在配置事件时,出现以下错误:
While configuring the event I get the following error:
Event pattern contains an invalid value (can only be a nonempty array or nonempty object); All added targets need to be configured correctly
对于cron作业表达,我刚刚在网上提到了一些链接,不知道我对这个表达是否正确.
for cron job expression I just referred few links online, don't know if I am correct at the expression.
有人可以让我知道为什么会弹出此错误吗?
Could someone let me know why this error is popping up?
推荐答案
您可以尝试以下操作:
0 7 ? * * *
所有时间均为格林尼治标准时间,因此您必须调整以上时间以匹配您的时区.
All the times are in GMT, thus you would have to adjust the above to match your time zone.
这篇关于Cron作业云监视事件错误:“事件模式包含无效值(只能是非空数组或非空对象)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!