Error creating Tag #1657
Labels
bug
Used to mark issues with provider's incorrect behavior
category:resource
resource:tag
Issue connected to the snowflake_tag resource
Provider Version
Installed snowflake-labs/snowflake v0.59.0 (signed by a HashiCorp partner, key ID 5166D7352E69A585)
Terraform Version
Terraform v1.4.0
on windows_amd64
Describe the bug
running "terraform apply" on this configuration
terraform {
required_providers {
snowflake = {
source = "Snowflake-Labs/snowflake"
version = "~> 0.35"
}
}
}
provider "snowflake" {
alias = "sys_admin"
role = "SYSADMIN"
}
provider "snowflake" {
alias = "security_admin"
role = "SECURITYADMIN"
}
resource "snowflake_database" "db" {
provider = snowflake.sys_admin
name = "TEST_DATABASE"
}
resource "snowflake_schema" "schema" {
provider = snowflake.sys_admin
database = snowflake_database.db.name
name = "TEST_SCHEMA"
is_managed = false
}
resource "snowflake_warehouse" "warehouse" {
provider = snowflake.sys_admin
name = "TEST_WAREHOUSE"
warehouse_size = "small"
query_acceleration_max_scale_factor = 0
}
resource "snowflake_tag" "area_tag" {
name = "area"
database = snowflake_database.db.name
schema = snowflake_schema.schema.name
}
Results in this output
snowflake_database.db: Creating...
snowflake_warehouse.warehouse: Creating...
snowflake_database.db: Creation complete after 1s [id=TEST_DATABASE]
snowflake_schema.schema: Creating...
snowflake_schema.schema: Creation complete after 0s [id=TEST_DATABASE|TEST_SCHEMA]
snowflake_tag.area_tag: Creating...
snowflake_warehouse.warehouse: Creation complete after 1s [id=TEST_WAREHOUSE]
╷
│ Error: error creating tag area
│
│ with snowflake_tag.area_tag,
│ on main.tf line 40, in resource "snowflake_tag" "area_tag":
│ 40: resource "snowflake_tag" "area_tag" {
│
Expected behavior
No error when running the configuration
Code samples and commands
See above
Additional context
None
The text was updated successfully, but these errors were encountered: