-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
73 lines (68 loc) · 1.67 KB
/
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
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
service: labs-feedback
frameworkVersion: ">=1.2.0 <2.0.0"
custom:
stage: "${opt:stage, self:provider.stage}"
p ythonRequirements:
dockerizePip: non-linux
provider:
name: aws
runtime: python3.6
timeout: 180
iamRoleStatements: # permissions for all of your functions can be set here
- Effect: "Allow"
Action:
- "ssm:GetParameter"
Resource: "arn:aws:ssm:*:715633473519:parameter/com.neo4j.labs.feedback.*"
plugins:
- serverless-python-requirements
functions:
feedback:
name: Labs-Feedback
handler: handler.feedback
timeout: 30
events:
- http:
method: post
path: Feedback
cors: true
feedback-api:
name: Labs-FeedbackAPI
handler: handler.feedback_api
timeout: 30
events:
- http:
method: get
path: Feedback/{project}
request:
parameters:
paths:
project: true
page-api:
name: Labs-PageAPI
handler: handler.page_api
timeout: 30
events:
- http:
method: get
path: Page/{id}
request:
parameters:
paths:
id: true
fire-api:
name: Labs-OnFireAPI
handler: handler.fire_api
timeout: 30
events:
- http:
method: get
path: Fire/{project}
request:
parameters:
paths:
project: true
package:
exclude:
- node_modules/**
- a/**
- .git/**