aws_lambda: Code.from_asset requires string as the first argument. #30457
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Make Code.from_asset first argument optional.
Use Case
The reason for this is when create a lambda dependency layer you have no reason to copy in files. To avoid copying in files I had to create an empty directory.
Proposed Solution
Either create a more specific Code.from_bundle or make the path argument optional.
Other Information
No response
Acknowledgements
CDK version used
2.142.1 (build ed4e152)
Environment details (OS name and version, etc.)
Ubuntu 22.04, Python3.11
The text was updated successfully, but these errors were encountered: