Skip to main content

Description

Identify AWS Glue Spark batch and streaming jobs that use a non-Graviton worker on a release below Glue 6.1. Review these jobs for a runtime upgrade or a move to a supported Graviton worker.

Rationale​

AWS introduced lower-priced Graviton workers starting with Glue 6.0. Glue 6.1 adds runtime and scaling improvements and defaults new Spark jobs created without a worker type to Graviton. Existing jobs retain their configured worker type when upgraded. AWS Glue Graviton announcement Β· AWS Glue 6.1 announcement Β· Glue 6.1 migration guide

Impact​

A runtime or worker change can reduce compute costs. The effect depends on the workload and execution class. Test output correctness, native dependencies, performance, and recovery before migrating.

Audit​

This policy marks an AWS Glue Job as INCOMPLIANT if Command: Name is glueetl (Spark batch) or gluestreaming (Spark streaming) and both conditions apply.

  • Worker Type identifies a non-Graviton worker for the job type. The check matches Standard, G.1X, and G.2X for both job types, G.025X for streaming, and G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, and R.8X for batch.
  • Glue Version is a release below 6.1 (0.9, 1.0, 2.0, 3.0, 4.0, 5.0, 5.1, or 6.0).

A Spark job is COMPLIANT on Glue 6.1 or a later explicit release regardless of worker type. Glue 6.0 also passes when the configured Graviton worker is supported for the job type. Batch supports the .GRAVITON counterparts of the G and R workers listed for batch. Streaming supports G.1X.GRAVITON and G.2X.GRAVITON. AWS Glue worker types

Python shell and Ray jobs are INAPPLICABLE because they use different runtimes. Spark jobs with Glue Version set to auto are INAPPLICABLE because the job definition does not identify their effective release.