<@U04SE163WC8> Is there anyway that we could creat...
# help-api-cli-orchestration
n
@kapa.ai Is there anyway that we could create a custom connector with Docker Image using Terraform? Assuming we already have necessary image available in the current docker environment
u
Based on the information provided in the extracts, there is no direct mention of using Terraform to create a custom connector with a Docker image in Airbyte. However, the process of creating a custom connector involves several steps that could potentially be automated using infrastructure as code tools like Terraform, given that you have the necessary Docker image available. Here are the general steps to create a custom connector in Airbyte: 1. Build and tag your connector image locally. For example:
docker build . -t my-custom-connectors/source-custom:0.1.0
[source](https://docs.airbyte.com/operator-guides/using-custom-connectors) 2. Push your connector image to your private Docker registry using
docker push <image-name>:<tag>
[source](https://docs.airbyte.com/operator-guides/using-custom-connectors) 3. Get the Docker coordinate of your custom connector from Dockerhub or any image repository that Airbyte can access. [source](https://docs.airbyte.com/integrations/custom-connectors) 4. In the Airbyte UI, go to the Admin section, and click on
[+ New connector]
on the top right. You will be asked for the display name, the Docker repository name (repository + image name), tag, and documentation URL for that connector. [source](https://docs.airbyte.com/integrations/custom-connectors) While Terraform can be used to manage resources like Docker images and registries, the process of adding the connector in the Airbyte UI might not be directly manageable via Terraform. You might need to use the Airbyte's API for that, which is accessible from the UI [source](https://docs.airbyte.com/integrations/custom-connectors). Please note that this is a general guidance and the actual implementation might vary based on your specific use case and environment.
n
@kapa.ai Then how to use Airbyte's API to create a custom connector? Assuming we already have necessary image in the current Docker environment
u
A message from kapa.ai
u
Based on the information provided in the extracts, there isn't a direct mention or example of using Airbyte's API to create a custom connector. The extracts mention that once a custom connector is added, it can be used from the UI and Airbyte's API [source](https://docs.airbyte.com/integrations/custom-connectors), but it doesn't provide specific details on how to do this via the API. However, you can generally interact with Airbyte's API using HTTP requests. You would need to refer to Airbyte's API documentation for the specific endpoints and request formats to create a custom connector. If you're looking to automate the process of creating a custom connector, you might consider using a script or a tool that can make HTTP requests to interact with the Airbyte API. Please refer to the official Airbyte documentation or reach out to the Airbyte community for more specific guidance on using the API to create a custom connector.