Skip to content

Instantly share code, notes, and snippets.

@lakshmantgld
Created October 14, 2017 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshmantgld/c237fcc6fe4301e596889463047bb67d to your computer and use it in GitHub Desktop.
Save lakshmantgld/c237fcc6fe4301e596889463047bb67d to your computer and use it in GitHub Desktop.
service: stakinet-wakeup
package:
exclude:
provider:
name: aws
runtime: nodejs6.10
cfLogs: true
timeout: 20
stage: production
region: ap-northeast-1
iamRoleStatements:
- Effect: Allow
Resource: "*"
Action:
- "logs:CreateLogGroup"
- "logs:CreateLogStream"
- "logs:PutLogEvents"
- "lambda:InvokeFunction"
- "lambda:InvokeAsync"
environment:
NJ2JP_WAKEUP: ${file(./config.yml):nj2jpWakeup}
LONESMOKE_WAKEUP: ${file(./config.yml):lonesmokeWakeup}
plugins:
- serverless-webpack
custom:
webpackIncludeModules: true # enable auto including node_modules
functions:
wakeup:
handler: handler.wakeup
events:
- schedule: rate(20 minutes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment