linkedin insight
Streamlining ETL (Part 2) – Building AWS Glue Connections and ETL Pipelines for Snowflake

Streamlining ETL (Part 2) – Building AWS Glue Connections and ETL Pipelines for Snowflake

Cloud/Devops
May 16, 2025
7-8 min

Share blog

Introduction

In Part 1, we focused on securely setting up the AWS Glue and Snowflake integration, including IAM roles, and Secrets Manager. Now it’s time to move towards the core functionality—building the actual ETL pipeline using AWS Glue Studio and connecting it to Snowflake!

This blog will cover:

  • Creating a secure AWS Glue connection to Snowflake.
  • Building an end-to-end ETL job using Glue Studio.
  • Applying data transformations (mapping, type conversions).

Create AWS Glue Connection to Snowflake

  • Go to AWS Glue > Data Catalog > Connections > Create Connection.
  • Select Snowflake as your data source.
  • Click Next
  • Now For Host and Port in connection, go to your snowflake and run command
  • Use role AccountAdmin;
  • SELECT SYSTEM$ALLOWLIST();
React Query features

The code first link in the dialog is the Host and Port 443 is also given.

  • Add Host and Port here.
  • Select the IAM Role created in Part 1.
  • Select the secret created in Part 1.
  • Click Test Connection, if success than click next, verify your snowflake credentials.
  • Provide a name to connection.
  • Review and Create Connection.

Build a Visual Glue Job

Why Visual ETL in AWS Glue Studio?

AWS Glue Studio simplifies ETL development using a drag-and-drop interface while still allowing custom code injections via auto-generated PySpark scripts. It’s ideal for:

  • Data Engineers who prefer no-code/low-code workflows.
  • Teams seeking faster pipeline prototyping.
  • Anyone who wants the flexibility of switching between visual + code-based ETL.

Steps

  • 1
    Go to AWS Glue > ETL jobs > Visual ETL.
  • 2
    Select S3 as a Source, Apply Mapping node for data transformation, and than select target snowflake.
  • 3
    Now we will start configuring all three nodes.

Data Source – S3 Bucket

  • Provide the s3 URL for the file we want from s3 to be pushed to snowflake.
  • Provide format as csv.
  • In left, select the IAM role created in part 1.
  • After selecting the IAM role it will automatically start reading the file and will start to display some rows of data.
React Query features

Transform – Change Schema

This step displays all the columns from the source file along with their inferred data types, and also allows you to modify these data types before loading the data into the target database.

Like initially all three types were string.

React Query features

I updated the schema for id and price, changed the data type to int.

React Query features

Snowflake Database Setup

  • Now go to your snowflake and create a table in a database with the definition of the data.
React Query features

Data target- Snowflake node

  • Select the snowflake connection made in the previous step.
  • Enter the name of your database, schema, and table in snowflake.
React Query features

Review & Edit Auto-Generated Python (PySpark) Script

Click on “Script” tab to view your auto-generated Glue script.

React Query features

Customizing the Script (Optional)

For more advanced use cases, you can:

  • Add data cleansing logic (e.g., removing nulls).
  • Insert conditional logic (e.g., only load data where price > 0).
  • Integrate custom logging using AWS CloudWatch or external monitoring tools.

Saving and Running

  • Give a name to a job and save the job.
  • Now run the job.
  • Go to AWS Glue > ETL Jobs > Job run monitoring
  • View your job running.
React Query features

Verification

  • Once your job completes successfully, switch to Snowflake and query your table. You should see the ingested records from S3!
React Query features

Conclusion

In this two-part series, we walked through the complete journey of securely integrating AWS Glue with Snowflake to build a scalable and production-ready ETL pipeline.

In Part 1, we focused on laying the groundwork. We discussed why each prerequisite is critical, including the role of IAM for enforcing least privilege access, and the significance of AWS Secrets Manager for secure credential management. These foundational steps ensure that your pipeline is not only functional but also aligned with security and governance best practices.

In Part 2, we brought everything together to create the actual Glue ETL job. Leveraging the IAM role and securely stored Snowflake credentials from Part 1, we established a Glue connection to Snowflake. From there, we designed a visual ETL job, configured our S3 source and Snowflake target, applied schema mappings, and customized Glue-generated PySpark scripts for flexibility.

By combining strong upfront setup (IAM, Secrets) with proper Glue job design, you’ve now built a secure, automated, and production-ready pipeline capable of transferring and transforming data seamlessly between AWS and Snowflake.

Blogs

Discover the latest insights and trends in technology with the Omax Tech Blog.

View All Blogs
DynamoDB multi-tenant architecture for secure data isolation.
6-10 min
August 13, 2026

Multi-Tenancy Patterns in DynamoDB: Silo, Pool, and Bridge Models

If you've already made the jump from a relational database to DynamoDB see our guide on moving relational data from SQL to DynamoDB...

Read More
Cursor IDE generating a Figma design draft from a Jira ticket - visualizing AI‑assisted design workflow.
8-10 min
August 10, 2026

We stopped leaving the IDE to design. Here’s our Cursor → Figma flow

Cursor drafts fast, catches gaps early, and still clips fields and breaks layouts. Here's the real pros-and-cons breakdown of our workflow...

Read More
AWS DevOps Agent automating AI-powered on-call incident response
6-8 min
August 07, 2026

AWS DevOps Agent: How AI is Automating On-Call Incident Response

If you've ever been on call during a production outage, you know how stressful it can be. Alerts start firing, dashboards light up, and suddenly you're jumping between monitoring tools...

Read More
Next.js pre-build script for detecting missing images before deployment
6-10 min
August 06, 2026

Catch Missing Images Before Deploy: A Simple Pre-Build Script for Next.js

How Omax Tech added a lightweight image validation gate to Next.js 15 builds on Vercel...

Read More
Storybook MCP + Amazon Bedrock + Strands: Teaching your LLM to build UI from your real design system catalog
10-15 min
August 04, 2026

Teach your LLM your design system: Storybook MCP + Amazon Bedrock + Strands

How to stop models inventing buttons and make them build UI from your real component catalog. Most "AI UI" demos look great until you paste the markup into a real product. The fix is not a smarter prompt...

Read More
Configure Self Hosted GitLab Repository Mirroring
6-8 min
July 30, 2026

Configure Self Hosted GitLab Repository Mirroring

Self hosted GitLab Repository Mirroring is a powerful feature that automatically synchronizes repositories between GitLab and external Git providers...

Read More
Illustration of Event Sourcing concepts for scalable software architecture and distributed systems.
4-8 min
July 20, 2026

Event Sourcing: A Foundation Guide

Event Sourcing is an architectural pattern where every state change is recorded as an immutable event rather than updating a database row in place...

Read More
AWS cloud security best practices with developer coding environment and cloud technology infrastructure
6-10 min
July 15, 2026

AWS Security Best Practices Every Business Should Follow

As more organizations migrate their applications and critical workloads to AWS, securing cloud environments has become a business priority rather than just an IT responsibility...

Read More
Futuristic cloud computing illustration with glowing data and AI-powered server floating in a digital neon environment.
6-10 min
June 22, 2026

AWS Migration Checklist: A Practical Roadmap for Modern Businesses

Migrating businesses to AWS offers many benefits, including cost optimization, improved security, and greater scalability. However, a successful migration requires careful planning and execution. Otherwise, organizations may experience...

Read More

Ready to Work With Us?

Most engagements start with a 20-minute conversation. No pitch, no pressure - just an honest discussion about what you're building and whether we're the right fit.