{"id":1418,"date":"2019-11-16T09:55:19","date_gmt":"2019-11-16T15:55:19","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1418"},"modified":"2019-11-16T09:57:37","modified_gmt":"2019-11-16T15:57:37","slug":"aws-cloudwatch-cron","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/aws-cloudwatch-cron\/","title":{"rendered":"AWS Cloudwatch Cron"},"content":{"rendered":"\n

I was trying to schedule a once a week snapshot of a EBS volume and getting \"Parameter ScheduleExpression is not valid<\/strong>\". Turns out I missed something small. If you schedule using a cron expression note this important requirement: One of the day-of-month or day-of-week values must be a question mark (?)<\/strong><\/p>\n\n\n\n

I was trying:<\/p>\n\n\n

\n0 1 * * SUN *\n<\/pre><\/div>\n\n\n

What worked was:<\/p>\n\n\n

\n0 1 ? * SUN *\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"

I was trying to schedule a once a week snapshot of a EBS volume and getting “Parameter ScheduleExpression is not<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,111,112],"tags":[],"class_list":["post-1418","post","type-post","status-publish","format-standard","hentry","category-aws","category-cloudwatch","category-cron"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1418"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1418\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}