Ensure Lambda Bundles are of expected size
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, typescript
- Domain
- build-system, cloud, performance
Research direction
The issue names no files, tests, or build entry points. Start by locating the Lambda bundling configuration and build checks; done means required AWS SDK v3 clients are included, aws-cdk-lib is excluded, and oversized bundles cause the build to fail.
Written by the indexing model from the issue text.
Description
Description
The handlers for a number of Lambda Function are larger than they need to be. Smaller bundles mean a shorter cold start time. In the past some of these were also unintentionally bundling aws-cdk-lib which will cause the handler size to be very large (10mb to 50mb) and bundle potentially disruptive dependencies. This has already caused issues in the past but was never rolled out to any bundles other than the transliteration one from the original incident.
We need to make some effort to ensure bundle sizes are minimal and add checks to ensure they stay like this.
- Only include aws-sdk v3 client packages that are actually needed
- Always exclude
aws-cdk-libfrom bundling so that code fails fast if used - Add checks to the build system that ensure all bundles are within expected parameters, fail otherwise
Use Case
No response
Other information
No response
- Dominant language
- TypeScript
- Stars
- 240
- Forks
- 30
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cdklabs/construct-hub
-
documentation
Difficulty 5/5 Over a week Newbie friendliness 30/100
cdklabs/construct-hub#1884 ·
Maintainers usually reply within 1 day
-
feature-request p1
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cdklabs/construct-hub#1550 · 1 comment ·
Maintainers usually reply within 1 day
-
feature-request p2
Difficulty 5/5 Over a week Newbie friendliness 35/100
cdklabs/construct-hub#1500 ·
Maintainers usually reply within 1 day
-
feature-request p2
Difficulty 5/5 Over a week Newbie friendliness 30/100
cdklabs/construct-hub#1491 ·
Maintainers usually reply within 1 day
-
Fix CDK deprecationsOpeneffort/medium
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cdklabs/construct-hub#1470 ·
Maintainers usually reply within 1 day
All issues in cdklabs/construct-hub
Similar issues
-
enhancement status:needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
dongdongbh/Mindwtr#1625 ·
Maintainers usually reply within 1 day
-
area/ui-schema good first issue type/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
duckdb/duckdb-wasm#2335 ·
Maintainers usually reply within 1 day