https://github.com/danieldev0724/basic-lambda-package-for-clickhouse
This is basic lambda package for AWS Clickhouse
https://github.com/danieldev0724/basic-lambda-package-for-clickhouse
aws clickhouse lambda-functions python
Last synced: about 2 months ago
JSON representation
This is basic lambda package for AWS Clickhouse
- Host: GitHub
- URL: https://github.com/danieldev0724/basic-lambda-package-for-clickhouse
- Owner: danieldev0724
- Created: 2023-07-09T15:51:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T16:05:18.000Z (almost 3 years ago)
- Last Synced: 2025-06-17T01:42:53.150Z (12 months ago)
- Topics: aws, clickhouse, lambda-functions, python
- Language: Python
- Homepage:
- Size: 1.11 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Documentation for creating AWS Lambda package for clickhouse
Lambda functions run in an isolated environment and require all external dependencies to be packaged and deployed together with the function code.
## How to create Lmabda package
1.Create a deployment package:
- Create a new directory for your deployment package.
- Install the required dependencies inside this directory. In your case, the dependency is the clickhouse_driver module. You can install it using pip:
```Shell
pip install clickhouse-driver -t .
```
- This command will install the clickhouse_driver module and its dependencies into the current directory.
2.Package the Lambda function:
- Place your Lambda function code file (lambda_function.py) in the same directory.
- Create a ZIP archive of the entire directory (including the installed dependencies).
3.Deploy the Lambda function:
- Go to the AWS Lambda console.
- Create a new Lambda function or update the existing one.
- In the "Code" section, upload the ZIP archive you created in the previous step.
- Make sure to specify lambda_handler as the handler name (assuming it is the correct name for your function).
- Configure other settings as required.
- Save and test the Lambda function.