Skip to content

Commit edfd584

Browse files
Merge pull request #34 from pluralsh/mjg/eng-2136-cluster-tag-changes-seem-to-force-replacement-in-terraform
Don't make tag changes require a replacement of the cluster
2 parents d702a9d + ac7021d commit edfd584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/resource/cluster_schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (r *clusterResource) schema() schema.Schema {
221221
MarkdownDescription: "Key-value tags used to filter clusters.",
222222
Optional: true,
223223
ElementType: types.StringType,
224-
PlanModifiers: []planmodifier.Map{mapplanmodifier.RequiresReplace()},
224+
PlanModifiers: []planmodifier.Map{mapplanmodifier.UseStateForUnknown()},
225225
},
226226
"bindings": schema.SingleNestedAttribute{
227227
Description: "Read and write policies of this cluster.",
@@ -265,7 +265,7 @@ func (r *clusterResource) schema() schema.Schema {
265265
},
266266
},
267267
},
268-
PlanModifiers: []planmodifier.Object{objectplanmodifier.RequiresReplace()},
268+
PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()},
269269
},
270270
},
271271
}

0 commit comments

Comments
 (0)