airbytehq / terraform-provider-airbyte

Terraform Provider for Airbyte API
https://api.airbyte.com/
MIT License
39 stars 16 forks source link

source zendesk_support credentials field issue #46

Open KimPlv opened 8 months ago

KimPlv commented 8 months ago

I'm trying to create a source with Zendesk Support. I copy paste the doc,

resource "airbyte_source_zendesk_support" "my_source_zendesksupport" {
  configuration = {
    credentials = {
      source_zendesk_support_authentication_api_token = {
        credentials = "api_token"
        api_token   = "my_api_oken"
        email       = "my_email@adress.com"
      }
    }
    ignore_pagination = true
    source_type       = "zendesk-support"
    start_date        = "2020-10-15T00:00:00Z"
    subdomain         = "my_domain"
  }
  name         = "TEST ZENDESK"
  workspace_id = var.workspace_id
}

I got an issue :

│ {"configuration":{"credentials":null,"ignore_pagination":true,"sourceType":"zendesk-support","start_date":"2020-10-15T00:00:00Z","subdomain":"my_domain"},"name":"TEST
│ ZENDESK","workspaceId":"6482565d-h56s-4927-aaf2-c613bac8aev4"}
│ 
│ **Response**:
│ HTTP/1.1 422 Unprocessable Entity
│ Content-Length: 376
│ Connection: keep-alive
│ Content-Type: application/problem+json
│ Date: Fri, 27 Oct 2023 10:17:47 GMT
│ Server: nginx/1.25.2
│ 
│ {"type":"https://reference.airbyte.com/reference/errors#unprocessable-entity","title":"unprocessable-entity","status":422,"detail":"The provided
│ configuration does not fulfill the specification. Errors: json schema validation failed when comparing the data to the json schema. \nErrors: $.credentials:
│ null found, object expected, $.credentials: null found, object expected "}

When I try to change source_zendesk_support_authentication_api_token --> source_zendesk_support_update_authentication_api_token, it works, but in the UI I have an empty value for the Authentification

ThomasCouz commented 7 months ago

Hey, I encounter the same issue, I'm using airbyte 0.50.34 and terraform provider 0.3.4 This issue prevents from creating zendesk source from terraform unfortunately