forked from mapbox/landsat-tiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
48 lines (39 loc) · 862 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
41
42
43
44
45
46
47
48
service: landsat-tiler
provider:
name: aws
runtime: python3.6
stage: production
region: us-west-2
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:GetObject"
Resource:
- "arn:aws:s3:::landsat-pds/*"
environment:
GDAL_CACHEMAX: 75%
GDAL_TIFF_OVR_BLOCKSIZE: 512
VSI_CACHE: TRUE
VSI_CACHE_SIZE: 536870912
GDAL_DISABLE_READDIR_ON_OPEN: true
CPL_VSIL_CURL_ALLOWED_EXTENSIONS: ".TIF,.ovr"
#Optional Bucket where you store your lambda package
# deploymentBucket: {YOUR-BUCKET}
custom:
apigwBinary:
types:
- '*/*'
plugins:
- serverless-apigw-binary
package:
artifact: package.zip
functions:
landsat-tiler:
handler: app.landsat.APP
memorySize: 1536
timeout: 20
events:
- http:
path: landsat/{proxy+}
method: get
cors: true