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

Error creating a simple Database object in Snowflake #2296

Closed
ankitsr92 opened this issue Dec 21, 2023 · 3 comments
Closed

Error creating a simple Database object in Snowflake #2296

ankitsr92 opened this issue Dec 21, 2023 · 3 comments
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@ankitsr92
Copy link

Terraform CLI and Provider Versions

provider[registry.terraform.io/snowflake-labs/snowflake] ~> 0.76
Terraform v1.0.11
on linux_amd64

  • provider registry.terraform.io/snowflake-labs/snowflake v0.81.0

Terraform Configuration

terraform {
  required_providers {
    snowflake = {
      source  = "Snowflake-Labs/snowflake"
      version = "~> 0.76"
    }
  }
}

provider "snowflake" {
  role = "SYSADMIN"
}

resource "snowflake_database" "db1" {
 name = "TF_DEMO1"
}

Expected Behavior

Create the simple Database in Snowflake

Actual Behavior

Error: Provider produced invalid plan

│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an invalid value for snowflake_database.db1.data_retention_time_in_days:
│ planned value cty.NumberIntVal(1) for a non-computed attribute.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.


│ Error: Provider produced invalid plan

│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an invalid value for snowflake_database.db1.is_transient: planned value
│ cty.False for a non-computed attribute.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

@ankitsr92 ankitsr92 added the bug Used to mark issues with provider's incorrect behavior label Dec 21, 2023
@sfc-gh-asawicki
Copy link
Collaborator

Hey @ankitsr92. Thanks for reporting the issue.

Please bump Terraform version to 1.1.5 (at least; preferrable is the newest version). It should solve the problem. Please let me know if that helps.

@sfc-gh-asawicki
Copy link
Collaborator

@ankitsr92 hey! Did you have a chance to try it out?

@sfc-gh-asawicki
Copy link
Collaborator

Hey @ankitsr92, I will close this issue; please open a new one if you are experiencing this problem after bumping Terraform to 1.1.5.

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