Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1471204: Ability to interpolate variables within config.toml #1179

Open
kameshsampath opened this issue Jun 10, 2024 · 2 comments
Open
Labels
core enhancement New feature or request

Comments

@kameshsampath
Copy link

Description

When the snow cli creates the config.toml it does not interpolate the variables within the attribute values except for ~.

e.g.

default_connection_name="cheatsheets"

[connections]
[connections.cheatsheets]
account = "account-id"
user = "kameshs"
warehouse = "COMPUTE_WH"
schema = "PUBLIC"
authenticator = "SNOWFLAKE_JWT"
private_key_path="$KEYS_DIR/.keys/rsa_key.p8"

The $KEYS_DIR never gets interpolated while reading the key path.

It will be nice to add variable interpolation support for all attribute values with in the config.toml.

Context

No response

@kameshsampath kameshsampath changed the title Ability to interpolate variables within config.toml Ability to interpolate environment variables within config.toml Jun 10, 2024
@github-actions github-actions bot changed the title Ability to interpolate environment variables within config.toml SNOW-1471204: Ability to interpolate variables within config.toml Jun 10, 2024
@sfc-gh-pczajka sfc-gh-pczajka added the enhancement New feature or request label Jun 11, 2024
@sfc-gh-pczajka
Copy link
Contributor

Hi @kameshsampath!
Parsing config.toml happens on snowflake-connector-python side - it looks like your issue falls under their scope
https://github.com/snowflakedb/snowflake-connector-python

@kameshsampath
Copy link
Author

kameshsampath commented Jun 11, 2024

@sfc-gh-pczajka opened a new issue snowflakedb/snowflake-connector-python#1971, please feel free to close this if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants