Comments (4)
Another issue similar to this was fixed for me with this merge #1873
Based on the snippet, you probably want X4LARGE
or 4X-LARGE
to get it working
terraform-provider-snowflake/pkg/sdk/warehouses.go
Lines 55 to 81 in 59b7ef5
from terraform-provider-snowflake.
I am already using 4X-LARGE in my code.
from terraform-provider-snowflake.
Could repro the issue, using any warehouse size above LARGE.
from terraform-provider-snowflake.
It appears like you have an invalid warehouse size saved in your state file, which causes you to be stuck in validation. 4XLARGE
is not a valid size as per: https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties. I am wondering even how you were able to get in this state.
In any case, it is a simple enough fix. We can just add 4XLARGE
to the ToWarehouseSize(s string)
function
case "X4LARGE", "4X-LARGE", "4XLARGE":
return WarehouseSizeX4Large, nil
and might as well do the same for other potential misspellings. @sfc-gh-pbosak has a PR to fix this, i was able to verify it works by first creating a warehouse with 4X-LARGE
, then editing the state manually to 4XLARGE
, then running terraform plan and it showed no diff, whereas without the change it would return the error you described.
from terraform-provider-snowflake.
Related Issues (20)
- Destroying snowflake_grant_privileges_to_role resources fails at apply time with validation error. "exactly one of AllPrivileges, GlobalPrivileges...." HOT 3
- The terraform-provider-snowflake_v0.71.0 plugin crashed - user creation. HOT 6
- For "snowflake_grant_privileges_to_role" the resource ID is not changed when replacing grants, so an update-in-place is applied instead of a destroy then create. HOT 5
- Resource drift not being recognized
- Table does not exist during pipe resource creation HOT 1
- Terraform Plan Continually Proposes ALL PRIVILEGES Privilege Grant Despite Successful Apply HOT 5
- OWNERSHIP can only be transferred error on destruction of snowflake_grant_privileges_to_role resource HOT 2
- Snowflake view with no reference table
- Return readable errors on invalid input instead of crashing on array indices HOT 1
- Test before release HOT 1
- Indices resolution crashing on foreach snowflake_grant_privileges_to_role HOT 4
- Parsing error of cluster_by value containing an expression HOT 2
- Unable to list functions using provider v0.70.1
- snowflake_stage does not work for existing storage_integration HOT 5
- Configuring a new Snowflake provider using the account id of the generated account HOT 2
- Can't configure provider with `account`, `user` and `password` since v0.74.0 HOT 5
- Error: 260002: password is empty HOT 5
- Updating a DynamicTable defintion fails with SQL compilation error: unexpected <EOF> HOT 4
- Error: account and User must be set in provider config, ~/.snowflake/config, or as an environment variable HOT 15
- Provider Configuration Inconsistencies HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-snowflake.