-
Notifications
You must be signed in to change notification settings - Fork 427
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
[Docs]: Misleading example of SNOWFLAKE_PRIVATE_KEY #3332
Comments
Hi @martinw-intersport 👋 You're right - the example is misleading. We will adjust this soon. You should be able to load the contents of your key file like this: export SNOWFLAKE_PRIVATE_KEY=$(cat ~/.ssh/snowflake_key.p8) |
thanks for your reply! I still get following error when i set through env var SNOWFLAKE_PRIVATE_KEY
and when I run |
Probably the key is not formatted correctly. Please take a look at similar issues: #2899 and #2432. We don't do any processing on the file, we just pass it straight to the gosnowflake driver - see #2899 (comment). |
@sfc-gh-jmichalak The file is correctly formatted, at least when i use file("~/.ssh/snowflake_key.p8") it works. But this command does not work as i said before (does this work on your side?)
Regarding this #2899 (comment), it can be passed through on my side when env set using above command. So not due to I have tried many ways, including:
It seems there was an issue transferring the content from the SSH file to the environment variables. So your commit c7e463d about SNOWFLAKE_PRIVATE_KEY might still not work for others. It will be good like snowflake cli to set private_key_file as file path, then we don't have to struggle with multiline string parameter. I know in gosnowflake haven't implement it, but snowflake provider can accept file path and load content by itself to pass to Config.PrivateKey |
Company Name
No response
Object type(s)
No response
Documentation Link
https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/index.md
Description
In section #keypair-authentication-passphrase and #order-precedence mentioned example to assign SNOWFLAKE_PRIVATE_KEY with private key path, like
Instead the SNOWFLAKE_PRIVATE_KEY accepts file content, and there's no way to pass in file path directly to snowflake provider.
References
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: