terraform-provider-snowflake icon indicating copy to clipboard operation
terraform-provider-snowflake copied to clipboard

Unable to connect snowflake with user/password authentication

Open anikarunakaran opened this issue 3 years ago • 2 comments

Discussed in https://github.com/chanzuckerberg/terraform-provider-snowflake/discussions/937

Originally posted by anikarunakaran March 18, 2022 Does anyone know why i am getting below given error while using user/password authentication for snowflake?.

terraform { required_providers { snowflake = { source = "chanzuckerberg/snowflake" version = "0.28.7" } } }

provider "snowflake" {

Configuration options

username = "admin" account = "xxxxxx" region = "east-us-2.azure" password = "xxxxxxxx" }

resource "snowflake_database" "demo_db" { name = "demo_db" }

=====================================

Error: Conflicting configuration arguments │ │ with provider["registry.terraform.io/chanzuckerberg/snowflake"], │ on main.tf line 10, in provider "snowflake": │ 10: provider "snowflake" { │ │ "private_key_path": conflicts with password

anikarunakaran avatar Mar 18 '22 12:03 anikarunakaran

Check if you have SNOWFLAKE_PRIVATE_KEY_PATH in your env variables. That variable is injected into private_key_path

danu165 avatar Mar 18 '22 19:03 danu165

Are you still having issues connecting to snowflake?

sfc-gh-jalin avatar Jun 07 '22 23:06 sfc-gh-jalin

We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket.

sfc-gh-asawicki avatar Apr 30 '24 16:04 sfc-gh-asawicki