Creating Scheduled Tasks With AWS Lambda

Lab Steps

Logging in to the Amazon Web Services Console
Creating an AWS Lambda Function for Scheduling
Scheduling an AWS Lambda Function Using AWS EventBridge
Verifying Your AWS Lambda Function Is Running on a Schedule
Creating a Dashboard to Monitor your AWS Lambda function

Ready for the real environment experience?

Time Limit1h 30m


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.


December 2nd, 2022 - Updated the instructions and screenshots to reflect the latest UI

May 11, 2022 - Updated the instructions and screenshots to reflect the latest UI

February 7th, 2022 - Updated the instructions and screenshots to reflect the latest UI

March 9th, 2021 - Updated AWS Lambda instructions to reflect latest user-interface changes

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
Learning paths3

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.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.