Null values in terraform.tfstate file of snowflake_table_constraint while importing data. #2683
Labels
category:resource
feature-request
Used to mark issues with provider's missing functionalities
resource:table_constraint
Issue connected to the snowflake_table_constraint resource
Terraform CLI and Provider Versions
Terraform: 1.7.1
Provider: 0.87
Terraform Configuration
Expected Behavior
It should generate terrform.tfstate with all its config values
{
"mode": "managed",
"type": "snowflake_table_constraint",
"name": "primary_key",
"provider": "provider["registry.terraform.io/snowflake-labs/snowflake"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"columns": [
"col1"
],
"comment": "hello world",
"deferrable": true,
"enable": true,
"enforced": false,
"foreign_key_properties": [],
"id": "myconstraint❄️PRIMARY KEY❄️some_d12b|some_schema|some_table",
"initially": "DEFERRED",
"name": "myconstraint",
"rely": true,
"table_id": "some_d12b|some_schema|some_table",
"type": "PRIMARY KEY",
"validate": false
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"snowflake_database.d",
"snowflake_schema.s",
"snowflake_table.t"
]
}
]
}
Actual Behavior
{
"mode": "managed",
"type": "snowflake_table_constraint",
"name": "primary_key",
"provider": "provider["registry.terraform.io/snowflake-labs/snowflake"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"columns": null,
"comment": null,
"deferrable": null,
"enable": null,
"enforced": null,
"foreign_key_properties": [],
"id": "myconstraint❄️PRIMARY KEY❄️some_db|some_schema|some_table",
"initially": null,
"name": null,
"rely": null,
"table_id": null,
"type": null,
"validate": null
},
"sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjAifQ=="
}
]
}
Steps to Reproduce
terraform apply
terraform import snowflake_table_constraint.primary_key 'myconstraint❄️PRIMARY KEY❄️some_db|some_schema|some_table'
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: