Description
When creating a fully managed connector using the Confluent Terraform Provider, the following error could occur:
Error: error creating Connector "test_sqs_connector": error sending validation request: 404 Not Found
on test/main.tf line 13, in resource "confluent_connector" "source":
13: resource "confluent_connector" "source" {
Applies To
Confluent Terraform Provider
Cause
This error error sending validation request: 404 Not Found
could occur if the incorrect connector.class
value is passed in the Terraform resource confluent_connector, or if the connector.class
value used for Confluent Platform instead of a Confluent Cloud cluster.
confluent_connector
is a connector resource that enables managing connectors on Confluent Cloud, not on the Confluent Platform.
Confluent Cloud using for example the format "connector.class" = "SqsSource"
, whereas Confluent Platform using the format "connector.class"="io.confluent.connect.sqs.source.SqsSourceConnectorformat"
Resolution
- The
connector.class
value for the fully managed Amazon SQS Source connector should be SqsSource per the docs - Ensure to use the correct value "connector.class" = "SqsSource" for the fully managed Amazon SQS Source connector.