DEV Community

Play Button Pause Button
Nader Dabit for AWS

Posted on

Serverless Cron Jobs & Scheduled Events with AWS Lambda

Have you ever wondered how you would schedule something like a cron job or scheduled event when working with a serverless application?

This is one of the most asked questions I get when teaching serverless application development. In this video, you'll learn how to quickly add a scheduled event or cron job to an existing Lambda function, and if you've not deployed a function yet, you'll also learn how to do so using AWS Amplify.

Top comments (4)

Collapse
 
ale_annini profile image
Alessandro Annini

I am scheduling a step-function that runs my lambda because I read that using directly a lambda with cloudwatch could lead to occasional delays, can you confirm this?

Collapse
 
ionline247 profile image
Matthew Bramer

Where did you read this?

Collapse
 
ale_annini profile image
Alessandro Annini

As a matter of fact I think I confused CloudWatch documentation that clearly states that the precision is 1 minute with DynamoDB TTL feature that is a completely different story.
Mistery solved! :)

Collapse
 
topitguy profile image
Pankaj Sharma

Thank you for that Nader