Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Inputs

Name Description Type Default Required
create_trigger Set to true if you specify ‘event_source_arn’ parameter bool false no
description Description of what your Lambda Function does string "Deployed by terraform" no
environment A map that defines environment variables for the Lambda function map {} no
event_source_arn The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue. If specified set ‘create_trigger’ parameter to true string null no
handler The function entrypoint in your code string n/a yes
iam_role IAM role attached to the Lambda Function string n/a yes
identifier The name of the security group string n/a yes
layers List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function list(string) [] no
log_retention_in_days Specifies the number of days you want to retain log number 14 no
memory_size Amount of memory in MB your Lambda Function can use at runtime number 128 no
publish Whether to publish creation/change as new Lambda Function Version bool false no
reserved_concurrent_executions The amount of reserved concurrent executions for this lambda function number -1 no
runtime n/a string n/a yes
s3_bucket The S3 bucket location containing the function’s deployment package string n/a yes
s3_key The S3 key of an object containing the function’s deployment package string n/a yes
security_group_ids A list of security group IDs associated with the Lambda function list(string) [] no
source_code_hash Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified string n/a yes
subnet_ids A list of subnet IDs associated with the Lambda function list(string) [] no
tags Tags to be applied to the resource map {} no
timeout The amount of time your Lambda Function has to run in seconds number 3 no

Outputs

Name Description
output n/a