The full answer
With Glue you can transform S3 data with a Spark ETL job written in code, a visual job built in Glue Studio (including SQL transform nodes), a streaming ETL job for continuous data, or a lightweight Python shell job; DataBrew offers a no-code alternative, and Athena SQL suits simple set-based transformations.
1. Glue Spark ETL jobs (code) The main option. Write PySpark or Scala, read from S3 or the Data Catalog, transform with DataFrames or Glue DynamicFrames, and write Parquet or Iceberg back to S3:
from awsglue.context import GlueContext
from pyspark.context import SparkContext
from pyspark.sql import functions as F
glue = GlueContext(SparkContext.getOrCreate())
spark = glue.spark_session
orders = spark.read.table("raw.orders") # a Data Catalog table
clean = (orders.filter(F.col("amount") > 0)
.withColumn("order_date", F.to_date("order_ts")))
clean.write.mode("overwrite").partitionBy("order_date").parquet("s3://lake/clean/orders/")
Job bookmarks let a scheduled job process only new files each run.
2. Glue Studio visual jobs Build the same pipeline on a canvas: a source, transforms such as joins, filters, field mappings and a SQL Query node, then a target. Glue generates the script, which you can edit.
3. Glue streaming ETL A continuously running Spark Structured Streaming job reads Kinesis or Kafka, transforms in micro-batches and writes to S3.
4. Python shell jobs For small data or simple tasks (calling an API, moving a few files), without Spark's start-up cost.
5. Glue Data Quality inside the job Add a DQDL ruleset to the job so bad rows are flagged or routed aside before they are written.
Alternatives close to Glue
- AWS Glue DataBrew: point-and-click recipes for cleaning, for analysts.
- Athena CTAS or INSERT INTO: SQL that reads Catalog tables and writes new S3 tables; good for set-based transformations without Spark.
- Lambda triggered by S3 events: small per-file conversions.
Making any of them production-ready Whichever kind of job you choose, the same habits apply. Read from Data Catalog tables rather than hard-coded paths, so the schema lives in one place. Write output as Parquet or Iceberg, partitioned by the column most queries filter on, and register it in the catalog so Athena and Redshift Spectrum can query it at once. Make each run safe to repeat: overwrite a partition or merge into an Iceberg table instead of appending blindly, so a retried run does not duplicate rows. Schedule jobs with triggers, Glue workflows, Step Functions or Airflow, and turn on job metrics and continuous logging so a failure can be traced to the stage that caused it.
Choosing: Spark ETL jobs for most pipelines; visual jobs for teams that prefer them; streaming jobs for continuous data; Athena SQL or DataBrew for simple or analyst-owned work.
Last updated 16 October 2026