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

Commit 4a3cd12

Browse files
authored
Update README.md
1 parent 0721e51 commit 4a3cd12

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

lambda/README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# chDB on AWS Lambda
1+
<a href="https://chdb.fly.dev" target="_blank">
2+
<img src="https://user-images.githubusercontent.com/1423657/236688026-812c5d02-ddcc-4726-baf8-c7fe804c0046.png" width=130 />
3+
</a>
24

3-
> Running chdb in a lambda function for fun a profit!
5+
[![.github/workflows/release.yml](https://github.com/chdb-io/chdb-server/actions/workflows/release.yml/badge.svg)](https://github.com/chdb-io/chdb-server/actions/workflows/release.yml)
46

5-
This guide is based on [this article](https://medium.com/@skalyani103/python-on-aws-lambda-using-docker-images-5740664c54ca)
7+
# chDB AWS Lambda Function
8+
9+
> Let's run chdb in a lambda function for fun a profit!
610
711
## Upload Docker image on ECR and Lambda
812
Lambda function continers must be hosted on the AWS Elastic Container Registry.
@@ -22,7 +26,23 @@ $ aws configure
2226
$ ./deploy.sh
2327
```
2428

25-
4. Create Lambda function and attach your ECR Image
29+
4. Create Lambda function and attach your ECR Image. Make sure the name and image ID match:
30+
31+
![image](https://github.com/chdb-io/chdb-server/assets/1423657/2223f6b6-6b76-423d-bf81-34394c361293)
32+
33+
34+
6. Test your Lambda function with a JSON payload:
35+
36+
![image](https://github.com/chdb-io/chdb-server/assets/1423657/daa26b0b-68e2-4cec-b665-5505efe99b99)
37+
38+
```json
39+
{
40+
"query": "SELECT version();",
41+
"default_format": "JSONCompact"
42+
}
43+
```
44+
45+
-----
2646

27-
5. Test your Lambda function:
47+
This guide is based on [this article](https://medium.com/@skalyani103/python-on-aws-lambda-using-docker-images-5740664c54ca) which contains further details and steps.
2848

0 commit comments

Comments
 (0)