-
Notifications
You must be signed in to change notification settings - Fork 426
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
Plugin crashing when importing snowflake account #2317
Comments
Hey @sdiazben. Thanks for reporting the issue. Can you share the provider block from your tf config? |
Sorry for the formatting Thanks! |
@sdiazben I wasn't perfectly clear in my first answer. We need |
Oh sorry, my bad
Thanks! |
@sdiazben this looks fine. May I ask how you provide the config for the provider (profile file/env variables)? From the config and the logs provided, it seems that there is a problem with the private key provided. I am interested in three parameters:
What combination of them you are using? IMPORTANT: do not share the values. There are two main possible reasons:
|
Hello, We discovered by trying different alternatives the issue was due to incorrectly passing the account's private key, so it was an authentication error. |
This is a bit tricky because the authentication is not being done on our provider side but in the underlying driver (as you can see in the logs, the error originates in github.com/snowflakedb/gosnowflake). I would oppose checking the correctness of the provided key on our provider side (to not couple the implementation with the underlying libraries). We can check if the key is always present with JWT authenticator type provided. I will add this to our upcoming configuration rework. |
Umm ok understood, yes that would be good to not got into panic mode 😅 |
Terraform CLI and Provider Versions
Provider version
0.80
Terraform version
1.6.6
Terraform Configuration
Expected Behavior
Expected the import to work correctly given that we are using the ORGADMIN role
Actual Behavior
After calling terraform import it throws this error:
Stack trace:
Steps to Reproduce
terraform init
terraform import 'snowflake_account.account["<ACCOUNT_NAME"]' "<ACCOUNT_LOCATOR>"
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: