A Terraform module that creates a minimalistic, opinionated AWS Lambda function.
It currently does not support the wide range of options and features that Lambdas have to offer, opting instead for a simple model that is useful to Catalyst Consulting Group.
It uses a dummy zip file to provision the Lambda. It is expected that external processes (ex. CI/CD) will deploy and publish new versions.
module "foobar_lambda" {
source = "Catalyst-Consulting-Group/lambda/aws"
version = "~> 1.0"
function_name = "foobar-lambda"
runtime = "provided.al2"
description = "Foobars the bucket"
environment = {
BUCKET_NAME = "foobar-bucket"
}
policy_arns = [
aws_iam_policy.foobar_bucket_ro.arn,
]
}
This module is maintained by Catalyst Consulting Group, Inc.
MIT License. See LICENSE for full details.