Skip to content

(glue-alpha): Improve Glue version synth time checks #26620

Closed
@dokeita

Description

Describe the feature

we can create PythonShell job with GlueVersion 3.0 using AWS Glue Studio.
I would like to be able to create it in glue-alpha.Job as well.

Use Case

When we create a PythonShell job in AWS Glue Studio, the GlueVersion is set to 3.0.
Therefore, it is better to be able to create PythonShell jobs with GlueVersion 3.0 using CDK.

Proposed Solution

We just need to fix this if statement.

https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-glue-alpha/lib/job-executable.ts#L357

      if ([GlueVersion.V0_9, GlueVersion.V3_0, GlueVersion.V4_0].includes(config.glueVersion)) {
        throw new Error(`Specified GlueVersion ${config.glueVersion.name} does not support Python Shell`);
      }

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.89.0

Environment details (OS name and version, etc.)

Ubuntu 20.04 on Windows10 ( WSL2 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-glueRelated to AWS Glueeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions