Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit be0ce4c

Browse files
authored
Update README.md
1 parent 99c213d commit be0ce4c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lambda/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88

99
> Let's run chdb in a lambda function for fun a profit!
1010
11+
## Local Image Test
12+
Build and run the Lambda locally:
13+
```
14+
docker build -t chdb:lambda
15+
docker run -p 9000:8080 chdb:lambda
16+
```
17+
18+
Validate the API using curl
19+
```
20+
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"query":"SELECT version()", "default_format":"JSONCompact"}'
21+
```
22+
23+
1124
## Upload Docker image on ECR and Lambda
1225
Lambda function continers must be hosted on the AWS Elastic Container Registry.
1326

0 commit comments

Comments
 (0)