A Serverless AWS Project fetching weather data from an API, utilizing these AWS Services: Lambda, Kinesis Firehose, S3, Glue Crawler, Glue ETL Workflow Orchestration, EventBridge as a Lambda Trigger, and CloudWatch Logs for monitoring the Lambda functions and ETL job scripts. The processed data is then visualized using Grafana connected to Athena for interactive exploration.
This project leverages a serverless architecture on AWS to build a data pipeline for weather data.
Here's a breakdown of the key components and their roles:
Data Source:
![image](https://private-user-images.githubusercontent.com/157819544/333214174-0c166040-fe13-4055-af62-59fc79a71255.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE0MTc0LTBjMTY2MDQwLWZlMTMtNDA1NS1hZjYyLTU5ZmM3OWE3MTI1NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YTg1ZDhiYWJhZWI5YTFkODYyY2RhY2ZjNDU0MGFhOGU0NDYyMDYwZWJkMmVjZjQ0YzEzYTlmNTg2ZDZlODk0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.i2phTPK6K8OqiAQw51wKYP9yiNxflNVHJa0QoW8crdU)
The data originates from the [(https://open-meteo.com/)] API ([([https://open-meteo.com/en/docs)]). This API provides access to historical weather data for Groningen,NL the city I obtained my MSc degree. Open-meteo provides access through APIs to both historical and real-time weather data for various locations around the world.
AWS Lambda Functions:
Batch Data Lambda: This serverless function triggers upon new weather data batches arriving from the API. It pre-processes and prepares the data before sending it to the Kinesis Firehose for streaming.
![image](https://private-user-images.githubusercontent.com/157819544/333214489-1903f229-5e12-44b4-98af-e9d8160c2984.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE0NDg5LTE5MDNmMjI5LTVlMTItNDRiNC05OGFmLWU5ZDgxNjBjMjk4NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMDY4MWY0ZDQwZmZkMjE3OWVlOTAxYjMxZmE5NWQzNjRmZWZjOTU5ODNhNDA3YTkwMzI5M2Y4ZWM0Mzk2MDA5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.t_o6A49k7sd9E0-LHezVSsLf_IrrckXUvk6_WgiIZ2k)
Continuous Data Lambda: This function is triggered by AWS EventBridge at time intervals. It's designed to handle continuous streams of weather data, performing real-time processing before sending it to the Firehose.
![image](https://private-user-images.githubusercontent.com/157819544/333214372-b7781362-ae96-4adc-992b-0fd11e29c91f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE0MzcyLWI3NzgxMzYyLWFlOTYtNGFkYy05OTJiLTBmZDExZTI5YzkxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOTQ0N2IzNmYxZTc2YmRhN2FiMDUyZjIwZjFlZDQzY2RkOWY0ZDgxZDY5MTg5ZWM4ZTMzMDZhMDYyZDdjZTYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.262sSZSy6MTthiXEemIS8Ofaj_LH9eSpaPp6Ojlx0Wk)
Amazon Kinesis Firehose:
![image](https://private-user-images.githubusercontent.com/157819544/333215098-e2c27d1a-f6f9-41f3-b948-e35b638fd78e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE1MDk4LWUyYzI3ZDFhLWY2ZjktNDFmMy1iOTQ4LWUzNWI2MzhmZDc4ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYjYzMTBkOGZmZDEwZjRmYmJjY2U4MzVkOTNmYjRkMTJkZTM2YTQ1YzdkODIzODU0NDk0YWIzNTRkZTk2YWE1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.FHgVIO88HVYHNiOnj7-jq81xXGt2YydzPyToe2nlT54)
Based on the invoked Lambda function, the Firehose can handle data in two ways:
Batch Data: If triggered by the Batch Data Lambda, the Firehose streams the prepared data in batches to its S3 destination.
Continuous Data: When triggered by the Continuous Data Lambda (at timed intervals), the Firehose continuously streams the real-time data to S3.
AWS offers automated Firehose stream metrics, for Incoming bytes, Put Requests, Records or potential Throttled Records counts,etc. :
![image](https://private-user-images.githubusercontent.com/157819544/333216193-7136c90c-eeff-4694-b080-14871b26f9b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE2MTkzLTcxMzZjOTBjLWVlZmYtNDY5NC1iMDgwLTE0ODcxYjI2ZjliNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YzJhODU2MmNmMDE3NjViOWQ5M2YxNDk3M2ZiZDUwMGYxOTRlOWRkZmQ5Y2M1YzVjYTBlNGQ1YTZkYTJiOTljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.pnSPkE3svQ7njXEkbn1VLZOHwaBQqPUNnzrUZ8SwOaw)
Amazon S3:
Amazon S3 serves as the storage layer for this project, housing the weather data at various stages of the pipeline. Here's a breakdown of the different S3 buckets and their purposes:
weather-(batch)data-bucket: These buckets store the raw, unprocessed weather data received from the Open-Meteo API. The data format might be JSON, CSV, or the original format provided by the API. These buckets might be named with timestamps or identifiers indicating the time period of the data (e.g., May 2024).
open-meteo-weather-batch-data-parquet-bucket/: These buckets contain historical weather data that has been processed and converted into the Parquet format by ETL job scripts. Parquet is columnar and optimized for efficient querying with Athena, making it ideal for later analysis.
parquet-weather-table-prod/: These buckets hold the final, transformed weather data stored in Parquet format, making the final product of the ETL Workflow. This is the data readily available for querying and analysis with Athena and potentially for visualization with Grafana.
Buckets named like aws-athena-query-results-** / `store-query-results-for-athena-** are used temporarily to store the results of Athena queries. Depending on the configuration, these buckets could be automatically cleaned up after a set period.
The Kinesis Firehose automatically partitions the data as it delivers it to S3 buckets. This partitioning helps Glue Crawler efficiently discover the schema of the data. Each partition represents a specific time period or data segment, making it easier to query and analyze specific weather data ranges using Athena later.
By utilizing different S3 buckets for various data stages, the project maintains a clear separation between raw, processed, and final weather data. This organization simplifies data retrieval for analysis and ensures efficient querying with Athena.
This is a snapshot of all my S3 buckets, for both the historical batch weather data, and the continuous incoming weather data triggered by the EventBridge. Both data are fetched by the same Firehose.
![image](https://private-user-images.githubusercontent.com/157819544/333217200-385db9fb-3528-420d-8707-e89e484c627a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE3MjAwLTM4NWRiOWZiLTM1MjgtNDIwZC04NzA3LWU4OWU0ODRjNjI3YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZGVkODg5OGI2ZTM2NTAzNTAxYjYyZmNkZmQyOWVhNDY0NWViZWI2NGU3ZTkzOGE5M2NlNGFhNDIyZmM4ZGNjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kmUCyHRR3ouaDJ0c_zB2ouHfnyhoMBuoMbo6ceIO5FI)
AWS Glue:
Glue Crawler:
This automatically discovers and defines the schema of the weather data stored in S3.
![image](https://private-user-images.githubusercontent.com/157819544/333217587-93a7db7d-bff3-46ea-89dc-a57b32aeab63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE3NTg3LTkzYTdkYjdkLWJmZjMtNDZlYS04OWRjLWE1N2IzMmFlYWI2My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMDI5MTFkNGYzZjAxNDBmYWFhODIyOThlMzBjM2EwNjNiZDg5ZDE4ODMxMGJmY2ZlOGZiNzJlNzIyOTA1MTY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3flpNMyamJn9e1WI4VzdGX00LwVsaJ3jlfhFelwhZ8s)
Glue ETL Workflow Orchestration:
We utilize Glue's capabilities to define and orchestrate the data transformation logic. A series of Glue jobs perform data transformations, data quality checks, and ultimately save the processed data to a new table stored as Parquet files.
![image](https://private-user-images.githubusercontent.com/157819544/333217960-f488cf8f-487b-4577-a521-be719e0c5a91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE3OTYwLWY0ODhjZjhmLTQ4N2ItNDU3Ny1hNTIxLWJlNzE5ZTBjNWE5MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMTNjNDNjNTU5ZDIyYTZkOTQxOTZmNzQ5Y2VhYmMwNzA0ODVkNzhkMDlhYWU0MWQwZmJkZjc3ZWZiYWQ4OGRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.YAbqWA3C5bJPurYKq9uYiV9P-1UdHUe3d0u0VdgloZQ)
Amazon Athena:
This serverless interactive query service allows us to analyze the transformed weather data using standard SQL queries.
![image](https://private-user-images.githubusercontent.com/157819544/333218404-60e91fc8-13f6-4b06-87d4-cbe61e6f9553.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE4NDA0LTYwZTkxZmM4LTEzZjYtNGIwNi04N2Q0LWNiZTYxZTZmOTU1My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZDg1YWQyZmE5Mzk3OTYwMzNjMDY0ZTg0OTBhNjhjODA5ZTgwNGE2NDkzYjE2MjkzMWNmYjZhMDZkZmYyYjA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.et9u87B1adcAYcQT4YlfFYGzT3fuwEL0c0yM5JWYWR0)
![image](https://private-user-images.githubusercontent.com/157819544/333218710-19401e2c-8a25-4d34-8717-8b4d5db2da79.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE4NzEwLTE5NDAxZTJjLThhMjUtNGQzNC04NzE3LThiNGQ1ZGIyZGE3OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NDU3YmUzODMwODRkZTlmMDU5OTkxMWEzZGRmMGQ1ZTI4NDg3YzYzN2E4YTc1NzZjMTNjNjZhNGFmNzQ5MDE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9BiiNVvZZQsqS-dTk20CVIbVekLrLJEkn_dvEDV-JTU)
Grafana:
Grafana, a visualization tool, connects to Athena, enabling the creation of interactive dashboards to explore the weather data insights. You can leverage standard SQL queries within Grafana to visualize the processed data.
While static images of the dashboard are included below, the power of Grafana lies in its interactivity. To explore the dashboard functionalities directly, you can access a linked snapshot:
([https://nickolasb98.grafana.net/dashboard/snapshot/1uXP8OvJex8ybSvKMYCoRaydwpI9eooa])
The static snapshots as pdf files for a quick overview:
![image](https://private-user-images.githubusercontent.com/157819544/333219861-9c588c46-a12b-4fd4-afca-445e12d04130.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjE5ODYxLTljNTg4YzQ2LWExMmItNGZkNC1hZmNhLTQ0NWUxMmQwNDEzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZDkxZDkwYTUwYTVmYTIzZjcwMjA3ZDdkNjZkZTM5YjNlMzBhZmE5MWU0NTI0ZmYxYzg3NTlkMDMzZDhkNTQ3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.FCZfGAv_JTXHS8MyHSGeVpo4tIOjrRXJPFlA1rl7KS8)
![image](https://private-user-images.githubusercontent.com/157819544/333220026-9cbc1248-523b-4ad6-9e85-ed60bed9836d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNjU0MzEsIm5iZiI6MTcyNjA2NTEzMSwicGF0aCI6Ii8xNTc4MTk1NDQvMzMzMjIwMDI2LTljYmMxMjQ4LTUyM2ItNGFkNi05ZTg1LWVkNjBiZWQ5ODM2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQxNDMyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNzQ3YTJmZTI0ZThjMzY1NzQ4OWIxN2Q3ODM4MzIzYzI2MTg4ZWNlMGQ0NjAwODAzYjQ3MmE2ZmE2ODNmOWFkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jdHJxpiolQhna33fswrg3AmPwgKxCNT-qkJLoX7Zy6o)
Pipeline Functionality:
Data Ingestion: A Lambda function is triggered periodically (or based on an event) to fetch weather data from the chosen API.
Data Streaming: The retrieved data is sent to Amazon Kinesis Firehose for continuous streaming.
Data Storage: The Firehose delivers the data to an S3 bucket for raw data storage.
Schema Discovery: A Glue Crawler automatically discovers and defines the schema of the data stored in S3.
Data Transformation: Glue ETL jobs are designed to: Cleanse and transform the data as needed. Perform data quality checks to ensure data integrity.
Data Storage (Processed): The transformed data is saved to a new table in S3 using the Parquet format, optimized for analytics.
Data Analysis: Amazon Athena, when connected to Grafana Cloud, allows querying the processed weather data using standard SQL for further analysis and visualization.
Monitoring: This project utilizes AWS CloudWatch Logs for centralized monitoring of the data pipeline components. CloudWatch Logs capture details about: Lambda Function Execution: Invocation time, duration, and any errors encountered during data ingestion. Glue ETL Job Execution: Start and end times, completed job steps, and any errors during data transformation. By analyzing CloudWatch Logs, you can identify potential issues, monitor performance, and ensure the smooth operation of the pipeline.
Benefits:
Scalability and Cost-Efficiency: Serverless architecture scales automatically based on data volume and minimizes infrastructure management costs.
Flexibility: The pipeline can be easily adapted to handle different weather APIs or data sources.
Automation: Data ingestion, transformation, and storage are automated, reducing manual intervention.
Analytics Ready: The processed data in Parquet format is optimized for efficient querying with Athena.