-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
76 lines (71 loc) · 1.72 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
74
service: mapserver
provider:
name: aws
runtime: python3.6
region: us-west-1
memorySize: 512
timeout: 30
plugins:
- serverless-apigw-binary
custom:
apigwBinary:
types:
- '*/*'
environment:
GDAL_CACHEMAX: 128
GDAL_TIFF_OVR_BLOCKSIZE: 512
VSI_CACHE: TRUE
VSI_CACHE_SIZE: 128000
GDAL_DISABLE_READDIR_ON_OPEN: "EMPTY_DIR"
GDAL_DATA: /opt/share/gdal
PROJ_LIB: /opt/share/proj
GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: YES
GDAL_HTTP_MULTIPLEX: YES
GDAL_HTTP_VERSION: 2
CPL_VSIL_CURL_ALLOWED_EXTENSIONS: ".TIF,.tif,.jp2,.vrt"
CPL_TMPDIR: "/tmp"
functions:
mapserv:
layers:
- arn:aws:lambda:us-west-1:081097954549:layer:mapserv:5
handler: handler.mapserv
events:
- http:
path: "/{path+}"
method: get
cors:
origin: '*'
headers:
- Content-Type
- X-Amz-Date
- Authorization
- X-Api-Key
- X-Amz-Security-Token
- X-Amz-User-Agent
allowCredentials: false
- http:
path: "/"
method: get
cors:
origin: '*'
headers:
- Content-Type
- X-Amz-Date
- Authorization
- X-Api-Key
- X-Amz-Security-Token
- X-Amz-User-Agent
allowCredentials: false
- http:
path: "/"
method: get
cors:
origin: '*'
headers:
- Content-Type
- X-Amz-Date
- Authorization
- X-Api-Key
- X-Amz-Security-Token
- X-Amz-User-Agent
allowCredentials: false