How we 10x Our Lambda@Edge Development Speed πŸš€


AWS FOR THE REAL WORLD
⏱️
Reading time: 10 minutes
🎯
Main Learning: Building and testing Lambda@Edge functions with CloudFront is complicated, as deployments can take up to 10 minutes. With LocalStack, you can build, test, and debug your Lambda@Edge functions locally!
πŸ“
🎬

Hey Reader πŸ‘‹πŸ½

Happy new year! We hope you had a great time with your families and loved ones 😊

We took some time off. Sandro is bridging the cold winter in Thailand (say hi if you're here!) and Tobi started working with a new client project this year. Finally, some HUGE AWS scale again - hopefully we can talk more about that in the future πŸ‘€

We don't have any AWS news for you this time. Nothing exciting came out - if you've found something, share it with us!

In this issue, we talk about CloudFront and Lambda@Edge deployments.

Rather watch a video? We've recorded one for you!

Lambda@Edge functions are great for things like:

  • Request forwarding
  • URL rewriting
  • A/B testing

In theory they're powerful. But building and debugging them is a pain. This is what this deep dive is about πŸ‘†πŸ½

video preview​

Note: This issue is not sponsored by LocalStack. But we love the tool + the founders. Here's how we've used it for this use case.

Let's get into it!

Cover

πŸ“š This Week's Deep Dive

The Problem: 10-Minute Deployments for Every Change

Lambda@Edge functions are powerful. But debugging them is painful. Even in 2025.

Every change triggers a CloudFront deployment. That's up to 10 minutes of waiting. One typo? Another 10 minutes. Wrong header name? Another 10 minutes.

The Solution: LocalStack for Lambda@Edge

LocalStack lets you run CloudFront and Lambda@Edge locally. Change your function, redeploy in seconds. No waiting. No risk of breaking production.

The video walks through the full setup: LocalStack CLI, creating distributions via awslocal, attaching Lambda@Edge functions, and iterating on custom response headers.

🎬 Watch the Full Tutorial β†’

Prefer reading? Read the blog post instead

​

Have you used Lambda@Edge or CloudFront Functions before? If you need more information about CloudFront, here's our infographic!

Our topics for the next weeks:

  • Generating diagrams with Kiro & AI
  • How to save Lambda costs

All of them will come with videos as well!

Have a great start of the year and see you soon!

Sandro & Tobi

PS: Here's a snapshot from Thailand 😊

​

AWS for the Real World

We teach AWS for the real world - not for certifications. Join more than 10,500 developers learning how to build real-world applications on AWS.

Read more from AWS for the Real World

AWS FOR THE REAL WORLD ⏱️ Reading time: 7 minutes 🎯 Main Learning: Learn how to securely connect to your RDS database in a private subnet using an EC2 jumphost and AWS Session Manager. No SSH keys needed. πŸ“ Blog Post πŸ’» GitHub Repository 🎬 Watch on YouTube Hey Reader πŸ‘‹πŸ½ Hope you had a great Christmas with your loved ones πŸŽ„ Tobi and I spent a few days in Berlin consulting with a startup, then caught the last sunny days in Munich before winter really hits. This week: how to actually connect to...

AWS FOR THE REAL WORLD ⏱️ Reading time: 6 minutes 🎯 Main Learning: Build a central alerting approach with CloudWatch, Lambda, EventBridge, and CDK across your AWS Organization. πŸ“ Blog Post πŸ’» GitHub Repository 🎬 Watch on YouTube Hey Reader πŸ‘‹πŸ½ Welcome to the first issue after re:Invent. For everybody who was out there, I hope you came home safe & healthy. I heard re:Invent cold is a thing like Oktoberfest cold in Munich 🍻 πŸ“° This Week in AWS ⏸️AWS Lambda Durable Functions Lambda launched Durable...

AWS FOR THE REAL WORLD ⏱️ Reading time: 6 minutes 🎯 Main Learning: Learn how to securely connect GitHub Actions to your AWS account using OIDC authentication without storing access keys. Step-by-step guide with IAM role setup, trust policy configuration, and workflow examples for safe CI/CD deployments. πŸ“ Blog Post Hey Reader πŸ‘‹πŸ½, welcome to another week of AWS for the Real World We are right in the middle of pre:invent. Re:Invent starts next week! We are both not present, but we will give you...