You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use terraform import to manage existing tables, procedures, views, and other objects in the already established Snowflake environment with Terraform.
Actual Behavior
I executed terraform import to manage existing tables, procedures, and other objects in the Snowflake environment using Terraform. However, the import process shows inconsistent results depending on the object type: some imports succeed, while others fail due to plugin errors, as shown in the error message below. (For example, importing databases, schemas, and views works, but importing tables and procedures fails.)
I have considered the possibility that this issue might be related to the version, and I tested the following environments:
Snowflake versions: 8.34.0 and 8.33.1 (I tested both environments, and similar issues occurred in both.)
Terraform Snowflake Provider versions: 0.83.1 to 0.95.0 (I tested all versions up to the latest one.)
`╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).UpgradeResourceState call. The plugin logs may contain more details.
╵
`
Steps to Reproduce
The folder structure used for execution was as follows:
I ran terraform init in the above directory.
In the same directory, I executed the following import commands. Importing tables and procedures resulted in errors:
Terraform CLI Version
1.9.5
Terraform Provider Version
0.95.0
Terraform Configuration
Category
category:import
Object type(s)
resource:table
Expected Behavior
I wanted to use terraform import to manage existing tables, procedures, views, and other objects in the already established Snowflake environment with Terraform.
Actual Behavior
I executed terraform import to manage existing tables, procedures, and other objects in the Snowflake environment using Terraform. However, the import process shows inconsistent results depending on the object type: some imports succeed, while others fail due to plugin errors, as shown in the error message below. (For example, importing databases, schemas, and views works, but importing tables and procedures fails.)
I have considered the possibility that this issue might be related to the version, and I tested the following environments:
Snowflake versions: 8.34.0 and 8.33.1 (I tested both environments, and similar issues occurred in both.)
Terraform Snowflake Provider versions: 0.83.1 to 0.95.0 (I tested all versions up to the latest one.)
`╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).UpgradeResourceState call. The plugin logs may contain more details.
╵
`
Steps to Reproduce
The folder structure used for execution was as follows:
terraform import -var-file=prod.tfvars snowflake_table.XXTABLE XXDB.XXSCHEMA.XXTABLE
terraform import -var-file=prod.tfvars snowflake_view.XXVIEW XXDB.XXSCHEMA.XXVIEW
terraform import -var-file=prod.tfvars snowflake_procedure.procXX XXDB.XXSCHEMA.procXX
How much impact is this issue causing?
Low
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: