S3, catalog and JDBC sources; partitioned Parquet sinks that update the catalog; DataFrame writes and Iceberg.
create_dynamic_frame.from_options(connection_type="s3", ...) takes connection options (where and how to list: paths, recurse, exclusions, grouping) and a format with its own format_options (CSV header and separator, JSON paths, and so on).
Thousands of tiny files mean thousands of tiny tasks. groupFiles: inPartition packs files within each S3 partition into groups of about groupSize bytes, one task per group. Glue turns grouping on by itself above 50,000 input files. It works for CSV, JSON, XML, Ion and grokLog — not for Parquet, ORC or Avro.
clicks = glueContext.create_dynamic_frame.from_options(
connection_type="s3",
connection_options={
"paths": ["s3://raw/clicks/2025/06/"],
"recurse": True,
"groupFiles": "inPartition",
"groupSize": "134217728", # ~128 MB per task
},
format="csv",
format_options={"withHeader": True, "separator": ","},
transformation_ctx="src_clicks")Reach the last step for the run summary: the key takeaways from this lesson.