-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
80 lines (79 loc) · 2.19 KB
/
serverless.yml
File metadata and controls
80 lines (79 loc) · 2.19 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
service: ChatbotCOVID # Update your service name here
package:
individually: true
custom:
dev_APP_STAGE: 'DEV STAGE'
prod_APP_STAGE: 'PROD STAGE'
provider:
name: aws
runtime: nodejs12.x
region: ${opt:region, 'us-west-1'}
profile: chatbotcovid
stackTags:
PROJET: CHATBOT
environment:
APP_STAGE: ${self:custom.${opt:stage, self:provider.stage}_APP_STAGE}
functions:
LambdaFulfillment:
handler: chatbot-fulfillment/index.handler
package:
exclude:
- chatbot-fulfillment/.idea
- chatbot-fulfillment/test/**
- chatbot-fulfillment/.gitignore
- chatbot-fulfillment/authorizer.js
- chatbot-fulfillment/chatbot-fulfillment.zip
- chatbot-fulfillment/COVID.zip
- dialogflow-client/**
- .idea/
- aws/**
- jenkins/**
- .gitignore
events:
- http:
path: /
method: post
authorizer: authorizerFunc
authorizerFunc:
handler: chatbot-fulfillment/authorizer.handler
package:
exclude:
- chatbot-fulfillment/.idea
- chatbot-fulfillment/node_modules/**
- chatbot-fulfillment/test/**
- chatbot-fulfillment/.gitignore
- chatbot-fulfillment/app.js
- chatbot-fulfillment/chatbot-fulfillment.zip
- chatbot-fulfillment/index.js
- chatbot-fulfillment/package.json
- chatbot-fulfillment/package-lock.json
- chatbot-fulfillment/COVID.zip
- dialogflow-client/**
- .idea/
- aws/**
- jenkins/**
- .gitignore
LambdaClient:
handler: dialogflow-client/app.handler
environment:
GOOGLE_APPLICATION_CREDENTIALS: dialogflow-client/chatbotauth.json
package:
exclude:
- dialogflow-client/.idea
- dialogflow-client/.gitignore
- dialogflow-client/dialogflow-client.zip
- chatbot-fulfillment/**
- .idea/
- aws/**
- jenkins/**
- .gitignore
events:
- http:
path: /client
method: post
integration: lambda
request:
template:
application/json: '$input.json("$")'
passThrough: WHEN_NO_MATCH
cors: true