-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
53 lines (47 loc) · 920 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
49
50
51
52
53
plugins:
- serverless-offline
service: s3-multipart-upload
frameworkVersion: '3'
provider:
name: aws
region: ap-south-1
runtime: nodejs14.x
endpointType: REGIONAL
apiGateway:
binaryMediaTypes:
- '*/*'
layers:
awsSDK:
path: ./layer
compatibleRuntimes:
- nodejs14.x
compatibleArchitectures:
- x86_64
functions:
upload:
handler: upload.main
memorySize: 1024
layers:
- !Ref AwsSDKLambdaLayer
environment:
AWS_BUCKET_NAME: ${param:bucket}
download:
handler: download.main
memorySize: 1024
events:
- http:
path: /download
method: get
request:
parameters:
querystrings:
key: true
layers:
- !Ref AwsSDKLambdaLayer
environment:
AWS_BUCKET_NAME: ${param:bucket}
params:
prod:
bucket: none
dev:
bucket: sample-dev-bucket