sunaoka / psycopg2-lambda-layers-builder

psycopg2 AWS Lambda layers builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psycopg2 AWS Lambda layers builder

AWS Lambda layer for psycopg2

Build

For Python 3.12

make PYTHON=3.12 ARCH=x86_64

Creating a layer

https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-create

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

import psycopg2

def handler(event, context):
    return psycopg2.__version__

About

psycopg2 AWS Lambda layers builder


Languages

Language:Shell 78.1%Language:Makefile 21.9%