monte
monte

Reputation: 1885

cron schedule for aws trigger

I am attempting to schedule a trigger on aws, which runs a lambda function daily at 12 noon. My cron expression is cron(0 0 12 * * ?) but the aws throws following error:

An error occurred when creating the trigger: Parameter ScheduleExpression is not valid. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException

What should be the valid expression?

Upvotes: 0

Views: 312

Answers (1)

Marcin
Marcin

Reputation: 238727

The correct expression to run CloudWatch event rule daily at 12 is:

0 12 1/1 * ? *

enter image description here

Upvotes: 1

Related Questions