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: element │ "a5-d-ds-x" has vanished. #314
Describe the bug
Two of my DDB tables fail with "element has vanished". Can confirm the tables exist (they are empty but so are others).
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: element
│ "a5-d-ds-x" has vanished.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ 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: element
│ "a5-w-d-s-ltnzt-x" has vanished.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Expect two tables to add (these worked in a previous version of TF provider), no vanished error.
Logs & Output
$ 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)
~ schemas = {
~ "dynamodb_raw" = {
~ tables = {
~ "a5-a-a-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-c-r-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-d-a-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-d-cs-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
+ "a5-d-ds-x" = {
+ enabled = true
+ sync_mode = (known after apply)
},
~ "a5-d-hs-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-d-ns-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-g-d-dl-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-i-od-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-i-ods-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-l-a-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-l-l-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-n-nv3-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
+ "a5-wds-ltnzt-x" = {
+ enabled = true
+ sync_mode = (known after apply)
},
~ "a5-wds-lttst-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-wds-tst-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-wds-ts-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
~ "a5-wds-wa-x" = {
+ sync_mode = (known after apply)
# (1 unchanged attribute hidden)
},
}
# (1 unchanged attribute hidden)
},
}
# (2 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Changes to Outputs:
~ object_test = {
+ a5-d-ds-x = {
+ enabled = true
}
- a5-n-ns-x = {
- enabled = true
}
- a5-n-rt-x = {
- enabled = true
}
+ a5-wds-ltnzt-x = {
+ enabled = true
}
# (16 unchanged attributes hidden)
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: .terraform/a5.out
To perform exactly these actions, run the following command to apply:
terraform apply ".terraform/a5.out"
(.venv) ~ $ 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: element
│ "a5-d-ds-x" has vanished.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ 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: element
│ "a5-wds-ltnzt-x" has vanished.
│
│ 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
I've now also seen "has appeared" and I am wondering if this a comment about the state file, so I've tried to rm the whole schema from the state file to start fresh.
Describe the bug Two of my DDB tables fail with "element has vanished". Can confirm the tables exist (they are empty but so are others).
To Reproduce
Expected behavior
Expect two tables to add (these worked in a previous version of TF provider), no vanished error.
Logs & Output
Plugin version: v1.1.24
Additional context
I've now also seen "has appeared" and I am wondering if this a comment about the state file, so I've tried to rm the whole schema from the state file to start fresh.