3 ms·
Cron is a scheduler that executes shell commands. Lambda represents the shell command itself right? What are you using to specify when something should run?
by meritt 6y ago
Cron is a scheduler that executes shell commands. Lambda represents the shell command itself right? What are you using to specify when something should run?
- banana_giraffe 6y agoLambda can trigger off a bunch of AWS events. One of those events types are CloudWatch events, mostly used for triggering in response to things like CPU activity or other metrics. One of the CloudWatch events you can specify are plain old Cron events: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/S...
- deleted 6y ago[deleted]
- garethmcc 6y agoIf you use a tool like the Serverless Framework, you can trigger Lambda functions off of many different events, includinmg a schedule: https://www.serverless.com/framework/docs/providers/aws/events/schedule/#schedule https://www.serverless.com/framework/docs/providers/aws/even...
- vosper 6y agoLambda has built in support for scheduling, including cron syntax https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html https://docs.aws.amazon.com/lambda/latest/dg/services-cloudw...