Configures an AWS Glue job to use Ray framework with specific worker type and Python version.

Terraform Template

resource "aws_glue_job" "example" {

  command {
    name = "glueray"
    python_version = "3.9"
    runtime = "Ray2.4"
    script_location = "s3://${aws_s3_bucket.example.bucket}/example.py"
  }
  glue_version = "4.0"
  name = "example"
  role_arn = "aws_iam_role.example.arn"
  worker_type = "Z.2X"
}