fivetran / terraform-provider-fivetran

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

Missing database for azure_cosmos_for_mongo #302

Closed ms32035 closed 2 months ago

ms32035 commented 2 months ago

Describe the bug Looks like the database field is missing in the mongo confi as we're getting

When applying changes to module.hub.fivetran_connector.asset_hub, provider "module.cru_asset_hub.provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .config.database: was cty.StringVal("Hub"), but now null.

This is a bug in the provider, which should be reported in the provider's own issue tracker.

To Reproduce

resource "fivetran_connector" "hub" {
  group_id = fivetran_destination.hub.group_id
  service  = "azure_cosmos_for_mongo"

  destination_schema {
    prefix = "hub"
  }

  config {
    hosts           = [var.hub_host]
    user            = var.hub_user
    password        = var.hub_password
    connection_type = "Directly"
    packing_mode    = "UseUnpackedModeOnly"
    database        = "Hub"
  }
}

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

Logs & Output

Plugin version: 1.22

beevital commented 2 months ago

There's no such field in API payload: https://fivetran.com/docs/rest-api/connectors/config#cosmosdbformongodb There's no option to directly specify database on setup form. Please refer to our setup guide Azure CosmosDB for Mongo for details.