[aws-lambda] Make AssetCode.fromAsset
accept and zip multiple files and directory patterns
#9020
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Make
lambda.AssetCode.fromAsset
accept multiple files/directory patterns and transparently zip them.Use Case
I have Lambda made up of a Go executable and multiple HTML templates that need to be zipped. But this also applies to any Lambda that needs to be ship with config or any other files.
Proposed Solution
Using variadic arguments (or arrays), we could specify multiple files/directories. The CDK would zip all matching files/folders transparently so that the user does not need to do this manually.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: