From ede64dcfe76440b87a30ed9ef26bea149f378ed4 Mon Sep 17 00:00:00 2001 From: Scott Suarez Date: Wed, 24 Feb 2021 23:41:16 -0500 Subject: [PATCH] make max_age.0.days and max_age.0.duration ForceNew for bigtable_gc_policy (#4533) --- .../terraform/resources/resource_bigtable_gc_policy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mmv1/third_party/terraform/resources/resource_bigtable_gc_policy.go b/mmv1/third_party/terraform/resources/resource_bigtable_gc_policy.go index 9f6c9d3f404c..02a4f99cc540 100644 --- a/mmv1/third_party/terraform/resources/resource_bigtable_gc_policy.go +++ b/mmv1/third_party/terraform/resources/resource_bigtable_gc_policy.go @@ -64,6 +64,7 @@ func resourceBigtableGCPolicy() *schema.Resource { "days": { Type: schema.TypeInt, Optional: true, + ForceNew: true, Deprecated: "Deprecated in favor of duration", Description: `Number of days before applying GC policy.`, ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"}, @@ -71,6 +72,7 @@ func resourceBigtableGCPolicy() *schema.Resource { "duration": { Type: schema.TypeString, Optional: true, + ForceNew: true, Description: `Duration before applying GC policy`, ValidateFunc: validateDuration(), ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"}, @@ -89,6 +91,7 @@ func resourceBigtableGCPolicy() *schema.Resource { "number": { Type: schema.TypeInt, Required: true, + ForceNew: true, Description: `Number of version before applying the GC policy.`, }, },