aws / aws/aws-cdk

(lambda-python): add local bundling to PythonFunction

Open
#18,290 13 comments 39 reactions 0 assignees View on GitHub
@aws-cdk/aws-lambda-python effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Description

Similar to the NodeJs Lambda, Python Lambda packaging should allow for local bundling

### Use Case

Docker bundling of lambdas is slow and resource intensive. Its valuable to be able to run bundling locally, without Docker.

### Proposed Solution

Add a local bundling option similar to NodeJs.

### Other information

_No response_

### Acknowledge

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

Contributor guide

Open the contributing guide

Research direction

Start at PythonFunction's existing Docker bundling path and compare it with the NodeJs Lambda local-bundling behavior. Trace how bundling options are exposed and how the packaged output is produced. Done means Python Lambda packaging can run locally without Docker while retaining the existing packaging behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python, typescript
Domain
backend, cloud, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.