Support Documents

Running Lambda on a Schedule

Lab Details

  1. This lab walks you through the steps to create a schedule on Lambda.

  2. You will be using AWS Lambda in this lab.

  3. Duration: 1 hour.     

  4. AWS Region: US East (N. Virginia) us-east-1


AWS Lambda

  • AWS Lambda is a compute service that lets you run code without provisioning or managing servers. AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second. You pay only for the compute time you consume - there is no charge when your code is not running. With AWS Lambda, you can run code for virtually any type of application or backend service - all with zero administration. 

  • AWS Lambda runs your code on a highly-available compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging.

  • You can use AWS Lambda to run your code in response to events, such as changes to data in an Amazon S3 bucket or an Amazon DynamoDB table, in response to HTTP requests using Amazon API Gateway, or to invoke your code using API calls made using AWS SDKs. With these capabilities, you can use Lambda to easily build data processing triggers for AWS services like Amazon S3 and Amazon DynamoDB, process streaming data stored in Kinesis, or create your own back end that operates at AWS scale, performance, and security.

  • AWS Lambda is an ideal compute platform for many application scenarios, provided that you can write your application code in languages supported by AWS Lambda, and run within the AWS Lambda standard runtime environment and resources provided by Lambda.

  • When using AWS Lambda, you are responsible only for your code. AWS Lambda manages the compute fleet that offers a balance of memory, CPU, network, and other resources. This is in exchange for flexibility, which means you cannot log into the compute instances or customize the operating system on provided runtimes. These constraints enable AWS Lambda to perform operational and administrative activities on your behalf, including provisioning capacity, monitoring fleet health, applying security patches, deploying your code, and monitoring and logging your Lambda functions.           

Architecture Diagram

Task Details

  1. Log into the AWS Management Console. 

  2. Create an EC2 Instance.

  3. Create an IAM role and attach a policy. 

  4. Create a Lambda function.

  5. Create a CloudWatch Event Rule.

  6. Testing the lambda

  7. Validation of the lab