Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @awslabs/aws-lambda-adapter-maintainers
* @aws/aws-lambda-tooling
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ edition = "2021"
description = "Run web applications on AWS Lambda"
keywords = ["AWS", "Lambda", "APIGateway", "ALB", "API"]
license = "Apache-2.0"
homepage = "https://github.com/awslabs/aws-lambda-web-adapter"
repository = "https://github.com/awslabs/aws-lambda-web-adapter"
homepage = "https://github.com/aws/aws-lambda-web-adapter"
repository = "https://github.com/aws/aws-lambda-web-adapter"
documentation = "https://docs.rs/lambda_web_adapter"
categories = ["web-programming::http-server"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ AWS_LWA_READINESS_CHECK_HEALTHY_STATUS=100-399

Several projects also provide similar capabilities as language specific packages/frameworks.

- [Serverless Java Container](https://github.com/awslabs/aws-serverless-java-container)
- [Serverless Java Container](https://github.com/aws/serverless-java-container)
- [Serverless Express](https://github.com/vendia/serverless-express)
- [Serverless Python - Zappa](https://github.com/zappa/Zappa)
- [Serverless Rails - Lamby](https://github.com/customink/lamby)
Expand Down
6 changes: 3 additions & 3 deletions docs/development.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## How to build it?

AWS Lambda Web Adapter is written in Rust and based on [AWS Lambda Rust Runtime](https://github.com/awslabs/aws-lambda-rust-runtime).
AWS Lambda Web Adapter is written in Rust and based on [AWS Lambda Rust Runtime](https://github.com/aws/aws-lambda-rust-runtime).
AWS Lambda executes functions in x86_64 Amazon Linux Environment. We need to compile the adapter to that environment.

### Clone the repo

First, clone this repo to your local computer.

```shell
$ git clone https://github.com/awslabs/aws-lambda-web-adapter.git
$ git clone https://github.com/aws/aws-lambda-web-adapter.git
$ cd aws-lambda-web-adapter
```

Expand Down Expand Up @@ -83,7 +83,7 @@ When these commands complete successfully, you will have the following container

### Testing

Please test with the following [commands](https://github.com/awslabs/aws-lambda-web-adapter/blob/ff2dc8bddd968e74d7dc2ec56a249c56e5a3c5a7/.github/workflows/pipeline.yaml#L46-L49) before submitting a pull request:
Please test with the following [commands](https://github.com/aws/aws-lambda-web-adapter/blob/ff2dc8bddd968e74d7dc2ec56a249c56e5a3c5a7/.github/workflows/pipeline.yaml#L46-L49) before submitting a pull request:
1. `cargo fmt -- --check`
1. `cargo clippy -- -Dwarnings`
1. `cargo nextest run`
2 changes: 1 addition & 1 deletion docs/guide/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-dir = "../../docs-site"
[output.html]
default-theme = "light"
preferred-dark-theme = "navy"
git-repository-url = "https://github.com/awslabs/aws-lambda-web-adapter"
git-repository-url = "https://github.com/aws/aws-lambda-web-adapter"
git-repository-icon = "fa-github"
site-url = "/aws-lambda-web-adapter/"
additional-css = ["theme/custom.css"]
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/src/configuration/response-streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Response streaming is useful for:

## Examples

- [FastAPI with Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming)
- [FastAPI with Response Streaming in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-zip)
- [Next.js Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nextjs-response-streaming)
- [SpringBoot Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/springboot-response-streaming-zip)
- [FastHTML with Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming)
- [FastAPI with Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming)
- [FastAPI with Response Streaming in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-zip)
- [Next.js Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nextjs-response-streaming)
- [SpringBoot Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/springboot-response-streaming-zip)
- [FastHTML with Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming)
4 changes: 2 additions & 2 deletions docs/guide/src/development/building.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Building from Source

AWS Lambda Web Adapter is written in Rust and based on the [AWS Lambda Rust Runtime](https://github.com/awslabs/aws-lambda-rust-runtime).
AWS Lambda Web Adapter is written in Rust and based on the [AWS Lambda Rust Runtime](https://github.com/aws/aws-lambda-rust-runtime).

## Prerequisites

Expand All @@ -10,7 +10,7 @@ AWS Lambda Web Adapter is written in Rust and based on the [AWS Lambda Rust Runt
## Clone the Repository

```bash
git clone https://github.com/awslabs/aws-lambda-web-adapter.git
git clone https://github.com/aws/aws-lambda-web-adapter.git
cd aws-lambda-web-adapter
```

Expand Down
92 changes: 46 additions & 46 deletions docs/guide/src/examples/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,87 +6,87 @@ The repository includes working examples for many popular web frameworks, packag

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [FastAPI](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi) | Docker | No |
| [FastAPI in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-zip) | Zip | No |
| [FastAPI Background Tasks](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-background-tasks) | Docker | No |
| [FastAPI Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming) | Docker | Yes |
| [FastAPI Response Streaming Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-zip) | Zip | Yes |
| [FastAPI Streaming on LMI](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-lmi) | Docker | Yes |
| [FastAPI Backend Streaming (IAM Auth)](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-backend-only-response-streaming) | Docker | Yes |
| [Flask](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/flask) | Docker | No |
| [Flask in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/flask-zip) | Zip | No |
| [FastHTML](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fasthtml) | Docker | No |
| [FastHTML in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fasthtml-zip) | Zip | No |
| [FastHTML Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming) | Docker | Yes |
| [FastHTML Response Streaming Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming-zip) | Zip | Yes |
| [Bedrock Agent FastAPI](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi) | Docker | No |
| [Bedrock Agent FastAPI Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi-zip) | Zip | No |
| [FastAPI](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi) | Docker | No |
| [FastAPI in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-zip) | Zip | No |
| [FastAPI Background Tasks](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-background-tasks) | Docker | No |
| [FastAPI Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming) | Docker | Yes |
| [FastAPI Response Streaming Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-zip) | Zip | Yes |
| [FastAPI Streaming on LMI](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-lmi) | Docker | Yes |
| [FastAPI Backend Streaming (IAM Auth)](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-backend-only-response-streaming) | Docker | Yes |
| [Flask](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/flask) | Docker | No |
| [Flask in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/flask-zip) | Zip | No |
| [FastHTML](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fasthtml) | Docker | No |
| [FastHTML in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fasthtml-zip) | Zip | No |
| [FastHTML Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming) | Docker | Yes |
| [FastHTML Response Streaming Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fasthtml-response-streaming-zip) | Zip | Yes |
| [Bedrock Agent FastAPI](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi) | Docker | No |
| [Bedrock Agent FastAPI Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi-zip) | Zip | No |

## JavaScript / TypeScript

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [Express.js](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/expressjs) | Docker | No |
| [Express.js in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/expressjs-zip) | Zip | No |
| [Next.js](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nextjs) | Docker | No |
| [Next.js in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nextjs-zip) | Zip | No |
| [Next.js Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nextjs-response-streaming) | Docker | Yes |
| [SQS Express.js](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/sqs-expressjs) | Docker | No |
| [Remix](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/remix) | Docker | No |
| [Remix in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/remix-zip) | Zip | No |
| [SvelteKit SSR Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/sveltekit-ssr-zip) | Zip | No |
| [Bun GraphQL](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bun-graphql-zip) | Zip | No |
| [Bun GraphQL Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bun-graphql-streaming-zip) | Zip | Yes |
| [Express.js](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/expressjs) | Docker | No |
| [Express.js in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/expressjs-zip) | Zip | No |
| [Next.js](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nextjs) | Docker | No |
| [Next.js in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nextjs-zip) | Zip | No |
| [Next.js Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nextjs-response-streaming) | Docker | Yes |
| [SQS Express.js](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/sqs-expressjs) | Docker | No |
| [Remix](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/remix) | Docker | No |
| [Remix in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/remix-zip) | Zip | No |
| [SvelteKit SSR Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/sveltekit-ssr-zip) | Zip | No |
| [Bun GraphQL](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bun-graphql-zip) | Zip | No |
| [Bun GraphQL Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bun-graphql-streaming-zip) | Zip | Yes |

## Java

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [SpringBoot](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/springboot) | Docker | No |
| [SpringBoot in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/springboot-zip) | Zip | No |
| [SpringBoot Response Streaming](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/springboot-response-streaming-zip) | Zip | Yes |
| [Javalin in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/javalin-zip) | Zip | No |
| [SpringBoot](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/springboot) | Docker | No |
| [SpringBoot in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/springboot-zip) | Zip | No |
| [SpringBoot Response Streaming](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/springboot-response-streaming-zip) | Zip | Yes |
| [Javalin in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/javalin-zip) | Zip | No |

## .NET

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [ASP.NET MVC](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/aspnet-mvc) | Docker | No |
| [ASP.NET MVC in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/aspnet-mvc-zip) | Zip | No |
| [ASP.NET Web API Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/aspnet-webapi-zip) | Zip | No |
| [ASP.NET MVC](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/aspnet-mvc) | Docker | No |
| [ASP.NET MVC in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/aspnet-mvc-zip) | Zip | No |
| [ASP.NET Web API Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/aspnet-webapi-zip) | Zip | No |

## Rust

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [Actix Web in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/rust-actix-web-zip) | Zip | No |
| [Axum in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/rust-axum-zip) | Zip | No |
| [Actix Web in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/rust-actix-web-zip) | Zip | No |
| [Axum in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/rust-axum-zip) | Zip | No |

## Go

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [Gin](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/gin) | Docker | No |
| [Gin in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/gin-zip) | Zip | No |
| [Go HTTP Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/go-http-zip) | Zip | No |
| [Gin](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/gin) | Docker | No |
| [Gin in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/gin-zip) | Zip | No |
| [Go HTTP Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/go-http-zip) | Zip | No |

## Other Languages

| Example | Packaging | Streaming |
|---------|-----------|-----------|
| [Nginx](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nginx) | Docker | No |
| [Nginx in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/nginx-zip) | Zip | No |
| [PHP](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/php) | Docker | No |
| [PHP in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/php-zip) | Zip | No |
| [Deno Oak in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/deno-zip) | Zip | No |
| [Ruby Sinatra](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/sinatra) | Docker | No |
| [Nginx](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nginx) | Docker | No |
| [Nginx in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/nginx-zip) | Zip | No |
| [PHP](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/php) | Docker | No |
| [PHP in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/php-zip) | Zip | No |
| [Deno Oak in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/deno-zip) | Zip | No |
| [Ruby Sinatra](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/sinatra) | Docker | No |

## Observability

| Example | Packaging |
|---------|-----------|
| [Datadog](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/datadog) | Docker |
| [Datadog in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/datadog-zip) | Zip |
| [Datadog](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/datadog) | Docker |
| [Datadog in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/datadog-zip) | Zip |

## Community Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/src/features/base-path-removal.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ AWS_LWA_REMOVE_BASE_PATH=/orders

A request to `/orders/123` will be forwarded to your app as `/123`.

See the [SpringBoot example](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/springboot) for a working implementation.
See the [SpringBoot example](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/springboot) for a working implementation.
2 changes: 1 addition & 1 deletion docs/guide/src/features/managed-instances.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ When using Lambda Managed Instances, keep these points in mind:

Lambda Managed Instances works with both buffered and response streaming modes.

Check out the [FastAPI with Response Streaming on Lambda Managed Instances](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-lmi) example.
Check out the [FastAPI with Response Streaming on Lambda Managed Instances](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/fastapi-response-streaming-lmi) example.
6 changes: 3 additions & 3 deletions docs/guide/src/features/non-http-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ app.post('/events', (req, res) => {

## Examples

- [SQS Express.js](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/sqs-expressjs)
- [Bedrock Agent FastAPI](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi)
- [Bedrock Agent FastAPI in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi-zip)
- [SQS Express.js](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/sqs-expressjs)
- [Bedrock Agent FastAPI](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi)
- [Bedrock Agent FastAPI in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/bedrock-agent-fastapi-zip)
4 changes: 2 additions & 2 deletions docs/guide/src/getting-started/zip-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ If you create your Zip package on Windows, your startup script (e.g. `run.sh`) m
1. **Use LF line endings** — Windows defaults to CRLF (`\r\n`), which causes `/bin/sh` to fail with `cannot execute: required file not found`.
2. **Set Unix file permissions to 755** — Zip files created on Windows don't preserve Unix execute permissions.

Most zip utilities on Windows don't handle Unix permissions. You can work around this by using WSL, a build script that sets permissions explicitly, or a tool like `7-Zip` with the `-mcu` flag. See [#611](https://github.com/awslabs/aws-lambda-web-adapter/issues/611) for more details.
Most zip utilities on Windows don't handle Unix permissions. You can work around this by using WSL, a build script that sets permissions explicitly, or a tool like `7-Zip` with the `-mcu` flag. See [#611](https://github.com/aws/aws-lambda-web-adapter/issues/611) for more details.

For a complete working example, see the [Express.js in Zip](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examples/expressjs-zip) example.
For a complete working example, see the [Express.js in Zip](https://github.com/aws/aws-lambda-web-adapter/tree/main/examples/expressjs-zip) example.
Loading
Loading