You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-39Lines changed: 2 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,13 @@
2
2
3
3
This repository provides a lightweight Docker image to emulate **AWS Lambda Function URLs** locally. It uses **AWS Lambda Runtime Interface Emulator (RIE)** to replicate the behavior of Function URLs for local development and testing.
4
4
5
-
---
6
-
7
5
## Features
8
6
9
7
- Emulates **AWS Lambda Function URLs** locally.
10
8
- Automatically forwards HTTP requests to a locally running Lambda function using the AWS Lambda Runtime Interface Emulator.
11
9
- Supports `APIGatewayProxyEventV2` for HTTP API requests.
12
10
- Handles `isBase64Encoded` for binary data.
13
11
14
-
---
15
-
16
12
## Getting Started
17
13
18
14
### Pull the Docker Image
@@ -31,47 +27,16 @@ docker run --rm -p 8080:8080 \
31
27
32
28
The emulator will be available at `http://localhost:8080`.
33
29
34
-
---
35
-
36
-
## Usage
37
-
38
-
1.**Start the Emulator**
39
-
40
-
Run the Docker container as described above.
41
-
42
-
2.**Start a Local Lambda Function with RIE**
43
-
44
-
Use **AWS Lambda Runtime Interface Emulator (RIE)** to run your Lambda function locally. Example:
45
-
46
-
```bash
47
-
docker run --rm -v $(pwd):/var/task \
48
-
-p 9000:8080 \
49
-
amazon/aws-lambda-nodejs:20 \
50
-
node index.js
51
-
```
30
+
### Use Docker Compose to work with RIE
52
31
53
-
Replace `node index.js` with your Lambda handler code.
54
-
55
-
3.**Send a Request to the Emulator**
56
-
57
-
Use `curl`, Postman, or any HTTP client to test your Lambda function through the emulator.
58
-
59
-
Example:
60
-
61
-
```bash
62
-
curl http://localhost:8080/?key=example-file.txt
63
-
```
64
-
65
-
---
32
+
For a practical example of integrating this emulator with RIE using Docker Compose, refer to the [example](./example/) directory.
0 commit comments