Skip to content

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

License

Notifications You must be signed in to change notification settings

PatientPing/terraform_aws_lambda_python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "python2.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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 73.2%
  • Shell 22.4%
  • Python 4.4%