fivetran / terraform-provider-fivetran

Terraform Provider for Fivetran
https://fivetran.com
Apache License 2.0
41 stars 22 forks source link

fivetran_connector_schema_config import not working for Snowflake Source #254

Closed mcwata7 closed 5 months ago

mcwata7 commented 5 months ago

Terraform version: 1.6.6 Fivetran provider version: 1.1.10

Describe the bug Import using fivetran_connector_schema_config not working.

│ Error: Unable to Read Connector Schema Resource. │ │ Error wile retrieving existing schema. status code: 404; expected: 200; code: NotFound; message: HTTP 404 Not Found

Using the same connector_id, I'm able to import the fivetran_connector but fails on the schema import.

jakerohald commented 5 months ago

@mcwata7 we have faced a similar issue and received the following response from FiveTran:

The engineer also let me know that there is no need to import the schema as it is a synthetic resource. The command returns a 404 error because the import operation is not able to reload the schema. The engineer is going to update the documentation to reflect this. As a next step, you can just define the schema in the config without any import.

beevital commented 5 months ago

We will remove this part from docs for connector_schema_config resource. There's no need to import a synthetic resource. It doesn't create any new entity in upstream, so there can't be any conflict.

beevital commented 5 months ago

https://registry.terraform.io/providers/fivetran/fivetran/latest/docs/resources/connector_schema_config#import