-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-lambda-nodejs): CUSTOM hash pass-through #16157
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-lambda-nodejseffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Currently the @aws-cdk/aws-lambda-nodejs Functions default to OUTPUT hash type - however it'd be great to make this a configuration option to allow custom calculation of the hash to trigger a build on-demand.
Use Case
Improved deploy times when used with a Node-based async checksum algorithm for directories, or for manually triggering deploys in CI/CD based on external data.
Proposed Solution
As part of the NodejsFunction export props, re-add a bundling option for customizing the hash method & value using the existing @aws-cdk/aws-lambda#Function props. It would purely be a pass-through to the bundling.ts, optionally falling back to the current defaults - there wouldn't be any breaking changes.
This is a 🚀 Feature Request
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambda-nodejseffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2