Back to results for “S3 & Storage”
AWS › AWS Glue & ETL

What is a Glue crawler, and how does it automatically populate the AWS Glue Data Catalog?

Beginner

Answer

A Glue crawler connects to a specified data source, such as an S3 bucket or a database, automatically inspects the structure of the data it finds, and creates or updates corresponding table definitions in the Glue Data Catalog, including inferring column names and data types, saving you from manually defining schema information for every dataset you want to query or process.
aws glue create-crawler --name my-crawler --role AWSGlueServiceRole --database-name my-database --targets '{"S3Targets":[{"Path":"s3://my-bucket/data/"}]}'
Real-world example A data engineering team schedules a Glue crawler to run nightly against a folder of newly arriving log files in S3, automatically detecting any new columns that have appeared in the data and keeping the Glue Data Catalog schema up to date without any manual effort.

Common follow-ups: How often should a Glue crawler be scheduled to run for frequently changing data?;What happens if a crawler encounters inconsistent schemas across different files in the same folder?