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