Cron job cloud watch event error: "Event pattern contains invalid value (can only be a nonempty array or nonempty object)

房东的猫 提交于 2021-01-05 07:34:45

问题


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.

My cron job expression is:

0 7 * * * ....

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

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?


回答1:


You can try the following:

0 7 ? * * *

All the times are in GMT, thus you would have to adjust the above to match your time zone.



来源:https://stackoverflow.com/questions/64589534/cron-job-cloud-watch-event-error-event-pattern-contains-invalid-value-can-onl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!