This message was deleted.
# aws
s
This message was deleted.
m
With Lambda it looks something like:
Copy code
// CloudWatch cron trigger
const syncLambdaSchedule = "cron(0 0 * * ? *)";
const syncLambdaRuleHandler: aws.cloudwatch.EventRuleEventHandler = syncLambda;
aws.cloudwatch.onSchedule(`${appName}-event`, syncLambdaSchedule, syncLambdaRuleHandler);
w
Thanks, I will play around with this.
m
It’s called scheduled ECS tasks. You can set that up using CloudWatch scheduled events. They support cron expressions and rate expressions. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduled_tasks.html