Service · Analytics
AWS Glue
A serverless data integration service that finds, catalogs, cleans and moves data for analytics.
- 1Glue connects to your data sources, such as databases and files.
- 2A crawler works out the structure of the data and saves it in the Data Catalog.
- 3An ETL job cleans and reshapes the data and loads it into the S3 data lake.
- 4Amazon Athena looks up the table in the Data Catalog: its columns and where its files are.
- 5Athena reads the clean data in S3 to answer a SQL query. The catalog holds only the description of the data.
Step by step
- 1Glue connects to your data sources, such as databases and files.
- 2A crawler works out the structure of the data and saves it in the Data Catalog.
- 3An ETL job cleans and reshapes the data and loads it into the S3 data lake.
- 4Amazon Athena looks up the table in the Data Catalog: its columns and where its files are.
- 5Athena reads the clean data in S3 to answer a SQL query. The catalog holds only the description of the data.
Crawlers
Scan data stores and work out the tables, columns and data types.
Data Catalog
A central list of your tables. Athena, EMR and Redshift use it to find data.
ETL jobs
Extract, transform and load data, on a schedule or when new data arrives.
AWS Glue Studio
Build ETL jobs in a visual editor. Glue writes the code for you.
What it is
Before data can be analyzed, someone has to find it, understand its structure and clean it. AWS Glue is a serverless data integration service for this work. It connects to many data sources, on AWS and on-premises. There are no servers to manage, and you pay as you go.
Glue crawlers scan your data, for example files in Amazon Simple Storage Service (Amazon S3), and work out its structure: the tables, columns and data types. They save this metadata, which is data about your data, in the AWS Glue Data Catalog. Amazon Athena, Amazon EMR and Amazon Redshift Spectrum use the catalog to find and query the data.
What it is
Glue ETL jobs extract data from a source, transform it, for example by removing duplicates or changing the format, and load it into a target such as an S3 data lake or Amazon Redshift. You can build a job visually in AWS Glue Studio, and run it on a schedule, on demand, or when new data arrives.
Remember
- ETL = extract, transform, load.
- Serverless and pay as you go: no servers or clusters to manage.
- Crawlers discover data and its structure automatically.
- The Data Catalog is a central list of tables that Athena, EMR and Redshift can use.
- Jobs run on a schedule, on demand, or when an event happens.
Remember
- Glue prepares data for analytics. AWS Database Migration Service (AWS DMS) moves whole databases to AWS.
On the exam
- “Serverless ETL” or “prepare and transform data for analytics” points to AWS Glue.
- “Discover data in S3 and keep its schema in a central catalog” points to AWS Glue crawlers and the Data Catalog.
- “Migrate a database to AWS with minimal downtime” points to AWS DMS, not Glue.
Do not mix it up with
Amazon EMRRuns big data frameworks such as Apache Spark and Hadoop, on managed clusters or serverless.
Amazon AthenaRuns standard SQL queries directly on data in Amazon S3, with no servers to manage.
AWS Database Migration Service (AWS DMS)Moves a database to AWS while the source database keeps running.