This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverless.yml
66 lines (56 loc) · 1.54 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
service: sat-api
provider:
name: aws
runtime: nodejs6.10
stage: ${opt:stage, 'production'}
region: us-east-1
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:ListBucket"
- "s3:GetObject"
Resource:
- "arn:aws:s3:::cbers-meta-pds*"
- "arn:aws:s3:::landsat-pds*"
- "arn:aws:s3:::sentinel-s2*"
# deploymentBucket: remotepixel-${self:provider.region}
functions:
landsat:
handler: handler.landsat
memorySize: 512
timeout: 10
events:
- http:
integration: lambda
path: landsat
method: get
cors: true
request:
template:
application/json: '{ "path" : "$input.params(''path'')", "row" : "$input.params(''row'')", "full" : "$input.params(''full'')" }'
cbers:
handler: handler.cbers
memorySize: 512
timeout: 10
events:
- http:
integration: lambda
path: cbers
method: get
cors: true
request:
template:
application/json: '{ "path" : "$input.params(''path'')", "row" : "$input.params(''row'')" }'
sentinel:
handler: handler.sentinel
memorySize: 512
timeout: 10
events:
- http:
integration: lambda
path: sentinel
method: get
cors: true
request:
template:
application/json: '{ "utm" : "$input.params(''utm'')", "grid" : "$input.params(''grid'')", "lat" : "$input.params(''lat'')", "full" : "$input.params(''full'')" }'