<@U04S8PLJWMT> Does the Airbyte Terraform Provider...
# ask-ai
j
@kapa.ai Does the Airbyte Terraform Provider not support pinning versions of source or destination definitions?
đź‘€ 1
k
The Airbyte Terraform Provider does not natively support pinning specific versions of source or destination definitions directly within the provider's resource configuration. Instead, the provider typically references connector definitions by their definition IDs, and the version management is handled within Airbyte itself. There are some important considerations and workarounds: - If you use the standard (strongly typed) resources, you may encounter issues when the connector version in Airbyte changes, as the Terraform provider and the connector version can become mismatched, potentially causing breaking changes. This is a known limitation and risk when using strongly typed resources, as described in the documentation. The provider does not offer a built-in mechanism to pin a connector to a specific version from within Terraform itself; it relies on the definition present in your Airbyte instance at the time of resource creation or update [Strongly typed vs weakly typed](https://docs.airbyte.com/platform/1.7/terraform-documentation#typing). - For weakly typed (JSON) configurations using
airbyte_source_custom
or
airbyte_destination_custom
, you specify the
definition_id
for the connector, but again, the version associated with that definition is managed in Airbyte, not in Terraform. If you want to use a specific version, you must ensure that the definition ID you reference corresponds to the desired version in your Airbyte instance. Some users have reported that to use a newer connector version, they had to manually create the destination in Airbyte, copy the new definition ID, and then use it in Terraform—indicating that version pinning is not directly supported in the provider itself [Github Issue: Clickhouse connector V2 triggers 422 error when used by terraform](https://github.com/airbytehq/airbyte/issues/63353). - Airbyte is working on improvements, such as publishing Terraform modules for each connector version, which may make version pinning more explicit in the future. However, as of now, this is not a built-in feature of the main Terraform provider [Github Issue: Clickhouse connector V2 triggers 422 error when used by terraform](https://github.com/airbytehq/airbyte/issues/63353). In summary, the Airbyte Terraform Provider does not currently support pinning connector versions directly. You must manage connector versions within Airbyte and reference the appropriate definition IDs in your Terraform configuration.
i
@kapa.ai what about the
airbyte_source_definition
and
airbyte_destination_definition
resources?
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain information about the
airbyte_source_definition
or
airbyte_destination_definition
resources in the context of the Airbyte Terraform Provider. There is no documentation or example in the sources above that describes how these resources work or whether they support pinning connector versions. If you need details on these specific resources, I recommend consulting the official Airbyte Terraform Provider documentation or the Airbyte API reference, as the current knowledge sources do not cover this topic.