https://github.com/sunaoka/psycopg2-lambda-layers-builder
psycopg2 AWS Lambda layers builder
https://github.com/sunaoka/psycopg2-lambda-layers-builder
lambda-layers psycopg2 python
Last synced: about 2 months ago
JSON representation
psycopg2 AWS Lambda layers builder
- Host: GitHub
- URL: https://github.com/sunaoka/psycopg2-lambda-layers-builder
- Owner: sunaoka
- Created: 2021-05-19T07:49:27.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-09-05T07:28:20.000Z (9 months ago)
- Last Synced: 2025-03-18T19:54:23.177Z (2 months ago)
- Topics: lambda-layers, psycopg2, python
- Language: Makefile
- Homepage:
- Size: 7.81 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# psycopg2 AWS Lambda layers builder
AWS Lambda layer for psycopg2
## Build
### For Python 3.12
```bash
make PYTHON=3.12 ARCH=x86_64 # or ARCH=arm64
```## Creating a layer
```bash
aws lambda publish-layer-version \
--layer-name psycopg2-2.9.9-python3.12-x86_64 \
--zip-file fileb://psycopg2-2.9.9-python3.12-x86_64.zip \
--compatible-runtimes python3.12
```## Testing on AWS Lambda
```python
import psycopg2def handler(event, context):
return psycopg2.__version__
```