Create Glue Crawler

Create Glue Crawler

In this step, we will create an AWS Glue Crawler to scan data in our S3 bucket and automatically register tables in the Glue Data Catalog.

The Crawler will scan both the raw streaming data (from Firehose) and the reference data (tracks_list.json) in your S3 bucket. It will create separate tables in the Data Catalog for each data source.

  1. Access the AWS Management Console

    • Search for Glue
    • Select AWS Glue

    Create Glue Crawler

  2. In the AWS Glue interface

    • Select Crawlers in the left menu
    • Select Create crawler

    Create Glue Crawler

  3. In the Set crawler properties step

    • Name, enter SummitCrawler
    • Select Next

    Create Glue Crawler

  4. In the Choose data sources and classifiers step

    • Select Not yet for data source configuration
    • Select Add a data source

    Create Glue Crawler

  5. In the Add data source dialog

    • Data source, select S3
    • Select Browse S3 to choose the S3 path

    Create Glue Crawler

  6. In the Choose S3 path dialog

    • Search and select your asg-datalake-demo-bucket bucket
    • Select Choose

    Create Glue Crawler

  7. After selecting the S3 path

    • Verify the S3 path is filled in correctly
    • Select Add an S3 data source

    Create Glue Crawler

  8. Data source has been added successfully

    • Verify the data source in the list
    • Select Next

    Create Glue Crawler

  9. In the Configure security settings step

    • Select Create new IAM role to create a new role for the crawler

    Create Glue Crawler

  10. IAM Role AWSGlueServiceRole-Crawlers successfully created

    • Verify the role is selected
    • Select Next

    Create Glue Crawler

  11. In the Set output and scheduling step

    • Select Add database to create a new target database

    Create Glue Crawler

  12. In the Create a database interface

    • Name, enter summitdb
    • Select Create database

    Create Glue Crawler

  13. Database summitdb created successfully

    Create Glue Crawler

  14. Return to the Set output and scheduling step

    • Target database, select summitdb
    • Select Next

    Create Glue Crawler

  15. In the Review and create step

    • Review all configurations
    • Select Create crawler

    Create Glue Crawler

  16. Crawler SummitCrawler created successfully

    Create Glue Crawler

  17. Select Run crawler to start the crawler

    Create Glue Crawler

  18. Crawler is now Running

    Create Glue Crawler

  19. Crawler run Completed successfully

    • Check the Table changes column: 2 table changes, 1 partition change

    Create Glue Crawler

  20. In the AWS Glue interface, select Tables

    • Database, select summitdb
    • You will see 2 tables: raw2026 and reference_data

    Create Glue Crawler

  21. Select the raw2026 table to view its details

    Create Glue Crawler

  22. View the Schema of the raw2026 table

    • The table has 9 columns including: uuid, device_ts, device_id, device_temp, track_id, activity_type, and 3 partition columns

    Create Glue Crawler