Module for AWS Lambda Python Function Deployment for Hopin
Requirements
- `python3.6` or higher installed with `pip` installed locally
Usage
Preparation
- Create a directory for your lambda function
- Put your Lambda handler in
lambda/lambda.py - Put
requiements.txtin the directory for your lambda function - Create
variables.tfwith all the required variables set. Seevariables.tfin this module to determine which need to be set. - Create
lambda.tfwith the following:
module "lambdapython" {
source = "../../modules/lambda"
aws_region = var.aws_region
lambda_name = var.lambda_name
allow_ecs = var.allow_ecs
allow_ecr = var.allow_ecr
memory = var.memory
runtime = var.runtime
handler = var.handler
}