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

[Bug]: The resource 'snowflake_warehouse' doesn't allow resource_constraint as a variable #3258

Open
1 task done
scottl33 opened this issue Dec 9, 2024 · 1 comment
Open
1 task done
Labels
feature-request Used to mark issues with provider's missing functionalities

Comments

@scottl33
Copy link

scottl33 commented Dec 9, 2024

Terraform CLI Version

1.11.0

Terraform Provider Version

0.99.0

Company Name

OLO

Terraform Configuration

resource "snowflake_warehouse" "snowpark_wh" {
  name = "SNOWPARK_WAREHOUSE"

  warehouse_size = "xsmall"
  warehouse_type = "SNOWPARK-OPTIMIZED"
}

Category

category:resource

Object type(s)

resource:warehouse

Expected Behavior

Create a snowpark optimized warehouse as an XS

Actual Behavior

When creating a snowpark-optimized warehouse as an XS
invalid property combination 'RESOURCE_CONSTRAINT'='MEMORY_16X' and 'WAREHOUSE_SIZE'='X-Small'
The variable, 'RESOURCE_CONSTRAINT' is not defined in the provider. This makes it so user's have to select at least a medium instance and do not have control over allocating a larger resource constraint for larger warehouses.

Steps to Reproduce

resource "snowflake_warehouse" "snowpark_wh" {
name = "SNOWPARK_WAREHOUSE"

warehouse_size = "xsmall"
warehouse_type = "SNOWPARK-OPTIMIZED"
}

How much impact is this issue causing?

Low

Logs

No response

Additional Information

The only workaround is to select at least a medium warehouse. I am currently testing what the behavior is with bigger warehouses.

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@scottl33 scottl33 added the bug Used to mark issues with provider's incorrect behavior label Dec 9, 2024
@sfc-gh-asawicki sfc-gh-asawicki added feature-request Used to mark issues with provider's missing functionalities and removed bug Used to mark issues with provider's incorrect behavior labels Dec 9, 2024
@sfc-gh-jcieslak
Copy link
Collaborator

Hello @scottl33 👋
This was recently added to the warehouse object, so it's not in the warehouse resource yet. I see you checked the checkbox about implementing this feature yourself. Please read our contributing guidelines, and in case of any issues (or questions about the implementation), use this thread for communication. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used to mark issues with provider's missing functionalities
Projects
None yet
Development

No branches or pull requests

3 participants