Cursor Follower
snowflake:SnowSQL Logo

CONNECTING GOOGLE CLOUD PLATFORM(GCP) TO SNOWFLAKE: A STEP-BY-STEP GUIDE

Celestinfo Software Solutions Pvt. Ltd. May 14, 2025

Introduction

Snowflake’s cloud data platform integrates seamlessly with Google Cloud Platform (GCP) to enable scalable data warehousing and analytics. Snowpipe, Snowflake’s automated data ingestion tool, can load data from Google Cloud Storage (GCS) into Snowflake tables in near real-time. In this blog, we’ll walk through connecting GCP to Snowflake using Snowpipe, with data stored in a GCS bucket named snowflake2214 and a folder named myfolder22. We’ll include seven screenshots to illustrate key steps.

Prerequisites

Step 1: Create a Google Cloud Storage Bucket

AWS Console Home

Step 2: Upload a Sample File to the Folder

S3 Service Dashboard
S3 Service Dashboard

Step 3: Create a Storage Integration in Snowflake

Syntax : (for creating strorage integration)

create or replace storage integration snowflake1422 --(integration name)

type = external_stage

storage_provider = gcs

enabled = true

storage_allowed_locations = ('gcs://snowflake2214/myfolder22/'); --(bucket name)

1. Retrieve the GCS service account ID

S3 Service Dashboard

2. You can see the GCS code by running the below command.

S3 Service Dashboard

Step 4: Grant Permissions in GCP

1. In the GCP Console, navigate to Cloud Storage > Buckets > snowflake2214.

2. Go to the Permissions tab and click Add.

3. Add the Snowflake service account from Step 3 as a principal.

4. Assign the role storage admin to allow Snowflake to read files in myfolder22.

5. Save the changes.

S3 Service Dashboard

Step 5: Create a Stage and File Format in Snowflake

1. Create a file format for CSV files:

S3 Service Dashboard

2. Create an external stage pointing to the GCS folder:

S3 Service Dashboard

3. Show the stages:

S3 Service Dashboard

Step – 6: Run the Data by using Select command

1. Write the command with the identities of your table.

(ex. Teacher_id,name,section,subject…etc)

S3 Service Dashboard

2. Run the command you’ll get your respective data which is in the google gcp.

S3 Service Dashboard

Conclusion:

In conclusion, loading data from Google GCP to Snowflake using the SELECT command offers a streamlined and efficient approach to data integration. By leveraging Snowflake’s robust data handling capabilities and GCP’s scalable infrastructure, users can seamlessly transfer and transform data for advanced analytics. This method ensures data integrity, optimizes performance, and simplifies workflows. Embracing these tools empowers organizations to unlock valuable insights from their data. For further optimization, consider exploring Snowflake’s automation features and GCP’s data orchestration services.

Burning Questions
About CelestInfo

Simple answers to make things clear.

How accurate are the AI insights?+

Our AI insights are continuously trained on large datasets and validated by experts to ensure high accuracy.

Can I integrate with my existing tools?+

Absolutely. CelestInfo supports integration with a wide range of industry-standard software and tools.

What security measures do you have?+

We implement enterprise-grade encryption, access controls, and regular audits to ensure your data is safe.

How often are insights updated?+

Insights are updated in real-time as new data becomes available.

What kind of support do you offer?+

We offer 24/7 support via chat, email, and dedicated account managers.

Still have questions?

Ready? Let's Talk!

Get expert insights and answers tailored to your business requirements and transformation.