An open API service indexing awesome lists of open source software.

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

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"
}
```