https://github.com/babbel/terraform-aws-lambda-with-inline-code
Terraform module creating a Lambda function with inline code
https://github.com/babbel/terraform-aws-lambda-with-inline-code
aws aws-lambda terraform terraform-module
Last synced: 3 months ago
JSON representation
Terraform module creating a Lambda function with inline code
- Host: GitHub
- URL: https://github.com/babbel/terraform-aws-lambda-with-inline-code
- Owner: babbel
- License: mit
- Created: 2021-01-21T09:05:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-11-27T20:18:56.000Z (7 months ago)
- Last Synced: 2025-11-28T02:48:39.374Z (7 months ago)
- Topics: aws, aws-lambda, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/babbel/lambda-with-inline-code/aws
- Size: 80.1 KB
- Stars: 7
- Watchers: 35
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Lambda Function with Inline Code
This module creates a Lambda function, as well as its IAM role and CloudWatch Logs group with inline code, i.e. the code of the Lambda function is uploaded by Terraform.
## Usage
```tf
module "lambda" {
source = "babbel/lambda-with-inline-code/aws"
version = "~> 1.2"
function_name = "example"
description = "This is an example"
runtime = "nodejs12.x"
handler = "index.handler"
memory_size = 128
timeout = 3
reserved_concurrent_executions = 1
environment_variables = {
NODE_ENV = "production"
}
source_dir = "lambda/src"
}
```