.
├── dev-us-east-1.env
├── local_lookups
│ ├── awslambda.py
│ └── __init__.py
├── my_function
│ ├── index.py
│ └── __init__.py
├── stacks.yaml
└── templates
└── function.yaml
- Create the local_lookups directory into your CFN module, with an empty
__init__.py
file and theawslambda.py
file detailed below. - Ensure your stack configuration module has:
sys_path: ./
set- The 2 custom lookups (lambda_upload_bucket & lambda_upload_key) defined
- Use the lookups in conjunction with the upload_lambda_functions hook as shown in the example stacks.yaml config.
In this example, the function MyFunction is uploaded from the directory my_function with its upload information stored in the "data_key" lambda
.
The upload information is then referenced for the LambdaBucket/LambdaKey parameters in the form of data_key::function_name