(aws-glue-alpha): Unable to create PythonShell job for Glue version 2.0 using cdk in Python #26599
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
duplicate
This issue is a duplicate.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
When I try to create a PythonShell for Glue Version 2.0 using
glue_alpha.Job
, I get the following error:Expected Behavior
A PythonShell job for Glue version 2.0 create normally.
PythonShell job requires maxCapacity parameter.
Current Behavior
The following error occurred:
Reproduction Steps
Possible Solution
When the job type is Python shell, the following if statement should not be executed.
https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-glue-alpha/lib/job.ts#L725
example:
Additional Information/Context
Using cdk in Typescript creates a job normally.
What is happening?
CDK CLI Version
2.89.0 (build 2ad6683)
Framework Version
2.89.0a0
Node.js Version
v18.16.1
OS
Ubuntu 20.04 on Windows10 ( WSL2 )
Language
Python
Language Version
Python (3.8.10)
Other information
No response
The text was updated successfully, but these errors were encountered: