From e68327e76510864bc3ed70b4986a0ef2eb171002 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 19 Oct 2016 09:44:00 -0700 Subject: [PATCH] terraform: add config transformer to enable preventDestroy --- terraform/graph_builder_destroy_plan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/graph_builder_destroy_plan.go b/terraform/graph_builder_destroy_plan.go index 0473546912..a48c2bb92d 100644 --- a/terraform/graph_builder_destroy_plan.go +++ b/terraform/graph_builder_destroy_plan.go @@ -41,6 +41,9 @@ func (b *DestroyPlanGraphBuilder) Steps() []GraphTransformer { State: b.State, }, + // Attach the configuration to any resources + &AttachResourceConfigTransformer{Module: b.Module}, + // Single root &RootTransformer{}, }