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
+22-2
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ AWS Lambda Runtime API for local testing of custom runtimes
3
3
4
4
This project runs an HTTP API that is intended to emulate the [AWS Lambda Runtime Interface](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html) to enable local testing of custom runtimes.
5
5
6
-
## Usage
6
+
## Running
7
7
8
8
This utility is published as both a jar or Docker image.
9
9
@@ -34,4 +34,24 @@ Run on alternate port
34
34
35
35
```bash
36
36
docker run -p 8080:8080 -e RUNTIME_PORT=8080 c1phr/aws-lambda-runtime-local
37
-
```
37
+
```
38
+
39
+
## Usage
40
+
41
+
This utility will expose endpoints that mirror the AWS Lambda Runtime interface:
42
+
43
+
```text
44
+
GET http://localhost:9000/2018-06-01/runtime/invocation/next
45
+
POST http://localhost:9000/2018-06-01/runtime/invocation/$REQUEST_ID/response
46
+
POST http://localhost:9000/2018-06-01/runtime/invocation/$REQUEST_ID/error
47
+
POST http://localhost:9000/2018-06-01/runtime/init/error
48
+
```
49
+
50
+
In addition to an endpoint that allows you to stage request events for your runtime to invoke:
51
+
52
+
```text
53
+
POST http://localhost:9000/events/next
54
+
```
55
+
56
+
The runtime will serve events that have been POSTed to the `/events/next` endpoint sequentially each time the `/invocation/next` endpoint is called (or will return an empty response when there is no pending event).
57
+
Invocation requests will include headers to emulate the Lambda Runtime interface as well, and expects that Request IDs are included with calls to `/response` and `/error` just as the Lambda service would.
0 commit comments