3 ms·
Not sure based on your wording, but you -can- execute scheduled tasks with Lambda. It's a little tricky, as the actual configuration takes place in Cloudwatch (
by lostcolony 10y ago
Not sure based on your wording, but you -can- execute scheduled tasks with Lambda. It's a little tricky, as the actual configuration takes place in Cloudwatch (Cloudwatch Events). You also will be sure to want to set up a dead letter queue, and have that broadcast to an SNS topic that will email you, so that in the event the lambda fails, you'll be alerted.
- abrookewood 10y agoI've read about external services that will hit a SQS queue for you, but it would be a lot nicer if it was just supported natively in Lambda.
- lostcolony 10y agoNo, like, http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-e... (and linked from that page, http://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html http://docs.aws.amazon.com/lambda/latest/dg/tutorial-schedul... ) You can just set up "here's my cron string, run this function", and it will run that function when applicable. No external services, no SQS. Just a Cloudwatch event, that executes your lambda, at a set schedule.
- abrookewood 10y agoPerfect! Thanks. I'm going to retire some boxes ;)