The hands-on lab is part of these learning paths
Ready for the real environment experience?
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.
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
This is a beginner-level lab intended for:
- Cloud Engineers
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:
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.