Terraform module which creates and deploy AWS Lambda with required python modules.
- Terraform 0.12. Pin version to
~> v0.1
module "example" {
source = "dntsk/lambda-packager/aws"
source_dir = "lambda"
filename = "example.py"
handler = "example.lambda_handler"
name = "example"
environment_variables = {
VAR = "example_variable"
}
}
module "example" {
source = "dntsk/lambda-packager/aws"
source_dir = "lambda"
filename = "example.py"
handler = "example.lambda_handler"
custom_iam_role = true
iam_role_arn = aws_iam_role.YOUR_ROLE.arn
name = "example"
environment_variables = {
VAR = "example_variable"
}
}
MIT Licensed. See LICENSE for full details.