Syncing Private Subnet Data to Snowflake Openflow via Data Connectivity Proxy
A walkthrough of setting up Snowflake Openflow and the Data Connectivity Proxy to ingest data from private databases within an AWS VPC without a VPN, plus a fix for container agent token file permissions.
Curated by Vibe DevOps · approx. 510 words
Key Takeaways
- Snowflake Openflow provides a Data Connectivity Proxy mechanism to establish connections with isolated data sources inside cloud private subnets.
- This pattern reduces cost and operational complexity compared to deploying dedicated AWS PrivateLink endpoints or site-to-site VPNs.
- When running the agent in Docker on an EC2 instance, strict file permissions on the token file can cause permission-denied errors if the container UID does not align with the host.
- Snowflake Openflow Runtime resources are now supported in the Terraform provider, streamlining infrastructure automation and lifecycle management.
From Original Source
Isolated Network Architecture with Data Connectivity Proxy
Syncing data from an internal AWS Aurora PostgreSQL subnet to Snowflake traditionally requires costly network plumbing, such as dedicated PrivateLink endpoints or custom VPN tunnels. Snowflake Openflow introduces the Data Connectivity Proxy, which deploys an agent directly into the private subnet alongside the database. On the Snowflake side, operators configure a proxy client, an External Access Integration, and Network Rules, then issue a bootstrap token. The agent dials out over the internet using this token to establish a secure, reverse data pipeline.
From Original Source
Handling Token File Permissions and Infrastructure Automation
When deploying the agent container on an EC2 instance, the authentication token retrieved from AWS Secrets Manager is saved with 600 permissions for security. However, because the container runs as a non-root user by default, the process fails with a permission-denied error when reading the token file and crashes. The solution is to create a system user and group with UID/GID 10001 on the host, transfer file ownership to this ID, and pass the appropriate user flag when starting Docker. Operationally, Openflow Runtime components can be managed via the Terraform provider, ensuring consistent provisioning and clean teardowns.
Vibe DevOps Editorial Commentary
Operational Takeaways and Best Practices
DevOps Perspective: When bridging cloud analytics platforms with private production databases, relying on an egress-only agent eliminates the need to expose inbound ports to the public internet. Nevertheless, platform engineers must enforce strict secret distribution workflows and token lifecycle policies. Standardizing container UIDs and host-level permissions is also critical to prevent silent outages during container restarts.
Commands & Configuration Snippets
Verbatim extract for quick lookup. Verify against your infrastructure before running.
CREATE DATA CONNECTIVITY PROXY my_dcp_client;Initialize the proxy client object on Snowflake
chmod 600 /etc/dcp-agent/secrets/dcp-bootstrap-tokenSet restricted read-only permissions for the security token
⚠️ Operational Caveats & Limitations
- Openflow capabilities continue to evolve across connector iterations, and certain detailed configurations still require manual setup via the Snowflake administrative UI.
- The source findings reflect hands-on tests performed specifically against Aurora PostgreSQL in an AWS environment.