Runtime for the lambda function. Only python runtimes are currently supported.
lambda_role_policies
yes
List of policies to apply to the lambda execution role.
lambda_tags
yes
List of tags to apply to the CloudFormation stack
lambda_create_bundle
conditional
If the lambda function has external dependencies, yes instructs role to package them in a virtual environment. Required if lambda_source_code and lambda_source_code_file are not defined.
lambda_handler_name
conditional
Name of the handler for the lambda function to use (i.e. lambda_function.handler, assuming python file is named lambda_function.py). If lambda_create_bundle is defined then a handler name is required.
lambda_source_code
conditional
Inline source code for lambda function. Required if lambda_source_code_file and lambda_create_bundle are not defined.
lambda_source_code_file
conditional
File containing the source code to use with the lambda function. Required if lambda_source_code and lambda_create_bundle are not defined.
lambda_code_s3_bucket
conditional
If deploying a packaged bundle to s3, use the this bucket. Required if creating bundle.
lambda_code_zipfile
conditional
Name of the zip file to build / upload. Required if creating bundle.
lambda_code_s3_key
no
lambda_code_zipfile
S3 key for bundled zipfile. Used for creating a bundle.
lambda_build_dir
no
"build"
Name of directory to place build related files.
lambda_template_dir
no
lambda_build_dir
Name of directory to place rendered templates.
lambda_virtualenv_dir
no
"venv"
Name of virtual environment into which to build function package.
lambda_security_token
no
If a security token is used for the deployment, define it here.
lamdda_code_s3_object_version
no
Version of s3 object for lambda function bundle to use.
lambda_iam_role_arn
yes
ARN of the role to use with the lambda function.
lambda_dependencies
no
If deploying a packaged bundle to s3, list of files that need to be included in the bundle
lambda_requirements_file
no
Name of pip requirements file
lambda_test_code
no
Yes specifies that a testing script should be run
lambda_testing_script
conditional
A script to test the lambda function prior to deployment (i.e. python-lambda-local). If lambda_test_code is set to yes this must be defined.
lambda_cloudwatch_rules
no
A list of CloudWatch Event Rules to execute the lambda.