-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathserverless.yml
More file actions
51 lines (43 loc) · 988 Bytes
/
serverless.yml
File metadata and controls
51 lines (43 loc) · 988 Bytes
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
service: serverless-pdf-demo
frameworkVersion: "1.37.0"
provider:
name: aws
versionFunctions: false
runtime: nodejs8.10
region: ap-southeast-2
stage: dev
profile: hotpuma
apiGateway:
binaryMediaTypes: # Optional binary media types the API might return
- 'application/pdf'
package:
individually: true
plugins:
- serverless-webpack
- serverless-offline
- serverless-domain-manager
- serverless-apigw-binary
custom:
webpack:
webpackConfig: webpack.config.js
includeModules: true
packager: "yarn"
serverless-offline:
location: .webpack/service
customDomain:
domainName: labs.mianio.com
basePath: api
stage: ${self:provider.stage}
createRoute53Record: true
functions:
give-me-the-pdf:
handler: functions/pdf.generate
timeout: 20
events:
- http:
path: pdf
method: get
cors: true
parameters:
headers:
Accept: "application/pdf"