awslambda
- 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
.
An AwsLambdaHookDeployResponse
object is returned by this lookup.
It is recommended to only use this lookup when passing the value into a Blueprint
or hook as further processing will be required.
New in version 2.5.0.
Example
namespace: example
cfngin_bucket: ''
sys_path: ./
pre_deploy:
- path: runway.cfngin.hooks.awslambda.PythonFunction
data_key: example-function-01
args:
...
- path: runway.cfngin.hooks.awslambda.PythonFunction
data_key: example-function-02
args:
...
stacks:
- name: example-stack-01
class_path: blueprints.FooStack
variables:
code_metadata: ${awslambda example-function-01}
...
- name: example-stack-02
class_path: blueprints.BarStack
variables:
code_metadata: ${awslambda example-function-02}
...