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