-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathserverless.yml
62 lines (59 loc) · 1.28 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
service: mapproxy
provider:
name: aws
runtime: python3.6
stage: dev
region: us-west-1
memorySize: 256
timeout: 30
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:*"
Resource:
Fn::Join:
- ""
- - "arn:aws:s3:::mapproxy-lambda-demo*"
environment:
MAPPROXY_LIB_PATH: /var/task/lib:/var/task/mapproxy
plugins:
- serverless-wsgi
- serverless-apigw-binary
custom:
wsgi:
app: config.app
apigwBinary:
types:
- '*/*'
functions:
app:
handler: wsgi_handler.handler
layers:
- arn:aws:lambda:us-west-1:081097954549:layer:proj:9
events:
- http:
path: /{proxy+}
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