Pre-requisites:
- A Snowflake account with Account Admin privileges
- A Skyflow account with Account Admin privileges - Contact Skyflow here to get one!
- A command-line terminal with python installed
Setup Steps:
-
Clone (or Download+Unzip) this repo, and navigate to the
snowflake_udf_demofolder in a command-line terminal. -
Log into Skyflow via browser and create a service account. Ensure the Account Admin role is enabled when going through the creation wizard. Move or copy the auto-downloaded
credentials.jsonfile into thesnowflake_udf_demofolder. -
Within Skyflow, click the settings gear icon on the left. Copy your Account ID and paste it into the
vault_details.cfgfile. -
In your terminal window, run the command:
python script_setup.pyorpython3 script_setup.py(depending on your python version). This -
Log into Snowflake and click
Create Worksheet from SQL Filein the top-right three-dot menu. Select and Import theskyflow_udf_setup.sqlfile. Repeat for theskyflow_udf_demo.sqlfile. -
Open the imported
skyflow_udf_setup.sqlworksheet and ensure you are using the Snowflake ACCOUNT_ADMIN role. Execute the worksheet in full using theRun Alloption in the Run command button drop-down (top-right). If you receive the messageFunction SKYFLOW_PROCESS_PII successfully created., the setup is successful! -
Switch to the imported
skyflow_udf_demo.sqlworksheet, and again ensure you are using the Snowflake ACCOUNT_ADMIN role. Proceed line by line through the demo script. Prior to running the tokenize table step, update the last parameter with your email address. Note that this email address must correspond to an existing Skyflow Studio user in the relevant account. Also: Ensure that vault name remains "SkyflowVault". -
Upon running the tokenize table step, you can refresh your Skyflow Studio web page - there will be a new vault and table in Skyflow securely hosuing your Snowflake PII data! Continue through the demo steps accordingly.
--This concludes the demo. To reset the Snowflake portion of the demo, import the skyflow_udf_reset.sql file as a worksheet and execute. You can then start again from the Run Demo portion of these instructions. Thank you!--