<@U04S8PLJWMT> In Airbyte OSS - How to create Sour...
# ask-ai
v
@kapa.ai In Airbyte OSS - How to create Source , Destination and Conenction using script? Are the creation of source/destination & connections , only needs to be done through UI manually? Or Do we have the option to configure Source/Destination at the deployment in HelmChart?
k
You do not need to create Sources, Destinations, and Connections only through the Airbyte UI. Airbyte OSS supports multiple ways to automate and script the creation of these resources: ### 1. Airbyte API You can use the Airbyte API to programmatically create sources, destinations, and connections. For example, to create a connection, you can use a script that sends a POST request to the Airbyte API endpoint with the required parameters (such as sourceId, destinationId, etc.):
Copy code
csharp var client = new RestClient("https://api.airbyte.com/v1/connections"); var request = new RestRequest(); request.AddHeader("accept", "application/json"); request.AddHeader("content-type", "application/json"); request.AddHeader("Authorization", "Bearer {YourApiKey}"); request.AddParameter("application/json", "{\"sourceId\":\"YourSourceID\",\"destinationId\":\"YourDestinationID\",\"name\":\"AzPostgres-AzBlob2\",\"schedule\":{\"scheduleType\":\"manual\"},\"dataResidency\":\"auto\",\"namespaceDefinition\":\"destination\",\"namespaceFormat\":null,\"nonBreakingSchemaUpdatesBehavior\":\"ignore\",\"configurations\":{\"streams\":[{\"syncMode\":\"full_refresh_overwrite\",\"name\":\"YourTableName\"}]}}", ParameterType.RequestBody); var response = client.ExecutePost(request);
You can retrieve the IDs for sources and destinations from the Airbyte UI or API responses. This approach works for Airbyte OSS as well as Airbyte Cloud, as the API is available for both deployments [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api). ### 2. Terraform Airbyte provides a Terraform provider, allowing you to define sources, destinations, and connections as code. This is a popular way to automate Airbyte configuration in CI/CD pipelines or infrastructure-as-code workflows. You define your connectors and connections in
.tf
files and apply them using standard Terraform commands:
Copy code
bash terraform init terraform plan terraform apply
This will create the resources in your Airbyte instance automatically. You can find more details and examples in Airbyte's documentation and tutorials [End-to-end RAG using Airbyte Cloud, S3 and Pinecone](https://airbyte.com/tutorials/end-to-end-rag-using-airbyte-cloud-s3-and-pinecone), [Database snapshot to S3 then to warehouse](https://airbyte.com/tutorials/database-snapshot-to-s3-then-to-warehouse). ### 3. Octavia CLI For version-controlling Airbyte configurations, you can use the Octavia CLI to generate and apply configuration files for sources, destinations, and connections. This is another way to automate setup without using the UI [Version control Airbyte configurations with Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations). ### 4. Helm Chart Deployment The knowledge sources do not mention a built-in way to configure sources, destinations, or connections directly via Helm chart values at deployment time. Helm is used to deploy the Airbyte platform itself, but the actual connector and connection configurations are typically managed post-deployment via the UI, API, Terraform, or Octavia CLI. --- Summary: You can automate the creation of sources, destinations, and connections in Airbyte OSS using the API, Terraform, or Octavia CLI. There is no evidence in the provided sources that Helm chart values can be used to pre-configure connectors or connections at deployment time. The UI is just one of several options for managing these resources.