From dbf04721d256b92f889af41571732d09c507c481 Mon Sep 17 00:00:00 2001 From: Matt Morrison Date: Fri, 29 Jul 2016 09:12:39 +1200 Subject: [PATCH] Tainted resource not recreated if ignore_changes used on any attributes. --- terraform/eval_diff.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/eval_diff.go b/terraform/eval_diff.go index 4a5027d600b9..bf1d6b5e7969 100644 --- a/terraform/eval_diff.go +++ b/terraform/eval_diff.go @@ -185,6 +185,11 @@ func (n *EvalDiff) processIgnoreChanges(diff *InstanceDiff) error { return nil } + // If the resource has been tainted we shouldn't alter the Diff + if diff.DestroyTainted { + return nil + } + ignorableAttrKeys := make(map[string]bool) for _, ignoredKey := range ignoreChanges { for k := range diff.Attributes {