Skip to content

aws-lambda-python-alpha: uv support for lambda layer #35153

@kuehno

Description

@kuehno

Describe the feature

uv support for PythonFunction was added last year:
Issue Reference

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions