From aa2d9d850504b45d2854829cc9410ddd00ca47f5 Mon Sep 17 00:00:00 2001 From: "alvarez.mauriciotm@gmail.com" Date: Thu, 17 Apr 2025 14:14:16 -0700 Subject: [PATCH] add writeOnly in updateFuncSet check --- helper/schema/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/schema/resource.go b/helper/schema/resource.go index c206df6c15..0bf7f9597d 100644 --- a/helper/schema/resource.go +++ b/helper/schema/resource.go @@ -1216,7 +1216,7 @@ func (r *Resource) InternalValidate(topSchemaMap schemaMap, writable bool) error if !r.updateFuncSet() { nonForceNewAttrs := make([]string, 0) for k, v := range schema { - if !v.ForceNew && !v.Computed { + if !v.ForceNew && !v.Computed && !v.WriteOnly { nonForceNewAttrs = append(nonForceNewAttrs, k) } }