Created
October 14, 2017 03:16
-
-
Save lakshmantgld/c237fcc6fe4301e596889463047bb67d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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