This module supports any type of Lambda Function supported by Edge, including NodeJs and Python functions.
Lambda@Edge is an extension of AWS Lambda, a compute service that lets you execute functions that customize the content that CloudFront delivers.
You must use a versioned S3 bucket for your deployment artifacts
You just point it at a set of local file globs and it handles bundling your code and deploying it.
module "security_header_lambda" {
source = "it::ssh://[email protected]/aws-terraform-module-lambda-at-edge.git"
function_name = "security_headers"
environment = "p"
description = "Adds security headers to the response"
lambda_runtime = "nodejs12.x"
s3_artifact_bucket_name = "lambda-edge-us-east-1-bucket-app"
lambda_code_source_dir = "./scripts/security_headers" # script from AWS blog below
common_tags = var.common_tags
}
Check out these related projects.
- Adding HTTP Security Headers Using Lambda@Edge and Amazon CloudFront - This module can be used to append HTTP request headers as shown in the AWS example
File a GitHub issue, send us an email or tweet us.
Copyright © 2017-2024 OSO | See LICENCE for full details.
We at OSO help teams to adopt emerging technologies and solutions to boost their competitiveness, operational excellence and introduce meaningful innovations that drive real business growth. Our developer-first culture, combined with our cross-industry experience and battle-tested delivery methods allow us to implement the most impactful solutions for your business.
Looking for support applying emerging technologies in your business? We’d love to hear from you, get in touch by email
Start adopting new technologies by checking out our other projects, follow us on twitter, join our team of leaders and challengers, or contact us to find the right technology to support your business.