lambda-edge-function
dod-iac/lambda-edge-function/aws
AWS Lambda Function for use with Lambda@Edge
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| execution_role_name | string | required | |
| filename | string | The path to the function's deployment package within the local filesystem. If d | required |
| function_name | string | A unique name for your Lambda Function. | required |
| handler | string | The function entrypoint in your code. | required |
| runtime | string | The identifier of the function's runtime. | required |
| execution_role_policy_document | string | The contents of the IAM policy attached to the IAM Execution role used by the La | "" |
| function_description | string | Description of what your Lambda Function does. | "" |
| memory_size | number | Amount of memory in MB your Lambda Function can use at runtime. Maximum value f | 128 |
| tags | map(string) | A mapping of tags to assign to the Lambda Function. | {
"Automation": "Terraform"
} |
| timeout | number | The amount of time your Lambda Function has to run in seconds. Maximum value is | 3 |
| execution_role_policy_name | string | The 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_intResources (4)
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,