问题
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