Create scheduled tasks with AWS Lambda
203 students completed the lab in ~30m
Total available time: 1h:30m
110+ students rated this lab!
How to schedule periodic tasks with AWS Lambda
AWS Lambda allows you to implement and deploy small computing units by delivering simple functions. Scheduled tasks, similar to Linux cron jobs, are a perfect fit for this computing model.
Indeed, you can configure AWS Lambda to be invoked periodically via Amazon CloudWatch Events.
This approach is particularly useful when your code has very few dependencies and you simply need to execute it on a periodic basis. For example, remove temporary files every minute, or archive logs every hour.
We will see how to setup AWS Lambda and CloudWatch events to monitor a web page every minute, and how to monitor your Lambda Function invocations from CloudWatch itself.
Follow these steps to learn by building helpful cloud resources
Log In to the Amazon Web Service Console
Your first step to start the laboratory experience
Scheduled tasks use cases
When do you need scheduled tasks and how can Lambda help?
Create a Lambda Function with a CloudWatch trigger
How do you bind a new Function to a CloudWatch event?
Implement Scheduled Function logic
AWS Lambda implementation of a website monitoring task.
Monitor Lambda periodic executions
Learn how to monitor your Lambda Function with CloudWatch logs.
Clean up the Lambda Function
Delete the Lambda Function from the Console.