aws-glue-alpha: Undefined behavior of Code.fromAsset API #26469
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I'm trying to upload a Glue Job from local Disk. The glue job currently lies in assets folder in the CDK package. I've the following code for creating a glue job out of that script
When i run brazil-build, this is the issue I get
Error: ENOTDIR: not a directory, lstat '/Volumes/.../src/CDKPackage/dist/lib/assets/ETLJob.scala'
So, i thought i might have to point to the directory, in which case, I get the following error
Code path /Volumes/workplace/DeveloperRiskWorkflow/src/DeveloperRiskWorkflowCDK/lib/assets is a directory. Only files are supported
Expected Behavior
Code.fromAsset
must work properly when the Asset Path points to a fileName, because the source code throws an error if the Asset path is a directory.Current Behavior
Already mentioned in Bug Section
Reproduction Steps
Mentioned in the Bug Scenario
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
ENOTDIR: not a directory
Framework Version
No response
Node.js Version
18.16.1
OS
MacOS 13.3.1
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: