Reputation: 1885
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
Reputation: 238727
The correct expression to run CloudWatch event rule daily at 12 is:
0 12 1/1 * ? *
Upvotes: 1