fivetran / terraform-provider-fivetran

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

Make resource_connector_schema_config usable again! #279

Closed beevital closed 3 months ago

beevital commented 3 months ago

Fix for https://github.com/fivetran/terraform-provider-fivetran/issues/263

To avoid such issues we introduced new fields in resource_connector_schema_config:

jonathan-mothership commented 3 months ago

On 1.1.17, looping over 10 connections and applying the following, we get "inconsistent results" and failed apply. Hoping this PR will help!

resource "fivetran_connector_schema_config" "schema" {
  for_each               = local.fivetran_connection_configs
  connector_id           = fivetran_connector.postgres_cons[each.key].id
  schema_change_handling = "ALLOW_ALL"
  schema {
    name    = "pglogical"
    enabled = "false"
  }
  schema {
    name    = "migrations"
    enabled = "false"
  }
}