Open Ghaitharar opened 2 months ago
Hey @Ghaitharar. Thanks for reaching out to us.
Your import statement is incorrect: https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/schema#import. You have to use qualified name and you are only using the schema name without the db.
Hey @Ghaitharar. Can you confirm that the proposed solution worked?
Terraform CLI Version
0.89.0
Terraform Provider Version
0.89.0
Terraform Configuration
Category
category:import
Object type(s)
No response
Expected Behavior
plan and apply with no issues.
Actual Behavior
The plugin crushed.
Steps to Reproduce
variable "DEV_schema_map" { description = "List of GEs" type = map default = { for SC in ["DE_1", "DE_2", "DE_3", "DE_4", "DE_5", "DE_6"] : SC => SC} }
resource "snowflake_schema" "DEV_schemas" { for_each = var.DEV_schema_map name = each.value database = snowflake_database.DEV.name }
import { for_each = var.DEV_schema_map id = each.value to = snowflake_schema.DEV_schemas[each.value] }
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?