(software.amazon.awscdk.services.lambda.Function): Recursive folder creation in cdk.out when lambda jar path is mentioned as "" #29410
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
When creating a lambda function using CDK Java, if the lambda jar file path mentioned as "" in the Code parameter, the synth/diff/deploy process initiates an infinite recursive creation of directories "cdk.out/asset-xxx/cdk.out/asset-xxx/,,,".
It throws an error at the end when the file path is too deep. There is no warning if the asset folder is not mentioned.
Also this leads to a blue screen when the project is opened in Eclipse.
Please fix this issue.
Expected Behavior
Throw an error that the asset path is not provided.
Current Behavior
Creation of infinite nested folders.
Reproduction Steps
Possible Solution
Stop the synthesis and throw an error message that the asset path cannot be a zero-lenth string.
Additional Information/Context
No response
CDK CLI Version
2.102.0
Framework Version
2.102.0
Node.js Version
v18.16.0
OS
Windows 10
Language
Java
Language Version
11
Other information
No response
The text was updated successfully, but these errors were encountered: