Create scheduled tasks with AWS Lambda

Lab Steps

Logging in to the Amazon Web Services Console
Scheduled tasks use cases
Create a Lambda Function with a CloudWatch trigger
Implement Scheduled Function logic
Monitor Lambda periodic executions
Cleaning Up the Lambda Function

The hands-on lab is part of these learning paths

SysOps Administrator – Associate Certification Preparation for AWS
course-steps 34 certification 5 lab-steps 30 quiz-steps 4 description 5
Getting Started with Serverless Computing on AWS
course-steps 8 certification 1 lab-steps 9

Ready for the real environment experience?

Time Limit1h 30m
star star star star star-half


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.



January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab


Do you have questions about this Lab? Contact our cloud experts by sending an email to

About the Author

Alex is an Italian Software Engineer with a great passion for web technologies and music.

He spent the last 5 years building web products and deepening his knowledge on full stack web development and software design, with a main focus on frontend and UX.

Despite being a passionate coder, Alex worked hard on his software and sound engineering background, which provides him the tools to deal with multimedia, signal processing, machine learning, AI and many interesting topics related to math and data science.

Indeed, he had the opportunity to study and live in a very young and motivating environment in Bologna and Milan, two of the biggest and oldest Italian Universities. These experiences lead him to work on several projects involving robotics, machine intelligence, music semantic analysis and modern web development.

Alex is currently a Senior Software Engineer at Cloud Academy, a position that gave him the possibility to discover the Cloud world and exploit its potential as a web developer and data scientist.