Skip to content

Support for new AWS Glue Worker Types (R.1X, R.2X, R.4X, R.8X) in CfnJobProps #35071

@mainardi-andrea

Description

@mainardi-andrea

Describe the bug

AWS recently introduced new Glue worker types (R.1X, R.2X, R.4X, R.8X) for Glue 4.0+. These are available in regions like eu-west-1, and I'm able to use them manually via the console.
However, when using AWS CDK (v2.1022.0), I receive the error:
[#/WorkerType: R.1X is not a valid enum value]
Please add support for these new worker types in CfnJobProps

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

Being able to deploy a R worker glue job in the regions where they are available

Current Behavior

I receive the error:
[#/WorkerType: R.1X is not a valid enum value]

Reproduction Steps

from aws_cdk import App, Stack
from aws_cdk.aws_glue import CfnJob

class GlueRWorkerStack(Stack):
def init(self, scope: App, id: str, **kwargs):
super().init(scope, id, **kwargs)

    CfnJob(self, "GlueJobWithRWorker",
        name="r1x-test-job",
        role="arn:aws:iam::123456789012:role/MyGlueJobRole",
        command={"name": "glueetl", "scriptLocation": "s3://my-bucket/scripts/test.py"},
        glue_version="4.0",
        number_of_workers=2,
        worker_type="R.1X"  # This will fail unless supported
    )

app = App()
GlueRWorkerStack(app, "GlueRWorkerStack")
app.synth()

the synth functions as expected, the issue happens when deploying

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.207.0

AWS CDK CLI version

2.1022.0

Node.js Version

22.17.1

OS

linux docker python:3.9-slim-bookworm

Language

Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-glueRelated to AWS GluebugThis issue is a bug.cause/not-a-bugNot a bug (might still be a documentation issue, might still need work)p3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions