GithubHelp home page GithubHelp logo

alexistimic / serverless-scheduled-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from surfedge/serverless-scheduled-boilerplate

0.0 1.0 0.0 3 KB

Want tot run a lambda function in a scheduled manner? here's the boiler plate for it

JavaScript 100.00%

serverless-scheduled-boilerplate's Introduction

Serverless Scheduled Boilerplate

Want to run a lambda function in a scheduled(Cron Job) manner? here's the boilerplate for it.

Want to run a function to check weather and send an email every 10 minutes? or any sort of scehduled function?

What's the catch here ?

Its very simple to create scheduled events with Serverless AWS Stack.

Its simple as configuring the below in the serverless.yml.

provider:
  name: aws
  runtime: nodejs4.3

functions:
  run:
    handler: handler.run
    events:
      - schedule: rate(1 minute)
- schedule: rate(1 minute) <- This is where the magic happens. 

You can set the rate according to the standards. Take a look at the AWS schedule syntax documentation for more details.(http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html)

Links:

Serverless Schedule events documentation: (https://serverless.com/framework/docs/providers/aws/events/schedule/)

serverless-scheduled-boilerplate's People

Contributors

chamathpali avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.