Skip to content

TechHoldingLLC/terraform-aws-lambda-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
terraform >= 1.0
aws >= 5.0

Providers

Name Version
archive n/a
aws >= 5.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.lambda resource
aws_iam_role.lambda resource
aws_iam_role_policy_attachment.lambda_basic_execution resource
aws_iam_role_policy_attachment.lambda_vpc_access resource
aws_lambda_function.lambda resource
aws_lambda_function_url.function_url resource
aws_lambda_permission.triggers resource
archive_file.lambda data source
aws_iam_policy_document.lambda_service_trust_policy data source
aws_s3_object.lambda data source
aws_ssm_parameter.env_vars_from_parameter_store data source

Inputs

Name Description Type Default Required
allowed_triggers Map of allowed triggers to create Lambda permissions map(any) {} no
description Lambda function description any null no
env_vars_from_parameter_store Lambda environment variables from SSM parameter store map(any) {} no
environment_variables Environment Variables for Lambda Functions map(any) {} no
function_name Lambda function name any n/a yes
function_url Create lambda function url bool false no
function_url_cors Function url cors any {} no
handler Name of Handler any null no
image_uri uri of image any null no
lambda_memory Required Memory for Lambda function number 128 no
lambda_runtime Lambda language any null no
lambda_timeout Required Timeout for Lambda function number 5 no
layers_arn Lambda layer arn list(string) null no
logs_retention Specifies the number of days you want to retain log events in the specified log group number null no
output_path The name for the zip file created with the file described in source_file string "" no
package_type type of package any null no
prefix Prefix for resources string "" no
publish Publish lambda function version bool false no
s3_bucket Lambda artifacts bucket string "" no
s3_key Path of the zip file which is present in s3 bucket string "" no
security_group_ids Security geoup id list(any) null no
source_file Lambda source file string "" no
subnets Subnets list(any) null no
tags Tags map {} no

Outputs

Name Description
arn Lambda ARN
function_name Name of the Lambda function.
function_url Function url
invoke_arn Lambda Invoke ARN
role_arn Role arn
role_name Role name

License

Apache 2 Licensed. See LICENSE for full details.