1.0.0 • Published 4 years ago

serverless-google-jobs v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

serverless-google-cronjobs

Pre-request

Follow below link to setup google account for deploying your first serveless application. Google account setup

Setup

Install Serverless

npm install -g serverless

Install Plugin

npm install serverless-google-cronjobs

Setting the credentials and project

Update the credentials and your project property in the serverless.yml file.

Usage

Update the plugin list in the serverless.yml file.

plugins:
  - serverless-google-cronjobs

Set schedule property in the your function's parameters

functions
  hello:
    handler: hello
    events:
      - event:
          eventType: providers/cloud.pubsub/eventTypes/topic.publish
          resource: 'projects/<projectId>/topics/<topicName>'
          schedule: '* * * * *'

Configuring cron job schedules

1.0.0

4 years ago