Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.22 KB

awslambda.Content.rst

File metadata and controls

52 lines (38 loc) · 1.22 KB

awslambda.Content

Query Syntax

<hook.data_key>

runway.cfngin.lookups.handlers.awslambda

A troposphere.awslambda.Content object is returned by this lookup. It is recommended to only use this lookup when passing the value into a ~runway.cfngin.blueprints.base.Blueprint or hook as further processing will be required. However, it can be passed directly in the Content keyword argument of troposphere.awslambda.LayerVersion.

2.5.0

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:
      layer_content: ${awslambda.Content example-layer-01}
      ...
  - name: example-stack-02
    class_path: blueprints.BarStack
    variables:
      layer_content: ${awslambda.Content example-layer-02}
      ...