Skip to content

kapilip/aws-lambda-dynamiccron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aws-lambda-dynamiccron

The purpose of this service is to create multiple recurring tasks on the fly using AWS serveless architecture. Please take a look at this article for more information.

How it works?

How it works

  1. Save an entry in the dynamodb table with a cron syntax(rate( 2 minutes)) i.e. if you want to create a recurring or single task then add extra column for it.
  2. It triggers(dynamo stream) a lambda function that create a cloudwatch rule for this entry.
  3. An alarm triggers on a SNS topic with data entry
  4. A final lambda function is triggered and it can utilize the data entry from dynamodb table to process it's business logic

Prerequisites

  1. Install Serverless
  2. Configure AWS

Installation

serverless deploy -v

Test

aws dynamodb put-item --table-name JobsTable --item '{"leadSourceId": {"S": "20"}, "cronExpression": {"S": "rate(2 minutes)"}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published