Skip to content

planetscale_database with allow_data_branching = true leads to inconsistent result after apply #135

@kota65535

Description

@kota65535

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions