---
title: "How to version APIs with API Gateway and Lambda"
url: https://daily.dev/posts/how-to-version-apis-with-api-gateway-and-lambda-reby3f8ub
source_url: https://theburningmonk.com/2025/05/how-to-version-apis-with-api-gateway-and-lambda/
type: article
source: "theburningmonk.com"
published: 2025-05-21T18:26:51.999Z
updated: 2025-05-21T18:27:07.754Z
tags: ["aws", "serverless", "aws-lambda", "api-gateway"]
reading_time: 5
upvotes: 66
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to version APIs with API Gateway and Lambda

**[theburningmonk.com](https://daily.dev/sources/theburningmonk)** · 5 min read · 66 upvotes · 2 comments

## Summary

Explore strategies for API versioning using AWS API Gateway and Lambda without duplicating infrastructure or introducing complex logic. Learn about different methods such as URL-based versioning, custom HTTP headers, and using Lambdaliths, along with their trade-offs. The discussion includes approaches to prevent breaking changes and considerations for choosing the right strategy based on version differences, client needs, and infrastructure requirements.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://theburningmonk.com/2025/05/how-to-version-apis-with-api-gateway-and-lambda/>

## Community discussion

Top comments from developers on daily.dev.

**@maisonhai3** · 0 upvotes

> The idea of "Prefer duplicating Lambda functions over versions" is new. My common sense is to go with Versioning, because it is just "right there".
>
> But, the author argue practically:
> 1. IAM roles don’t version.
> 2. Tracking and testing separate versions is much easier.
>
> Reasonable.

**@savostin** · 0 upvotes

> Ahhhh, right, don’t change your code, no versioning needed ;)

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#serverless](https://daily.dev/tags/serverless), [#aws-lambda](https://daily.dev/tags/aws-lambda), [#api-gateway](https://daily.dev/tags/api-gateway)

[View this post on daily.dev](https://daily.dev/posts/how-to-version-apis-with-api-gateway-and-lambda-reby3f8ub)
