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

Drift for warehouse size 2XLarge #2348

Closed
mwufigma opened this issue Jan 12, 2024 · 2 comments
Closed

Drift for warehouse size 2XLarge #2348

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

Comments

@mwufigma
Copy link

Terraform CLI and Provider Versions

Snowflake provider version 0.68.0
Terraform version 1.5.0

Terraform Configuration

resource "snowflake_warehouse" "wh" {
  name              = "elt_wh"
  comment           = ""
  warehouse_size    = "2XLARGE"
  max_cluster_count = 2
  auto_suspend      = 60
}

Expected Behavior

Apply should go through successfully and warehouse should be updated to 2XLARGE.

Actual Behavior

If I use "2XLARGE" as the warehouse_size value, I get this error:

│ Error: not a valid warehouse size: 2XLARGE
│ 
│   with snowflake_warehouse.creation_dataset_elt,
│   on warehouses.tf line 101, in resource "snowflake_warehouse" "creation_dataset_elt":
│  101:   warehouse_size    = "2XLARGE"

However, if I use the accepted value "xxlarge", Terraform produces drift like this:

Terraform will perform the following actions:

  # snowflake_warehouse.creation_dataset_elt will be updated in-place
  ~ resource "snowflake_warehouse" "wh" {
        id                                  = "elt_wh"
        name                                = "elt_wh"
      ~ warehouse_size                      = "2XLARGE" -> "xxlarge"
        # (12 unchanged attributes hidden)
    }

Steps to Reproduce

  1. Create an 2XL warehouse through terraform using any of the values I supplied above ("2XLARGE" or "xxlarge")

How much impact is this issue causing?

High

Logs

No response

Additional Information

This is causing perma-drift in our repo and messes up Spacelift (our Terraform module management software)

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

Hey @mwufigma. Thanks for reporting the issue.

It was already solved with #1946. It's available since v0.68.2. Please bump and confirm.

@sfc-gh-asawicki
Copy link
Collaborator

Hey @mwufigma, I will close this issue; please open a new one if you are experiencing this problem in the more recent versions of the provider.

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