awslambda.CompatibleRuntimesο
- Query Syntax
<hook.data_key>
Dedicated lookup for use with AwsLambdaHook
based hooks.
To use this hook, there must be a
AwsLambdaHook
based hook defined
in the pre_deploy
section of the CFNgin configuration file.
This hook must also define a data_key
that is unique within
the CFNgin configuration file (it can be reused in other CFNgin configuration files).
The data_key
is then passed to the lookup as itβs input/query.
This allows the lookup to function during a runway plan
.
A list of strings or None
is returned by this lookup.
The returned value can be passed directly to AWS::Lambda::LayerVersion.CompatibleRuntimes.
New in version 2.5.0.
Argumentsο
This lookup only supports the transform
argument which can be used to turn the list of strings into a comma delimited list.
Exampleο
namespace: example
cfngin_bucket: ''
sys_path: ./
pre_deploy:
- path: runway.cfngin.hooks.awslambda.PythonLayer
data_key: example-layer-01
args:
...
- path: runway.cfngin.hooks.awslambda.PythonLayer
data_key: example-layer-02
args:
...
stacks:
- name: example-stack-01
class_path: blueprints.FooStack
variables:
CompatibleRuntimes: ${awslambda.CompatibleRuntimes example-layer-01}
...
- name: example-stack-02
template_path: ./templates/bar-stack.yml
variables:
CompatibleRuntimes: ${awslambda.CompatibleRuntimes example-layer-02::transform=str}
...