Hi all, I'm searching for a scriptable way to upg...
# replication-troubleshooting
f
Hi all, I'm searching for a scriptable way to upgrade source- or destination definition versions of connectors, i.e. their docker image version, like say 100ms from 0.0.13 to 0.0.14 on Airbyte Core, i.e. the free self-hosted option. I'd be creating connectors via Terraform, yet upgrades seem not supported by the Airbyte Terraform provider. All attempts to use e.g. this Airbyte API endpoint https://reference.airbyte.com/reference/updatesourcedefinition did not succeed. A Forbidden was returned by the API while all other requests worked fine and the user is an organization_admin and instance_admin according to the permissions API endpoint. I've tried with Airbyte 2.0.1 installed locally via abctl as well as with Airbyte 2.0.0. installed via Helm chart 2.0.18 locally and to EKS. By inspecting the Webgui when upgrading a source connector, I found the Airbyte Configuration API https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#overview. I was able to upgrade a connector with it in a curl command to this endpoint with the same token as retrieved via the main Airbyte API. Yet as the API documentation welcome page says that the API is not guaranteed to be supported long term and may have breaking changes, I'm hesitant to use it. From my search around this upgrade ability I found mentions, that the main Airbyte API is meant to be used for custom connector definitions only, not Airbyte native ones, hence the forbidden. If the Airbyte Configuration API may however be subject to change, I'd like to ask if anyone knows what would be the correct / best way to upgrade connector versions via code and not via the GUI on a self-hosted Airbyte Core. Many thanks for any inputs!
k
New message text here
🙏 1
👍 1
f
Great, thanks, that helps and clarifies! As a feedback and recommendation for improvement, I would like to suggest to add a disclaimer to the official Airbyte API documentation of endpoints related to the connector definitions, like the mentioned https://reference.airbyte.com/reference/updatesourcedefinition, saying that it is only working for custom connectors and will not function with the native Airbyte connectors. Also, having these API endpoints return a short message hinting this, rather than only a Forbidden, would help users find out quicker. Many thanks again!