/
serverless.yml
40 lines (37 loc) · 951 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
service: alexa-service
provider:
name: aws
runtime: nodejs4.3
iamRoleStatements:
- Effect: Allow
Action:
- 'lambda:InvokeFunction'
Resource: '*'
custom:
chaosService:
name: chaos-service
lambdaPrefix: ${self:custom.chaosService.name}-${opt:stage}
package:
exclude:
- .git/**
- coverage/**
- node_modules/**
- test/**
- "*"
- src/.node_version
- src/package.json
- src/yarn.lock
include:
- src/**
functions:
alexa:
handler: src/alexa.handler
environment:
ALEXA_APPLICATION_ID: ${env:ALEXA_APPLICATION_ID}
COUNT_LAMBDA: ${self:custom.chaosService.lambdaPrefix}-instanceCount
START_LAMBDA: ${self:custom.chaosService.lambdaPrefix}-instanceStart
TERMINATE_LAMBDA: ${self:custom.chaosService.lambdaPrefix}-instanceTerminate
STOP_LAMBDA: ${self:custom.chaosService.lambdaPrefix}-instanceStop
#resources:
# Resources:
# Outputs: