Schedule Cron表达式无效?

时间:2018-03-21 23:53:48

标签: amazon-web-services cron amazon-cloudwatch

我正在创建一个AWS CloudWatch规则,使用 Schedule Cron表达式30 10 * * 2,5 *,即 - 每周二和周五10:30 UTC。

然而,AWS给了我

There was an error while saving rule Snapshot_EBS_disk.
Details: Parameter ScheduleExpression is not valid..

知道我的表情有什么问题吗?

1 个答案:

答案 0 :(得分:1)

某一天或一周中的某一天必须为?。因此,为了使您的cron表达式有效,您将使用以下内容:

30 10 ? * 3,6 *

另请注意,周二和周五分别为3和6