@aws-cdk/aws-glue-alpha: pythonShell should not require glueVersion #32148
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When creating a pythongshell job type the GlueVersion should not be required (as it is not used for this mode).
All examples of creating python shell jobs do not specify the GlueVersion at all, just the python version
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I should be able to omit the glueVersion parameter to JobExecution.pythonShell.
Current Behavior
It throws an error stating that the glue_version parameter is required.
Reproduction Steps
glue.Job(
self, 'ShellJob',
job_name='myShellJob',
role=glue_role,
default_arguments={
"--additional-python-modules": "awswrangler,fastparquet,google-api-python-client,google-auth-oauthlib,google-auth-httplib2",
},
timeout=Duration.minutes(30),
max_concurrent_runs=1,
executable=glue.JobExecutable.python_shell(
python_version=glue.PythonVersion.THREE_NINE,
script=glue.Code.from_asset(glue_script_path('my-shell-job.py')),
)
)
Possible Solution
make it optional for PythonShellExecutableProps
Additional Information/Context
No response
CDK CLI Version
2.166.0
Framework Version
No response
Node.js Version
18.16.1
OS
macOS 12.7.6
Language
Python
Language Version
3.9
Other information
@aws-cdk/aws-glue-alpha = 2.166.0a0
The text was updated successfully, but these errors were encountered: