JayThomason / terraform_aws_lambda_python

A module that allows you to cleanly package python source code and dependencies and deploy it as a AWS Lambda function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Purpose

A module that allows you to cleanly package your python source code and dependencies into a zipped lambda function.

Pre-requisites

Inputs

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
timeout The amount of time your Lambda Function has to run in seconds. Defaults to 5 minutes string "300" no

Outputs

Name Description
arn AWS arn of lambda function
function_name Name of lambda function

About

A module that allows you to cleanly package python source code and dependencies and deploy it as a AWS Lambda function

License:MIT License


Languages

Language:HCL 72.7%Language:Shell 22.8%Language:Python 4.5%