Search code examples
amazon-web-servicescronamazon-cloudwatch

AWS Cloudwatch cron expressions every hour


I want to set my service to be triggered hourly, based on the AWS doc:https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions

Is cron(0 * * * ? *) the right way to define it?


Solution

  • if it's a simple expression like hourly execution, why don't you use rate expression?

    you set the code below in your cloudformation, serverless template or etc for every one hour.

    rate(1 hour)