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

Not able to create a Primary Constraint In Snowflake using Terraform version = "0.82.0" #2315

Closed
pmaganti11 opened this issue Jan 3, 2024 · 2 comments
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@pmaganti11
Copy link

Terraform CLI and Provider Versions

Error: The terraform-provider-snowflake_v0.82.0.exe plugin crashed!

Terraform Configuration

resource "snowflake_sql" "add_primary_key" {
  depends_on = [snowflake_table.dim_accounts]

  database = snowflake_table.dim_accounts.database
  schema   = snowflake_table.dim_accounts.schema

  sql_text = <<-EOT
    ALTER TABLE "${snowflake_table.dim_accounts.database}"."${snowflake_table.dim_accounts.schema}".DIM_ACCOUNTS
    ADD CONSTRAINT DIM_ACCOUNTS_PK PRIMARY KEY (ACCOUNT_ID);
  EOT
}

Expected Behavior

Should create a constraint

Actual Behavior

Plug In Crashed

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

@pmaganti11 pmaganti11 added the bug Used to mark issues with provider's incorrect behavior label Jan 3, 2024
@sfc-gh-asawicki
Copy link
Collaborator

Hey @pmaganti11. Thanks for creating the issue.

We don't have a snowflake_sql resource. This means you are using a different provider, or the provided configuration must be corrected. If this is the latter, please provide the proper config and the debug log with the error.

@sfc-gh-asawicki
Copy link
Collaborator

Hey @pmaganti11, I will close this issue because of the inactivity. The provided output is not connected with our provider, so there is nothing we can do to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants