fivetran / terraform-provider-fivetran

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

Google Drive Connector Bug #363

Closed ltw94 closed 1 month ago

ltw94 commented 2 months ago

Describe the bug The connector is complaining about the file_type argument provided.

I'm using version 1.2.9 and the config I have for the google_drive connector is:

config = {
    sync_mode = "Magic Folder"
    folder_id = "https://drive.google.com/drive/u/0/folders/{my_folder_id}"
    file_type = "spreadsheet"
  }

The output I get is:

When applying changes to
│ module.google_drive_connector.fivetran_connector.connector, provider
│ "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an
│ unexpected new value: .config.file_type: was cty.StringVal("spreadsheet"),
│ but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

To Reproduce Provide an example .tf configuration

Expected behavior A clear and concise description of what you expected to happen.

Logs & Output Provide terraform CLI output on plan | apply. If it is possible, please, refer to this guide to enable debug output.

Plugin version: Please specify Fivetran Terraform Provider version you are using.

Additional context Add any other context about the problem here.

ltw94 commented 1 month ago

HI is there any update on this?

fivetran-jovanmanojlovic commented 1 month ago

file_type is not expected for sync_mode = "Magic Folder".

So the fix is to remove it from the config.

fivetran-aleksandrboldyrev commented 1 month ago

Regarding API docs file_type field unexpected here. It needs to be removed from the configuration