-
Notifications
You must be signed in to change notification settings - Fork 0
/
lambdas.config.yaml
46 lines (44 loc) · 1.49 KB
/
lambdas.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
46
demo_source_locations:
# at least one role must be defined
roles:
default:
# using one of the default policies, or custom policies defined above
# defined at https://github.com/theonestack/cfhighlander/blob/develop/cfndsl_ext/config/managed_policies.yaml
policies_inline:
- cloudwatch-logs
# you can have multiple functions defined, each as key under 'functions'
functions:
lambdassource:
# link to a role key above defined - mandatory
role: default
# example of code location relative to component directory
code: app.py
# lambda runtime
runtime: python3.9
# function timeout (defaults to 30)
timeout: 30
# lambda function entrypoint
handler: app.index
relativesource:
# link to a role key above defined - mandatory
role: default
# example of code location within 'lambdas folder' (legacy)
code: src
# lambda runtime
runtime: python3.9
# function timeout (defaults to 30)
timeout: 30
# lambda function entrypoint
handler: app.index
absolutesource:
# link to a role key above defined - mandatory
role: default
# example of absolute code location. File is copied during processing
# of highlander tempalte
code: /tmp/code/lambda_demo_app.py
# lambda runtime
runtime: python3.9
# function timeout (defaults to 30)
timeout: 30
# lambda function entrypoint
handler: lambda_demo_app.index