With the following resource:
resource "planetscale_database" "main" {
organization = "foo"
name = "bar"
cluster_size = "PS-10"
region = "ap-northeast"
allow_data_branching = true
}
When I run terraform apply, got the following error.
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to planetscale_database.main, provider "provider[\"registry.terraform.io/planetscale/planetscale\"]" produced an unexpected new value: .allow_data_branching: was cty.True, but now cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
This problem does not occur if once created with allow_data_branching = false and then change to true.