AWS Lambda Cron 计划错误 [英] AWS Lambda Cron Schedule Error

查看:33
本文介绍了AWS Lambda Cron 计划错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个按计划运行的 Lambda 函数,它们都可以正常工作,没有任何问题.但是,我尝试为现有函数设置一个一次性工作,但在创建新规则时出现错误:

详细信息:参数 ScheduleExpression 无效..

我需要它在 2016 年 9 月 26 日星期一 14:30 UTC 运行.

以下是我尝试过的所有变体:

  • 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 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!

解决方案

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:

这篇关于AWS Lambda Cron 计划错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆