snowflakedb / snowflake-cli

Snowflake CLI is an open-source command-line tool explicitly designed for developer-centric workloads in addition to SQL operations.

Home Page:https://docs.snowflake.com/developer-guide/snowflake-cli-v2/index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SNOW-1348217: Don't restrict the Keys being allowed in snowflake.yml

sfc-gh-cdube opened this issue · comments

Description

I want to be able to leverage the snowflake.yml file to pass in extra keys, such as app_owner role and namespace destination of the app

Context

In a CI/CD context, many customers would want to have different owner role for each apps, leveraging the snowflake.yml file for it makes it easy when we use snow streamlit init, since the file is already created. The CD Actions simply parse the snowflake.yml file to find the owner and namespace the app should be deployed to, and adjust the config.toml file used by snow streamlit deploy to pass in role, database and schema.

I also heavily use custom keys to avoid having yet another config file required to use snowcli for use-cases like this. I would strongly prefer to have some way to have custom config in this file, even if it's in a separate namespace.

I would strongly prefer to have some way to have custom config in this file, even if it's in a separate namespace.

We are working on adding a variables namespace, together with support for templating the values.

Not directly but solved by #1065