1.0.0 • Published 5 years ago
serverless-google-jobs v1.0.0
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 serverlessInstall Plugin
npm install serverless-google-cronjobsSetting 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-cronjobsSet 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: '* * * * *'1.0.0
5 years ago