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.`, },