(cli): hot-swap Lambda Layers attached to functions
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Description
I'd like the CDK CLI to support hot-swapping Lambda layers and associated lambda functions.
### Use Case
I'm developing a Lambda Extension in a Lambda Layer while the Layer is attached to a Lambda function. Whenever I hit save in CDK watch mode, the CDK CLI uses CloudFormation to deploy the changes and takes 90-100 seconds every time.
### Proposed Solution
I'm not familiar with the hot-swap code, but I think you could create a new layer version with the uploaded asset and update the functions it's attached to.
### Other information
_No response_
### Acknowledge
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
Contributor guide
Research direction
Start by tracing the CDK CLI hot-swap code and the Lambda layer and function update paths described in the issue. Done means CDK watch mode can create a new layer version, update attached functions, and avoid the full CloudFormation deployment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cli, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100