Creating Scheduled Tasks With Amazon Lambda

Lab Steps

Logging in to the Amazon Web Services Console
Creating a Lambda Function for Scheduling
Scheduling a Lambda Function Using AWS Eventbridge
Verifying Your Lambda Function Is Running on a Schedule
Creating a Dashboard to Monitor your 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


Scheduled tasks can be used for many different reasons. Some examples include:

  • Aggregating statistics
  • Monitoring the status of a system
  • Automating simple periodic tasks
  • Indexing data
  • Sending notifications to end-users, other systems, or third-parties

AWS Lambda is a service that lets you run code without managing servers. When you use Lambda you pay only for the compute time you consume, it's often the most cost-effective solution for short, frequent computing tasks.

When using scheduled invocations of Lambda functions, apart from configuring the function itself, you don't have to create any other infrastructure to run your function.

Amazon EventBridge is a serverless event bus service that allows you to connect different services and applications. EventBridge has many use-cases of which event scheduling is just one.

Amazon CloudWatch is a monitoring and observability service that allows you to view logs and graphs of your AWS services. You can use CloudWatch to observe your Lambda functions are running when you want them to and their health.

In this Lab you will create a Lambda function. You will learn how to configure EventBridge to create events that will trigger your Lambda function on schedule. Finally, you will verify that your Lambda function is being triggered using CloudWatch.

Learning Objectives

Upon completion of this Lab you will be able to:

  • Create Lambda functions
  • Run Lambda functions on a schedule using EventBridge
  • Monitor Lambda functions using CloudWatch

Intended Audience

This is a beginner-level lab intended for:

  • Cloud Engineers
  • Developers


You should have a conceptual understanding of:

  • Event-based communication
  • Serverless functions
  • Monitoring and Observability

Experience with the following AWS services will be helpful but is not required:

  • Lambda
  • EventBridge
  • CloudWatch

The Understanding AWS Lambda to Run & Scale Your Code course can be used to fulfill the Lambda prerequisite.


May 6th, 2020 - Updated all Instructions and screenshots. Migrated from CloudWatch Events to EventBridge.

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

About the Author

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.