Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

assembleinc/terraform-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Terraform Module

Convenience module for AWS Lambda

Usage

module "get-user-lambda" {
  source                       = "assemble-inc/lambda/simple"
  source_path           = "./bin/get-user-bin"
  handler               = "get-user"
  environment_variables = {
    "AWS_REGION": "US_WEST_2"
  }
}

Inputs

  • source_path: Source Path
  • handler: Lambda Handler
  • runtime: Runtime (Default: go1.x)
  • timeout: Timeout (Default: 10)
  • memory_size: Memory size (Default: 1024)
  • environment_variables: Environment variables map

Outputs

  • arn: Lambda function ARN
  • function_name: Lambda function name
  • invoke_arn: Lambda invoke ARN
  • role_id: Lambda execution role ID