fivetran / terraform-provider-fivetran

Terraform Provider for Fivetran
https://fivetran.com
Apache License 2.0
41 stars 22 forks source link

SshTunnel Vs SSHTunnel #253

Closed mcwata7 closed 3 months ago

mcwata7 commented 5 months ago

Describe the bug fivetran_destination always requires update when using SSHTunnel (SshTunnel vs SSHTunnel). State file saves as SSHTunnel but the attributes enum is SshTunnel.

To Reproduce

resource "fivetran_destination" "this" {
...
  config {
    connection_type = "SSHTunnel"
...
  }
}

Expected behavior Either the state file should save as SshTunnel or enum should change to SSHTunnel.

beevital commented 5 months ago

Unfortunately for different destinations API side returns different values (for some "SshTunnel" and for others "SSHTunnel") I think we can handle it in special way. Thank you for reporting this, we will try to introduce some unified solution.

beevital commented 4 months ago

Hi @mcwata7! I can't find any mention of SSHTunnel in our public docs for API or in our latest terraform provider public docs. I've tested several different configs for various destinations with SshTunnel and everything works as expected. No drifting changes, state consistent with config. So I wasn't able to reproduce the issue.

Could you please specify what exact service caused the issue (destination service type)?