Skip to content

awsfundamentals-hq/cloudfront-lambda-edge-localstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⚡️ LocalStack-based Edge-Function Testing Repository

Topics

Resources

Stars

Watchers

Forks