terraform-provider-confluent: Unable to import connectors
Hi, I am trying to import my existing connectors into the confluent terraform provider but am running into issues.
I am using version 1.0.0 of the terraform provider running the following commands:
confluent_connector.postgres_cdc_connector[0]: Importing from ID "env-81ymm0/lkc-380q7o/PostgresCDCConnector_0"...
confluent_connector.postgres_cdc_connector[0]: Import prepared!
Prepared confluent_connector for import
confluent_connector.postgres_cdc_connector[0]: Refreshing state... [id=lcc-7yzx5w]
╷
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "confluent_connector.postgres_cdc_connector[0]", the provider detected that no object exists with the given id. Only pre-existing objects can be
│ imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
I can see that these connectors do exist, but the provider is not finding them
confluent connect --environment $environ --cluster $cluster list
ID | Name | Status | Type | Trace
-------------+----------------------------------+---------+--------+--------
lcc-7yzx5w | PostgresCDCConnector_0 | RUNNING | source |
lcc-o3ydz9 | SalesforceSObjectSinkConnector_0 | RUNNING | sink |
I have also tried importing with the following ways:
<envid>/<clusterid>/<connectorname><envid>/<clusterid>/<connectorid><connectorid>
Please let me know if you need additional information.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23
Yeah, apologies here. I was looking at an old branch. Please see new comment, thanks!
Oh, sorry - thats our old
connectorconfig. Let me fetch the new one. Apologies.Sure thing. Here is my resource definition:
And the
curlresponse: