From bdda77dc662ebdce235b87825bb2ffb26ab3c394 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 15 Aug 2022 08:53:28 -0700 Subject: [PATCH] GCP compute instance template fields are ForceNew (#6404) (#4590) Signed-off-by: Modular Magician Signed-off-by: Modular Magician --- .changelog/6404.txt | 3 +++ google-beta/resource_compute_instance_template.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/6404.txt diff --git a/.changelog/6404.txt b/.changelog/6404.txt new file mode 100644 index 0000000000..d1d4664600 --- /dev/null +++ b/.changelog/6404.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: Fixed permadiff for `instance_termination_action` in `google_compute_instance_template` +``` diff --git a/google-beta/resource_compute_instance_template.go b/google-beta/resource_compute_instance_template.go index 9cc5c2e023..013e2491a0 100644 --- a/google-beta/resource_compute_instance_template.go +++ b/google-beta/resource_compute_instance_template.go @@ -539,6 +539,7 @@ func resourceComputeInstanceTemplate() *schema.Resource { "instance_termination_action": { Type: schema.TypeString, Optional: true, + ForceNew: true, AtLeastOneOf: schedulingInstTemplateKeys, Description: `Specifies the action GCE should take when SPOT VM is preempted.`, },