Trying to get the schema to exist and be enabled, with BLOCK_ALL, but have no tables in it yet. As a method of trying to workaround bugs logged yesterday.
│ When applying changes to fivetran_connector_schema_config.dynamodb_schema, provider "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .schemas["dynamodb_raw"].tables: was
│ cty.MapValEmpty(cty.Object(map[string]cty.Type{"columns":cty.Map(cty.Object(map[string]cty.Type{"enabled":cty.Bool, "hashed":cty.Bool})), "enabled":cty.Bool, "sync_mode":cty.String})), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
tf-fivetran-schemas $ AWS_PROFILE="dbf" terraform plan -var-file="./$ENVIROMENT_LONG_NAME/$CDK_PREFIX.tfvars" -out=.terraform/$CDK_PREFIX.out
....
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
fivetran_connector_schema_config.dynamodb_schema will be updated in-place
~ resource "fivetran_connector_schema_config" "dynamodb_schema" {
~ id = "xxx" -> (known after apply)
To perform exactly these actions, run the following command to apply:
terraform apply ".terraform/ann5.out"
(.venv) ~/code/data/data-infra/tf-fivetran-schemas $ AWS_PROFILE="dbf" terraform apply .terraform/$CDK_PREFIX.out
fivetran_connector_schema_config.dynamodb_schema: Modifying... [id=xxx]
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to fivetran_connector_schema_config.dynamodb_schema, provider "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .schemas["dynamodb_raw"].tables: was
│ cty.MapValEmpty(cty.Object(map[string]cty.Type{"columns":cty.Map(cty.Object(map[string]cty.Type{"enabled":cty.Bool, "hashed":cty.Bool})), "enabled":cty.Bool, "sync_mode":cty.String})), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
**Plugin version:**
v1.1.24
**Additional context**
Trying to work around issues reported yesterday / clean TF state file, rm the schema from the state file, remove the tables by hand from the console, trying to get to clean state.
Describe the bug
Trying to get the schema to exist and be enabled, with BLOCK_ALL, but have no tables in it yet. As a method of trying to workaround bugs logged yesterday.
│ When applying changes to fivetran_connector_schema_config.dynamodb_schema, provider "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .schemas["dynamodb_raw"].tables: was │ cty.MapValEmpty(cty.Object(map[string]cty.Type{"columns":cty.Map(cty.Object(map[string]cty.Type{"enabled":cty.Bool, "hashed":cty.Bool})), "enabled":cty.Bool, "sync_mode":cty.String})), but now null. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker.
To Reproduce
Expected behavior not to fail.
schema exists and is enabled, but no tables selected
equivalent to
tf-fivetran-schemas $ AWS_PROFILE="dbf" terraform plan -var-file="./$ENVIROMENT_LONG_NAME/$CDK_PREFIX.tfvars" -out=.terraform/$CDK_PREFIX.out
....
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place
Terraform will perform the following actions:
fivetran_connector_schema_config.dynamodb_schema will be updated in-place
~ resource "fivetran_connector_schema_config" "dynamodb_schema" { ~ id = "xxx" -> (known after apply)
(2 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: .terraform/ann5.out
To perform exactly these actions, run the following command to apply: terraform apply ".terraform/ann5.out" (.venv) ~/code/data/data-infra/tf-fivetran-schemas $ AWS_PROFILE="dbf" terraform apply .terraform/$CDK_PREFIX.out
fivetran_connector_schema_config.dynamodb_schema: Modifying... [id=xxx] ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to fivetran_connector_schema_config.dynamodb_schema, provider "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .schemas["dynamodb_raw"].tables: was │ cty.MapValEmpty(cty.Object(map[string]cty.Type{"columns":cty.Map(cty.Object(map[string]cty.Type{"enabled":cty.Bool, "hashed":cty.Bool})), "enabled":cty.Bool, "sync_mode":cty.String})), but now null. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker.