hello, I have a question for you :slightly_smiling...
# ask-ai
j
hello, I have a question for you 🙂 I use terraform for developing my source, destination, connection... for versioning them into a repository. How can I do the same for custom connector (with the builder) for versioning ? thanks !
k
Hello! Great question. If you’re using the Airbyte Connector Builder to create custom connectors and want to version them (similar to how you version sources, destinations, and connections with Terraform), here’s what you can do: ### Versioning Custom Connectors Built with Connector Builder 1. Export the YAML Manifest: The Connector Builder allows you to export your connector as a YAML manifest. This manifest contains the full configuration of your connector, including global configuration, streams, and user inputs. You can export this YAML file at any time from the Builder UI and store it in your version control system (e.g., Git), just like you do with your Terraform code. This way, you can track changes, roll back, and collaborate with others on your connector’s configuration [[Connector Builder Overview](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/overview)]. 2. Contribute to Marketplace (Optional): If you want to share your connector with the wider Airbyte community, you can use the Builder’s “Contribute to Marketplace” feature, which creates a pull request to Airbyte’s GitHub repository. This is another way to have your connector versioned and reviewed, but it’s optional if you only want to use it internally [[Contributing the connector](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/overview#contributing-the-connector)]. 3. Terraform Support for Custom Connectors: Airbyte’s Terraform provider supports managing custom connectors using YAML manifests. You can use the API or Terraform to create and update custom connectors from these YAML files. This means you can store your YAML manifests in your repository and use Terraform to deploy or update them in your Airbyte instance, achieving the same versioning and infrastructure-as-code workflow as with other Airbyte resources [[Release Notes v1.6](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform)]. Summary: - Export your Builder connector as a YAML manifest and version it in your repository. - Use Terraform or the Airbyte API to manage and deploy these YAML-based custom connectors, just like other Airbyte resources. Let me know if you need an example of how to use the YAML manifest with Terraform!
j
"*Terraform Support for Custom Connectors" can you show me an example ? @kapa.ai*
k
A message from kapa.ai
Certainly! As of Airbyte v1.6, you can use the Airbyte Terraform provider to create and update custom connectors using a Connector Builder YAML manifest. The process involves using new Terraform resources that interact with Airbyte’s API endpoints for declarative (YAML-based) source definitions. However, the knowledge sources do not provide a full, concrete Terraform code example for managing a custom connector with a YAML manifest. They do confirm that this is supported and list the relevant API endpoints and Terraform documentation for further details. Here’s what is explicitly mentioned: - You can use Terraform to create and update custom connectors using a Connector Builder YAML manifest. - The relevant API endpoints are available for managing YAML source definitions (create, update, delete, etc.). - For more details and up-to-date examples, you are directed to the [Terraform reference docs](https://registry.terraform.io/providers/airbytehq/airbyte/latest/docs) [[Release Notes v1.6](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform)]. Summary: You can version your custom connector YAML in your repository and use Terraform to deploy it, but the knowledge sources do not provide a direct code example. For implementation details, please refer to the official [Terraform provider documentation](https://registry.terraform.io/providers/airbytehq/airbyte/latest/docs). If you need further guidance, let me know!
j
no possibility to deploy automatically this YAML into a repository ? @kapa.ai
k
A message from kapa.ai
Based on the available knowledge sources, there is no explicit documentation or example showing a fully automated way to deploy a Connector Builder YAML manifest directly into an Airbyte instance from a repository (e.g., via CI/CD) without manual steps. However, the documentation confirms that you can use the Airbyte API and Terraform provider to create and update custom connectors using a YAML manifest. This means, in principle, you can automate deployment by integrating these tools into your CI/CD pipeline, but the exact workflow or example for doing so is not provided in the sources. You are encouraged to refer to the [Terraform provider documentation](https://registry.terraform.io/providers/airbytehq/airbyte/latest/docs) for more details on how to use these resources programmatically [[Release Notes v1.6](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform)]. In summary: - Automated deployment is possible in theory using the API or Terraform, but the knowledge sources do not provide a ready-made, step-by-step example or workflow for this scenario. - You will need to implement the automation yourself using the available API endpoints or Terraform resources. If you need to version control the YAML itself, you can store it in your repository. For automated deployment, you would need to set up your own CI/CD process to apply the YAML using the Airbyte API or Terraform, as described above.