Closed beevital closed 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"
}
}
Fix for https://github.com/fivetran/terraform-provider-fivetran/issues/263
To avoid such issues we introduced new fields in
resource_connector_schema_config
:schemas
- map ["schema_name"] -> schemaschemas_json
- field accepts raw json schema settings. Example:To pass the value it's better to use
file("path-to-schemas.json")
.