A module that allows you to cleanly package your python source code and dependencies into a zipped lambda function.
Name | Description | Type | Default | Required |
---|---|---|---|---|
description | Description of what your Lambda Function does. | string | n/a | yes |
function_name | A unique name for your Lambda Function | string | n/a | yes |
handler_name | The function entrypoint in your code. | string | n/a | yes |
role_arn | ARN of IAM role to be attached to Lambda Function. | string | n/a | yes |
source_code_path | Path to the source file or directory containing your Lambda source code & requirements.txt if applicable | string | n/a | yes |
environment | Environment configuration for the Lambda function | map | {} |
no |
memory_size | Amount of memory in MB your Lambda Function can use at runtime. | string | "128" |
no |
output_path | Path to the function's deployment package within local filesystem. eg: /path/to/lambda.zip | string | "lambda.zip" |
no |
runtime | runtime | string | "python3.7" |
no |
tags | A mapping of tags to assign to the Lambda function. | map | {} |
no |
timeout | The amount of time your Lambda Function has to run in seconds. Defaults to 5 minutes | string | "300" |
no |
vpc_config | Provide this to allow your function to access your VPC (if both 'subnet_ids' and 'security_group_ids' are empty then vpc_config is considered to be empty or unset, see https://docs.aws.amazon.com/lambda/latest/dg/vpc.html for details). | map | {} |
no |
retention_in_days | Specifies the number of days you want to retain log events in the specified log group. Defaults to no-delay. | number | 300 |
no |
Name | Description |
---|---|
arn | AWS arn of lambda function |
function_name | Name of lambda function |
role_arn | ARN of IAM role attached to Lambda Function. |
role_name | Name of IAM role attached to Lambda Function. |