参数 ScheduleExpression 无效。在 aws lambda 上?
Parameter ScheduleExpression is not valid. on aws lambda?
我正在尝试设置 Cloudwatch 计划事件,我的 cron 表达式似乎无效,但我不知道为什么。
我的 cron 表达式是:
functions:
governorCrone:
handler: handler.governorCrone
events:
- schedule: cron(1 * * * * *)
我想每分钟 运行 我的 cron,但是每当我在无服务器上部署我的函数时,我每次都会收到以下错误
An error occurred: GovernorCroneEventsRuleSchedule1 - Parameter ScheduleExpression is not valid. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException; Request ID: fd4fb03c-0b2e-11e9-bc87-9d783a29b264).
如果我做错了什么请告诉我
您使用的 cron 表达式是 invalid.If 您希望您的 cron 每分钟 运行 那么正确的表达式将如图所示 below.For 更多示例参考 this .
cron(0/1 * * * ? *)
我正在尝试设置 Cloudwatch 计划事件,我的 cron 表达式似乎无效,但我不知道为什么。
我的 cron 表达式是:
functions:
governorCrone:
handler: handler.governorCrone
events:
- schedule: cron(1 * * * * *)
我想每分钟 运行 我的 cron,但是每当我在无服务器上部署我的函数时,我每次都会收到以下错误
An error occurred: GovernorCroneEventsRuleSchedule1 - Parameter ScheduleExpression is not valid. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException; Request ID: fd4fb03c-0b2e-11e9-bc87-9d783a29b264).
如果我做错了什么请告诉我
您使用的 cron 表达式是 invalid.If 您希望您的 cron 每分钟 运行 那么正确的表达式将如图所示 below.For 更多示例参考 this .
cron(0/1 * * * ? *)