-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
45 lines (45 loc) · 1.66 KB
/
config.yaml
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
# Disables the initial validation (run-dry) of the function configuration
disableValidation: true
# HTTP options
http:
# Optional: enable open telemetry trace parent
enableTraceparent: true
# Optional: Set a read timeout
readHeaderTimeout: 1m
# Optional: Set a read timeout
readTimeout: 2m
# Optional: Set a read timeout
writeTimeout: 3m
# AWS client configuration, to be propagated to the function
aws:
# Retry configuration (overrides AWS defaults)
retry:
# Max backoff timeout for a retry
maxBackoff: 11s
# Max attempts for a request
maxAttempts: 11
# Rate limiter options
rateLimiter:
# The cost to deduct from the token bucket per retry
retryCost: 11
# The cost to deduct from the token bucket per retry caused by timeout error.
retryTimeoutCost: 11
# The cost to payback to the token bucket for successful attempts.
noRetryIncrement: 11
# Amount of tokens
tokens: 111
# Functions to be mapped
functions:
# Multiple functions can be added here
- name: "test-function" # Lambda function ARN
# Optional: IAM role ARN to assume for invocation
invocationRole: "arn:aws:iam::123456789012:role/test-role"
# Optional: timeout for function invocation
timeout: 4m
routes:
- host: "" # Optional: host to be matched
path: "/test" # Either a path with vars (e.g. /test/{x})
pathPrefix: "" # or a path prefix
methods: ["POST"] # Optional: methods to be routed (all methods, if empty)
headers: {} # Optional: headers to be matched (e.g. x: y)
headersRegexp: {} # Optional: headers regexes to be matched (e.g. x: y.+)