Skip to content

Commit d0cd860

Browse files
authored
Merge pull request #5 from getindata/feat/add-warehouse-type
feat: Add warehouse type
2 parents 1a07f4c + deb306a commit d0cd860

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ _Additional information that should be made public, for ex. how to solve known i
107107
| <a name="input_tags"></a> [tags](#input\_tags) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`).<br>Neither the tag keys nor the tag values will be modified by this module. | `map(string)` | `{}` | no |
108108
| <a name="input_tenant"></a> [tenant](#input\_tenant) | ID element \_(Rarely used, not included by default)\_. A customer identifier, indicating who this instance of a resource is for | `string` | `null` | no |
109109
| <a name="input_warehouse_size"></a> [warehouse\_size](#input\_warehouse\_size) | Specifies the size of the virtual warehouse. | `string` | `"X-Small"` | no |
110+
| <a name="input_warehouse_type"></a> [warehouse\_type](#input\_warehouse\_type) | Specifies the type of the virtual warehouse. | `string` | `"STANDARD"` | no |
110111

111112
## Modules
112113

@@ -129,14 +130,14 @@ _Additional information that should be made public, for ex. how to solve known i
129130

130131
| Name | Version |
131132
|------|---------|
132-
| <a name="provider_snowflake"></a> [snowflake](#provider\_snowflake) | ~> 0.47 |
133+
| <a name="provider_snowflake"></a> [snowflake](#provider\_snowflake) | ~> 0.53 |
133134

134135
## Requirements
135136

136137
| Name | Version |
137138
|------|---------|
138139
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
139-
| <a name="requirement_snowflake"></a> [snowflake](#requirement\_snowflake) | ~> 0.47 |
140+
| <a name="requirement_snowflake"></a> [snowflake](#requirement\_snowflake) | ~> 0.53 |
140141

141142
## Resources
142143

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ resource "snowflake_warehouse" "this" {
1515
comment = var.comment
1616

1717
warehouse_size = var.warehouse_size
18+
warehouse_type = var.warehouse_type
1819

1920
auto_resume = var.auto_resume
2021
auto_suspend = var.auto_suspend

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ variable "warehouse_size" {
1010
default = "X-Small"
1111
}
1212

13+
variable "warehouse_type" {
14+
description = "Specifies the type of the virtual warehouse."
15+
type = string
16+
default = "STANDARD"
17+
validation {
18+
condition = contains(["STANDARD", "SNOWPARK-OPTIMIZED"], var.warehouse_type)
19+
error_message = "Invalid warehouse type. Possible values are: \"STANDARD\", \"SNOWPARK-OPTIMIZED\""
20+
}
21+
}
22+
1323
variable "auto_resume" {
1424
description = "Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it."
1525
type = bool

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
snowflake = {
55
source = "Snowflake-Labs/snowflake"
6-
version = "~> 0.47"
6+
version = "~> 0.53"
77
}
88
}
99
}

0 commit comments

Comments
 (0)