-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
70 lines (67 loc) · 1.46 KB
/
serverless.yml
File metadata and controls
70 lines (67 loc) · 1.46 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
service: ssifwc-api
provider:
name: aws
region: us-east-1
runtime: python3.6
timeout: 30
functions:
api:
handler: ssifwc.handler.endpoint
name: api
events:
- http:
path: watersheds
method: get
cors: true
- http:
path: wells
method: get
cors: true
- http:
path: parcels
method: get
cors: true
- http:
path: springs
method: get
cors: true
- http:
path: epicollect
method: get
cors: true
- http:
path: epicollect
method: post
cors: true
- http:
path: image
method: post
cors: true
- http:
path: aquifers
method: get
cors: true
- http:
path: culverts
method: get
cors: true
- http:
path: faults
method: get
cors: true
- http:
path: greenwood
method: get
cors: true
- http:
path: metrics
method: post
cors: true
environment:
DATABASE_CONNECTION_URI: ${file(./serverless.env.yml):${self:provider.stage}.DATABASE_CONNECTION_URI}
EPICOLLECT_BASE_URL: ${file(./serverless.env.yml):${self:provider.stage}.EPICOLLECT_BASE_URL}
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux