Skip to content

babbel/terraform-aws-lambda-with-inline-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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