cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks serverless run init scripts

prajwalpoojary
New Contributor

Hello,

I want to read from Snowflake, which is in private network, using Databricks serverless compute.  We use init script to whitelist IP address inside the job/ interactive cluster. Now i am not able to execute init script inside serverless.

How to do this in serverless?

Script:

#!/bin/bash
cat /etc/hosts
cat <<EOT >> /etc/hosts
<ip_address>  <host>.snowflakecomputing.com
<ip_address> <host>.snowflakecomputing.com
EOT
 
Thanks

 

1 REPLY 1

juan_maedo
New Contributor III

 Hi  @prajwalpoojary , 

More than run init scripts, you might know and check all this.

Databricks Serverless compute uses dynamically assigned IP ranges each time a resource is attached. These ranges vary depending on the region and cloud provider you are using.

You need to allow these IP ranges in your different VNet services, firewalls, and in your Snowflake VNet as well. You may also need to include the NCC rules specific to your workspace. For more information, refer to the official documentation:

Databricks Serverless firewall configuration:
https://docs.databricks.com/aws/en/security/network/serverless-network-security/serverless-firewall

Default Databricks IP ranges by cloud provider:

Best,