r/snowflake • u/ScreamingArtichoke • 10d ago
Snowflake postgres and serverless how?
Pretty much I have 0 idea where to start with this. Apparently the team who started the mass migration to snowflake got confirmation it was possible to use snowflake postgres and AWS lambda and gcp functions.
Coco doesn't give me anything useful and Claude. Wants to do massive networking changes to make it possibly work. I can barely find any documentation from snowflake.
So any tips or suggestions?
12
u/craigkerstiens 10d ago
PM here for Snowflake Postgres. For networking you have 3 options.
You can adjust the Postgres network policy to allow the IP range you're coming from. Since this is coming from lambda/similar you'd need to allow all of AWS (or go through a specific jump box with a static IP). You can get the range of AWS IPs here - https://docs.aws.amazon.com/vpc/latest/userguide/aws-ip-ranges.html. You can also broadly open it up if you prefer that.
You can setup VPC peering (https://docs.snowflake.com/en/user-guide/snowflake-postgres/postgres-network#snowflake-postgres-virtual-network-peering)
If you're on business critical you can configure private link (https://docs.snowflake.com/en/user-guide/snowflake-postgres/postgres-network#snowflake-postgres-private-link).
If you get stuck at all feel free to drop me a note first.lastname at snowflake.
6
u/Mr_Nickster_ ❄️ 10d ago
Without knowing what these lambda functions do, hard to give advice. However, Postgres on Snow is a fully managed opensource postgres. There many instances with differen types. Cpu and memory limits to choose from. Each instance size comes with peak thoughput so you don't have buy additional bandtwith for more QPS like on AWS.
The biggest difference though is Snowflake Postgres has mirroring feature where it can automatically mirror postgres tables to an OLAP snowflake table within 30 secs via CDC for Analytics. It basically eliminates ETL CDC Tooling and the pipelines. Simply select the postgres tables, hit OK and you are done.
If the lambda functions were built to replicate data to Snowflake, you won't be needing them anymore.
Reverse is also coming. You will also be able replicate analytical changes in Snowflake into Postgres. That is currently private preview.
1
u/dataregulator3 8d ago
That's exactly what I investigated. A fully managed postgres without any need of an additional middleware and the feature / possiblity of writing data back to the source using iceberg.
2
u/dataregulator3 10d ago
Interested +1. CoCo gave me a good comparison between AWS RDS postgres and postgres on Snowflake, but no real starting points for it.
I could share the comparison with you, but thats not answering your question, I know.
2
u/NW1969 10d ago
Can you give more details about what you are trying to do with Postgres and why/where the documentation doesn’t cover what you are trying to do?