lambda-edge-function

dod-iac/lambda-edge-function/aws

Terraform Module HCL AWS

AWS Lambda Function for use with Lambda@Edge

Install
module "lambda-edge-function" {
source = "dod-iac/lambda-edge-function/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-dod-iac-lambda-edge-function-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an AWS Lambda Function for use with Lambda@Edge, which runs AWS Lambda Functions at CloudFront edge locations. There are a variety of restrictions for functions used with Lambda@Edge. ``hcl module "lambda_function" { source = "dod-iac/lambda-edge-function/aws" execution_role_name = format( "app-%s-redirect-lambda-execution-role-%s", var.application, var.environment ) function_name = format( "app-%s-redirect-%s-%s", var.application, var.environment, data.aws_region.current.name ) function_description = "Function used to redirect requests." filename = format("../../lambda/%s-redirect.zip", var.application) handler = "index.handler" runtime = "nodejs12.x" environment_variables = var.environment_variables tags = { Application = var.application Environment = var.environment Automa

Inputs (11)
NameTypeDescriptionDefault
execution_role_namestring required
filenamestringThe path to the function's deployment package within the local filesystem. If d required
function_namestringA unique name for your Lambda Function. required
handlerstringThe function entrypoint in your code. required
runtimestringThe identifier of the function's runtime. required
execution_role_policy_documentstringThe contents of the IAM policy attached to the IAM Execution role used by the La""
function_descriptionstringDescription of what your Lambda Function does.""
memory_sizenumberAmount of memory in MB your Lambda Function can use at runtime. Maximum value f128
tagsmap(string)A mapping of tags to assign to the Lambda Function.{ "Automation": "Terraform" }
timeoutnumberThe amount of time your Lambda Function has to run in seconds. Maximum value is3
execution_role_policy_namestringThe name of the IAM policy attached to the IAM Execution role used by the Lambda""
Outputs (5)
lambda_execution_role_arn — The Amazon Resource Name (ARN) identifying the IAM Role used to execute this Lambda.
lambda_function_arn — The Amazon Resource Name (ARN) identifying your Lambda Function.
lambda_function_name — A unique name for your Lambda Function.
lambda_function_qualified_arn — The Amazon Resource Name (ARN) identifying your Lambda Function Version.
lambda_invoke_arn — The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_int
Resources (4)
aws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_lambda_function
Topics & Tags
terraformawslambda
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars5
Forks2
Total downloads52.5k
Inputs11
Outputs5
Resources4
LicenseMIT
Namespacedod-iac
Updated