All open source labs

Open Source

cloudfront-lambda-edge-localstack

⚡️ LocalStack-based Edge-Function Testing Repository

HCL0 stars
cloudfrontlocalstack

CloudFront Lambda@Edge with LocalStack

This repository contains Terraform configuration for deploying Lambda@Edge functions with CloudFront, configured to work with LocalStack for local development.

Setup

  1. Install LocalStack via Homebrew:
brew install localstack/tap/localstack-cli
  1. Install terraform-local via Homebrew:
brew install w
  1. Start LocalStack with CloudFront Lambda@Edge support:
LOCALSTACK_CLOUDFRONT_LAMBDA_EDGE=1 localstack start
  1. Initialize Terraform:
cd terraform
tflocal init
  1. Deploy the resources:
tflocal apply -auto-approve

Looking for more hands-on labs?

Everything we build in the open — CLIs, libraries, and infrastructure snippets.

Browse all repositories →