TIOS is a user interface that has the following features:
- TIOS Dashboards
- Search App to search of vulns that impact snowflake assets
-
Install
miniconda
brew install miniconda conda init zsh
-
Create a python 3.10 environment compatible with snowpark
conda create \ --name streamlit-tios python=3.10 \ --override-channels \ -c https://repo.anaconda.com/pkgs/snowflake
-
Activate environment and install packages
conda activate streamlit-tios pip install --upgrade -r requirements-dev.txt
-
Create
.streamlit/secrets.toml
[snowflake] user="<my_ldap_id>" authenticator="externalbrowser" account="my_account_id" warehouse="DEV_WH" database="my_db" schema="TIOS_DEV" role="my_tios_role"
With this your local environment is ready to run the application.
Activate the environment and run the app
conda activate streamlit-tios
streamlit run tios/1_tios_app.py
We use snowcli to do the deployments.
-
Create
~/.snowflake/config.toml
to setup connections required by snowflakecli. You'll need account locator[connections] [connections.tios_demo] account = "my_account_id" # Use account locator user = "my_username" authenticator = "externalbrowser" database = "my_db" schema = "TIOS_DEMO" warehouse = "MY_WH" role = "my_tios_role"
-
Install and Setup snowflakecli using instructions
pip install git+https://github.com/Snowflake-Labs/snowcli.git@v2.2.0
-
Deploy the Streamlit App
snow streamlit deploy -c tios_demo --project=./ --replace