- Newest
- Most votes
- Most comments
When you use the Snowflake Spark Connector with sfOptions directly in your AWS Glue job instead of using a Glue-managed connection, the networking behavior depends on how your Glue job is configured.
If your AWS Glue job has network configurations (VPC, subnet, security group) attached to it, then the job will still use that network configuration regardless of whether you're using a Glue-managed connection or directly using the Snowflake Spark Connector with sfOptions. The network configuration is applied at the job level, not at the connection level.
When your Glue job runs with a VPC configuration, it creates an Elastic Network Interface (ENI) in the specified subnet with the specified security group. All network traffic from your Glue job, including connections to Snowflake, will flow through this ENI. If your subnet has a NAT Gateway configured, then the outbound traffic will go through the NAT Gateway, providing you with a static IP address that you can use for Snowflake allow-listing.
If you don't attach any network configuration to your Glue job, then your job will connect directly to Snowflake over the public internet, and you won't have a static IP address for Snowflake allow-listing.
For handling static IP requirements when using Snowflake with Glue, the AWS best practice is to:
- Configure your Glue job to run in a private subnet within a VPC
- Set up a NAT Gateway in a public subnet of the same VPC
- Configure route tables to direct outbound traffic from the private subnet through the NAT Gateway
- Use the Elastic IP address of the NAT Gateway for Snowflake allow-listing
This approach provides a static IP for outbound connections while maintaining security by keeping your Glue job in a private subnet. This configuration works regardless of whether you're using a Glue-managed connection or directly using the Snowflake Spark Connector with sfOptions.
Sources
Building a secure data pipeline - AWS Glue Best Practices: Building a Secure and Reliable Data Pipeline
AWS Glue Job Networking: Managing Multiple Connections | AWS re:Post
Hi,
The key-pair is used for authentication. The network path remains same as mentioned above when using key-pair to connect as well.
Thank you!
Relevant content
- asked 6 months ago
- asked 2 years ago

How about I am using key-pair to connect ..