aws-lambda-python-alpha: uv support for lambda layer
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
uv support for PythonFunction was added last year:
[Issue Reference](https://github.com/aws/aws-cdk/issues/31238)
It would be great to also support uv when creating Lambda Layers as currently only requirements.txt, Pipfile or poetry.lock are supported.
Which is kind of inconvenient to have both requirements.txt and pyproject.toml in the project.
### Use Case
Manage python modules by uv, and deploy it to AWS Lambda Layer.
### Proposed Solution
The uv can generate requirements.txt by running uv pip compile.
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS CDK Library version (aws-cdk-lib)
2.206.0
### AWS CDK CLI version
2.1022.0
### Environment details (OS name and version, etc.)
Ubuntu 22.04 LTS
Contributor guide
Research direction
Review the existing PythonFunction uv support referenced in issue 31238, then trace how Lambda Layers currently accept requirements.txt, Pipfile, and poetry.lock. Confirm how a uv-managed project should produce layer dependencies with uv pip compile, and consider the work done when uv-managed Python modules can be deployed in a Lambda Layer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100