-
-
Notifications
You must be signed in to change notification settings - Fork 274
Expand file tree
/
Copy pathserverless.yml
More file actions
78 lines (69 loc) 路 1.64 KB
/
Copy pathserverless.yml
File metadata and controls
78 lines (69 loc) 路 1.64 KB
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
75
76
77
78
service: serverless-chrome-examples
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: us-east-1
environment:
PAGE_LOAD_TIMEOUT: 20000
LOGGING: true
plugins:
- serverless-plugin-chrome
- serverless-webpack
custom:
chrome:
flags:
- --window-size=1280,1696 # Letter size
- --hide-scrollbars
functions:
version-info:
description: Headless Chrome Serverless-framework version info example
memorySize: 1024
timeout: 30
handler: src/handlers/version.default
events:
- http:
path: version-info
method: get
request-logger:
description: Headless Chrome Serverless-framework request logging example
memorySize: 1024
timeout: 30
handler: src/handlers/requestLogger.default
events:
- http:
path: request-logger
method: get
screenshot:
description: Headless Chrome Serverless-framework screenshot example
memorySize: 1536
timeout: 30
handler: src/handlers/screenshot.default
events:
- http:
path: screenshot
method: get
pdf:
description: Headless Chrome Serverless-framework PDF example
memorySize: 1536
timeout: 30
handler: src/handlers/pdf.default
events:
- http:
path: pdf
method: get
resources:
Resources:
ApiGatewayRestApi:
Properties:
BinaryMediaTypes:
- "*/*"
# Enable X-Ray tracing on Lambda functions
# ScreenshotLambdaFunction:
# Properties:
# TracingConfig:
# Mode: Active
# PdfLambdaFunction:
# Properties:
# TracingConfig:
# Mode: Active