Building Python Lambda Functions in CDK with uv

(Jump directly to the code on GitHub: https://github.com/maxfriedrich/uv-lambda-cdk-example ) This post shows how to deploy AWS Lambda Python functions from a uv workspace with CDK . We build a custom construct based on uv sync that can be used as a replacement for the aws-lambda-python-alpha PythonFunction construct . Update 2025-02-15: with a small hack it’s also possible to build Docker Lambda…