From 4fc3bd0b791e0d6bc4c056c2362aba900afdcbaf Mon Sep 17 00:00:00 2001 From: Roman Dushko Date: Fri, 21 May 2021 14:58:59 +0200 Subject: [PATCH] fix: -force is deprecated, use -auto-approve to delete in tf15 --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 5ec1d72..e89e373 100644 --- a/plugin.go +++ b/plugin.go @@ -300,7 +300,7 @@ func tfDestroy(config Config) *exec.Cmd { if config.InitOptions.LockTimeout != "" { args = append(args, fmt.Sprintf("-lock-timeout=%s", config.InitOptions.LockTimeout)) } - args = append(args, "-force") + args = append(args, "-auto-approve") return exec.Command( "terraform", args...,