Skip to content

osodevops/aws-terraform-module-lambda-at-edge

Repository files navigation

AWS Lambda@Edge Cloudfront deployment

README Header

This module supports any type of Lambda Function supported by Edge, including NodeJs and Python functions.


Usage

Lambda@Edge is an extension of AWS Lambda, a compute service that lets you execute functions that customize the content that CloudFront delivers.

Requirements

You must use a versioned S3 bucket for your deployment artifacts

Examples

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
    }

Related Projects

Check out these related projects.

Need some help

File a GitHub issue, send us an email or tweet us.

The legals

Copyright © 2017-2024 OSO | See LICENCE for full details.

OSO who we are

Who we are

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.Beacon

About

A terraform module for deploying Lambda@Edge function in terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •