-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.kyle.yml
67 lines (60 loc) · 1.39 KB
/
serverless.kyle.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
service: serverless-slope
provider:
name: aws
runtime: python3.8
stage: ${opt:stage, 'production'}
region: ${opt:region, 'us-east-1'}
deploymentBucket: ${opt:bucket}
httpApi:
cors:
allowedOrigins:
- http://localhost
- https://all-transit.com
- https://kylebarron.dev
- https://kylebarron.github.io
- https://landsat3d.com
- https://landsat8.earth
- https://nst.guide
- https://nstguide.com
- https://sentine2.earth
- https://trails3d.com
allowedHeaders:
- Authorization
- Content-Type
- X-Amz-Date
- X-Amz-Security-Token
- X-Amz-User-Agent
- X-Api-Key
allowedMethods:
- GET
- OPTIONS
allowCredentials: true
maxAge: 6000 # In seconds
iamRoleStatements:
- Effect: "Allow"
Action:
- "*"
Resource:
- arn:aws:s3:::${opt:bucket}*
- Effect: "Allow"
Action:
- "s3:*"
Resource:
- "arn:aws:s3:::elevation-tiles-prod*"
apiGateway:
binaryMediaTypes:
- '*/*'
minimumCompressionSize: 1
package:
artifact: package.zip
functions:
app:
handler: serverless_slope.app.app
memorySize: 192
timeout: 10
environment:
CACHE_CONTROL: ${opt:cache-control, 'public,max-age=3600'}
events:
- httpApi:
path: /{proxy+}
method: '*'