In this section, we will set up the data ingestion pipeline for our data lake. This involves three key steps:
Create an S3 Bucket – Amazon S3 serves as the primary storage layer for our data lake. We will create a bucket with a structured folder hierarchy (data/raw, data/reference_data) to organize incoming and reference data.
Create a Firehose Stream – Amazon Data Firehose (formerly Kinesis Data Firehose) is a fully managed service for delivering real-time streaming data to destinations like Amazon S3. We will configure a Firehose stream to receive data and write it to our S3 bucket.
Generate Sample Data – We will use the Amazon Kinesis Data Generator (KDG) to simulate real-time device data, generating JSON records that represent music streaming activity.
Amazon Data Firehose can automatically batch, compress, and encrypt data before delivering it to S3. In this lab, we configure a 1 MiB buffer size and 60-second buffer interval for near-real-time delivery.