Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 2.01 KB

File metadata and controls

42 lines (22 loc) · 2.01 KB

WeatherForecastPipeline-Snowflake

Weather Forecast Pipeline using snowflake and AWS (Lambda / S3 / Cloudwatch)

Pipeline Flow

WF_PIPE

  1. Lambda Function triggered by event Bridge fetching Data from WeatherAPI

lambda

  1. Json Data loads to S3 incrementally everyday

s3

  1. Event notification informs Snowpipe via an SQS queue when files are ready to load.

event notification snowflake

  1. Snowpipe Auto ingest the data into varaint table using copy into from external stage.

Stage :

stage

Variant table:

variant table

  1. Next varaint stream will capture the new inserted data into varaint table and trigger the task that runs the store procedure to load data to Flat table. This layer is where all data is integrated and stored in flatten format

Flat

  1. Again Flat stream will capture the new inserted data into flat table and trigger the task that runs the store procedure to load data to Target table along with proper data types and business validation and checks.

CONF

Note : Target table has SCD type 2 where only latest forecast data will be active.

CONF SCD2