From 757d332d42cedd4374a95a42990807ceded68514 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 11 May 2020 13:41:33 -0400 Subject: [PATCH] Set network_tier to ForceNew. (#2054) Signed-off-by: Modular Magician --- .changelog/3493.txt | 4 ++++ google-beta/resource_compute_instance_template.go | 1 + 2 files changed, 5 insertions(+) create mode 100644 .changelog/3493.txt diff --git a/.changelog/3493.txt b/.changelog/3493.txt new file mode 100644 index 0000000000..c72f7012c6 --- /dev/null +++ b/.changelog/3493.txt @@ -0,0 +1,4 @@ +```release-note:bug +compute: Fixed permadiff in `google_compute_instance_template`'s `network_tier`. + +``` diff --git a/google-beta/resource_compute_instance_template.go b/google-beta/resource_compute_instance_template.go index 3d860001cf..2d74a7181c 100644 --- a/google-beta/resource_compute_instance_template.go +++ b/google-beta/resource_compute_instance_template.go @@ -294,6 +294,7 @@ func resourceComputeInstanceTemplate() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, + ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"PREMIUM", "STANDARD"}, false), }, // Possibly configurable- this was added so we don't break if it's inadvertently set