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

Latest commit

 

History

History
32 lines (25 loc) · 743 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 743 Bytes

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