Skip to content

Commit ff7fc38

Browse files
committed
Stopped using state for unknown Cluster.account_id values
This value can actually change when swapping a cluster between basic and standard plans, which causes an error with this plan modifier. This fixes some failing acceptance tests that act on serverless clusters.
1 parent 84b59c5 commit ff7fc38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Stopped using state for unknown `account_id` in the `Cluster` resource because
13+
it can change when swapping between basic and standard plans.
14+
1215
- Updated egress private endpoint resource to reflect changes to the
1316
underlying GET API.
1417

internal/provider/cluster_resource.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ func (r *clusterResource) Schema(
141141
MarkdownDescription: "The full version string of CockroachDB running on the cluster. (e.g. v25.0.1)",
142142
},
143143
"account_id": schema.StringAttribute{
144-
Computed: true,
145-
PlanModifiers: []planmodifier.String{
146-
stringplanmodifier.UseStateForUnknown(),
147-
},
144+
Computed: true,
148145
Description: "The cloud provider account ID that hosts the cluster. Needed for CMEK and other advanced features.",
149146
},
150147
"customer_cloud_account": schema.SingleNestedAttribute{

0 commit comments

Comments
 (0)