terraform-provider-airbyte icon indicating copy to clipboard operation
terraform-provider-airbyte copied to clipboard

changed primary key to non-computed

Open bmschow opened this issue 9 months ago • 3 comments

This PR obviously changes the code generated by Speakeasy, so someone will have to modify the speakeasy config correctly to make this change (I do not have access to speakeasy to confirm that any changes will work). However, this fixes #91

Recreating the issue: Create a postgres source that reads from a table that has a defined primary key and use "sync_mode": "incremental_deduped_history" - do not supply a primary key here. This should be able to be applied. However, if you make an changes to this resource, terraform will read and try to send the primary key that was supplied by the database causing the API error primary key for stream: <stream> already pre-defined. Please do NOT include a primary key configuration for this stream and will not be able to apply the change.

By changing primary_key in streams to non-computed, we avoid this error.

bmschow avatar Apr 26 '24 20:04 bmschow

Any update on getting this resolved one way or another? We are running into a similar issue and it is a blocker for us to use the terraform provider for AirByte.

jduckwo avatar Jun 27 '24 23:06 jduckwo

We facing the same issue, and it's very difficult to use the provider when we want to update a existing connection.

Do you have any news ?

abusutil avatar Aug 05 '24 11:08 abusutil

@abusutil We just decided to pivot and use the API since it gave us more control.

jduckwo avatar Aug 05 '24 13:08 jduckwo