AWS Lambda Cron Schedule Error

穿精又带淫゛_ 提交于 2021-02-17 06:33:05

问题


I have several Lambda Functions that are on a schedule and those are working without any issues. However, I have a onetime job that I am trying to set up for an existing function and am getting an error when I am creating the new rule:

Details: Parameter ScheduleExpression is not valid..

I need this to run on Monday September 26th 2016 at 14:30 hours UTC.

Here are all of the variations I have tried:

  • cron(30 14 26 SEP ? 2016)
  • cron(30 14 26 9 ? 2016)
  • cron(30 14 26 SEP ?*)
  • cron(30 14 26 9 ? *)
  • cron(30 14 26 SEP MON 2016)
  • cron(30 14 26 9 MON 2016)

I must have been staring at this too long because I can't figure out what is the deal on this one. I am using the reference provided here:

http://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html

Thanks all!


回答1:


Are you using web console or CLI? In web console you should not fill the cron() part. Your first expression is correct.

See the screenshot:



来源:https://stackoverflow.com/questions/39600757/aws-lambda-cron-schedule-error

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