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

terraform: airbyte_source_postgres always return additionalProperties must be a map when apply

Open nazariyme opened this issue 1 year ago • 0 comments

Hey,

I try to create a new airbyte_source_postgres but get the error whenever I try to apply changes I have tried different values for ssl_mode but it's still there. My last attempt was

ssl_mode = {
      disable = {}
    }

And also, I tried it like that

ssl_mode = {
      prefer = {
        additional_properties = "{ \"see\": \"documentation\" }"
      }
    }

The error

│ Error: failure to invoke API
│ 
│   with airbyte_source_postgres.source_postgres_dbrod,
│   on sources.tf line 1, in resource "airbyte_source_postgres" "source_postgres_dbrod":
│    1: resource "airbyte_source_postgres" "source_postgres_dbrod" {
│ 
│ error serializing request body: json: error calling MarshalJSON for type
│ shared.SourcePostgres: json: error calling MarshalJSON for type
│ *shared.SourcePostgresSSLModes: json: error calling MarshalJSON for type
│ *shared.SourcePostgresDisable: additionalProperties must be a map

nazariyme avatar Feb 08 '24 13:02 nazariyme