QwikSkills Support

AWS Labs
Creating a Scheduled task with AWS Lambda

Creating a Scheduled task with AWS Lambda

Difficulty Level
Lab Duration
30 Min
About Lab


AWS Lambda is a serverless computing service provided where users can create functions, self-contained applications written in one of the supported languages and runtimes, and upload them to AWS Lambda, which executes those functions in an efficient and flexible manner.
The Lambda functions can perform any kind of computing task, from serving web pages and processing streams of data to calling APIs and integrating with other AWS services.

This Lab guides you on how to create scheduled tasks using AWS Lambda. In this lab, we will create a lambda function that will be triggered daily at some specific time to stop the running EC2 machines if there is any running instance. 

What Will You Learn?

  • Create a Lambda function to stop a running EC2 instance (pre-existing)
  • Schedule trigger of a specified time on this function


User should have basic understanding of below:

  • Amazon Console 
  • AWS Lambda
  • AWS CloudWatch
  • Amazon EC2

Lab Steps:

1. Launching Lab 

  • Click on Start Lab to generate credentials for AWS, it will start the lab.
  • Once the Lab is started, you will be provided with IAM user name, Password,