<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jayashree Baskaran on Medium]]></title>
        <description><![CDATA[Stories by Jayashree Baskaran on Medium]]></description>
        <link>https://medium.com/@jayashree0888?source=rss-c1c4ed351f57------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Jayashree Baskaran on Medium</title>
            <link>https://medium.com/@jayashree0888?source=rss-c1c4ed351f57------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:13:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jayashree0888/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating SnowPipe To Load Data From S3 To Snowflake]]></title>
            <link>https://medium.com/bi3-technologies/automating-snowpipe-to-load-data-from-s3-to-snowflake-7b6144c75d9e?source=rss-c1c4ed351f57------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6144c75d9e</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[snowpipe]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Jayashree Baskaran]]></dc:creator>
            <pubDate>Fri, 17 Sep 2021 09:07:55 GMT</pubDate>
            <atom:updated>2021-12-10T08:45:42.533Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, you will be learning to automate the snowpipe while uploading multiple files. Snowpipe is Snowflake’s server less, automated ingestion service that allows you to load your continuously generated data into Snowflake automatically. Automated data loads are based on event notifications for cloud storage to notify Snowpipe at the arrival of new data files to load. Snowpipe copies files into a queue, from which they are loaded into the target table continuously and without a server depending on the settings defined in a specified pipe object. You can check the data in snowflake by querying the table.</p><p><strong>Flow of SnowPipe</strong></p><figure><img alt="Flow of snowpipe process" src="https://cdn-images-1.medium.com/max/435/1*9WUMhRfUow8SWprAT6QwRA.jpeg" /></figure><p><strong>Creating S3 Bucket in AWS<br></strong>1. Log into the AWS Management Console.<br>2. From the home dashboard, <strong>choose buckets</strong></p><figure><img alt="Creating Bucket" src="https://cdn-images-1.medium.com/max/936/1*2PZeuHTF0GTTd9GkbHdH1w.png" /></figure><p>3. Click on the create bucket option<br>4. Set the bucket name as <strong>s3-bucket-snowpipe</strong> and select the region for storing our bucket.<br>5. For block public access settings, select the option Block all public access and set Bucket versioning and Default encryption into Disable. And now create the bucket.</p><figure><img alt="Bucket creation" src="https://cdn-images-1.medium.com/max/936/1*nQ82YJuYFw4gvTTAC8MDkA.png" /></figure><p><strong>Creating Policy in IAM<br></strong>1. From the home dashboard, choose <strong>IAM</strong> (Identity &amp; Access Management)<br>2. Select the policy and click on the create a new policy.<br>3. Select the <strong>JSON</strong> and use the below code.</p><pre><strong>JSON Code<br></strong><em>{<br>“Version”: “2012–10–17”,<br>“Statement”: [<br>{<br>“Effect”: “Allow”,<br>“Action”: [<br>“s3:GetObject”,<br>“s3:GetObjectVersion”<br>],<br>“Resource”: “arn:aws:s3:::s3-snowpipe-bucket/ingest/*”<br>},<br>{<br>“Effect”: “Allow”,<br>“Action”: “s3:ListBucket”,<br>“Resource”: “arn:aws:s3:::s3-snowpipe-bucket”,<br>“Condition”: {<br>“StringLike”: {<br>“s3:prefix”: [<br>“*”<br>]<br>}<br>}<br>}<br>]<br>}</em></pre><figure><img alt="Creating Policy" src="https://cdn-images-1.medium.com/max/936/1*ZGDWA1LIfSAOOI6DYKTlgQ.png" /></figure><p>4. Click on Next tags and Next review, Set the policy name as <strong>snowpipe-policy</strong> and create the policy.</p><p><strong>Creating User in IAM</strong><br>1. From the home dashboard, choose IAM (Identity &amp; Access Management).<br>2. Select the user, click on create user and set the username as <strong>snowpipe-user</strong>.</p><figure><img alt="Creating an user" src="https://cdn-images-1.medium.com/max/1024/1*bzeMZ2N3y78ExJw0BMS-Dg.png" /></figure><p>3. Select Programmatic access in Access type and click on Next Permissions.<br>4. Click on <strong>Attach existing policies</strong> directly then select the policy which created earlier named as <strong>snowpipe_policy</strong> and click on Next tags and create the user and download the csv file which contains the access key ID and secret access key.</p><figure><img alt="Attaching the policies" src="https://cdn-images-1.medium.com/max/1024/1*vmlymjojBdX5-VKW11t2iQ.png" /></figure><p><strong>Creating table in snowflake</strong><br>1. Redirect to Snowflake account.<br> 2. Creating a table in snowflake to store the data.</p><pre><em>create or replace table Prsnl_dtls(id int, Name varchar(100), City varchar(100),Country varchar(100));</em></pre><p>3. Creating a stage using S3 bucket name with proper file format that is going to be loaded.</p><pre><em>create or replace stage demo_db.public.snowpipe_stage</em><br> <em>url = ‘s3://s3-bucket-snowpipe/ingest/’</em><br> <em>credentials=(aws_key_id=’ ‘ aws_secret_key=’ )</em><br> <em>file_format = (type = ‘CSV’);</em></pre><p>4. Create a pipe and use copy query to copy the data into table from created stage.</p><pre><em>create or replace pipe demo_db.public.snowpipe_pipe auto_ingest=true as</em><br> <em>copy into demo_db.public.Prsnl_dtls</em><br> <em>from @demo_db.public.snowpipe_stage</em><br> <em>file_format = (type = ‘CSV’);</em></pre><figure><img alt="Snowflake Queries" src="https://cdn-images-1.medium.com/max/1024/1*zlQFucj1JspdtIuEZs3zpA.png" /></figure><p>5. Use the show pipes command and copy the <strong>arn</strong> code from the notification channel column values<br><em>show pipes;</em></p><figure><img alt="Selecting ARN" src="https://cdn-images-1.medium.com/max/1024/1*wmdlTz2XDg4EkIwJkumcXw.png" /></figure><p>6. Redirect to the s3 bucket page and select the event notification under the properties.<br>7. Click on the <strong>Event notifications</strong> and select create event notifications.<br>8. Set the event name as <strong>snowpipe-event</strong> and select the All object create event from Event Types.</p><figure><img alt="Creating Event" src="https://cdn-images-1.medium.com/max/929/1*TFkiUyCDPC8kT2BWpmhsGA.png" /></figure><p>9. Select <strong>SQS Queue</strong> under Destination and select <strong>Enter SQS Queue arn</strong> and paste the arn copied from snowflake and click on save changes.</p><figure><img alt="Setting up SQS Queue" src="https://cdn-images-1.medium.com/max/870/1*iz1jMpiDe8DxZ8zuMdp3bg.png" /></figure><p>10. Upload the files into s3 bucket.</p><figure><img alt="Files that are uploaded into s3 bucket" src="https://cdn-images-1.medium.com/max/1024/1*6kx4mgQV4rm1Ym-SuY8k0g.png" /></figure><p>11. Redirect to snowflake and query the table to verify ingested data.</p><figure><img alt="Data that copied from files" src="https://cdn-images-1.medium.com/max/1024/1*CMc6iOXpgriKY2OsixfxYg.png" /></figure><p>The data available in the uploaded files are successfully loaded into snowflake table.<br><strong>Benefits of Snowpipe</strong></p><p>Snowpipe eliminates the challenges associated with legacy systems and provides the following benefits to the organizations.</p><p>1) <strong>Constant experiences</strong>: Snowpipe consistently gives new business information across every one of the offices without making any responsibility issues.</p><p>2) <strong>Limits cost</strong>: It is extremely affordable and charges clients each second dependent on the calculation time.</p><p>3) <strong>Convenience</strong>: It is extremely easy to utilize. You should simply interface it with the S3 and information will stack naturally.</p><p>4) <strong>Adaptability</strong>: Snowpipe is profoundly adaptable and permits simple customizations to stack information utilizing automatic REST Programming interface, utilizing Python, and Python SDKs.</p><p>5) <strong>Zero Administration</strong>: Snowpipe consequently increases and scales down dependent on the information stacking necessities. There is no compelling reason to oversee anything.</p><p><strong>Conclusion</strong><br>SnowPipe is one of the great ways to ingest files and minimizes the cost when used with appropriate measures and planning.</p><p>For more reference click on <a href="https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-s3.html">Automating Snowpipe</a> .</p><h3>About Us</h3><p>Bi3 has been recognized for being one of the fastest-growing companies in Australia. Our team has delivered substantial and complex projects for some of the largest organizations around the globe and we’re quickly building a brand that is well known for superior delivery.</p><p><em>Website : </em><a href="https://bi3technologies.com/"><em>https://bi3technologies.com/</em></a></p><p>Follow us on,<br><em>LinkedIn : </em><a href="https://www.linkedin.com/company/bi3technologies"><em>https://www.linkedin.com/company/bi3technologies</em></a><em><br>Instagram : </em><a href="https://www.instagram.com/bi3technologies/"><em>https://www.instagram.com/bi3technologies/</em></a><em><br>Twitter : </em><a href="https://twitter.com/Bi3Technologies"><em>https://twitter.com/Bi3Technologies</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6144c75d9e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bi3-technologies/automating-snowpipe-to-load-data-from-s3-to-snowflake-7b6144c75d9e">Automating SnowPipe To Load Data From S3 To Snowflake</a> was originally published in <a href="https://medium.com/bi3-technologies">BI3 Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>