Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 549 Bytes
service: goalbot
provider:
name: openwhisk
runtime: nodejs:8
custom:
credentials: ${file(creds.json)}
functions:
goals:
handler: lib/goal_tracker.handler
parameters:
redis: ${self:custom.credentials.redis}
events:
- schedule: cron(* * * * *)
twitter:
handler: lib/twitter.handler
parameters:
twitter: ${self:custom.credentials.twitter}
events:
- trigger: goal
# extend the framework using plugins listed here:
# https://github.com/serverless/plugins
plugins:
- serverless-openwhisk