From fea0e7f77ac2bfbd29c2a8832caacdd84c28ef87 Mon Sep 17 00:00:00 2001 From: Ryan VanGundy Date: Tue, 13 May 2025 12:56:26 -0400 Subject: [PATCH] Don't ask for user input when migrating state --- .gitignore | 1 + pkg/stack/windsor_stack.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3e675c3c7..ec0e227f2 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ contexts/**/.kube/ contexts/**/.talos/ contexts/**/.aws/ contexts/**/.omni/ +contexts/**/.azure/ diff --git a/pkg/stack/windsor_stack.go b/pkg/stack/windsor_stack.go index 727439910..13e1d15bb 100644 --- a/pkg/stack/windsor_stack.go +++ b/pkg/stack/windsor_stack.go @@ -87,7 +87,7 @@ func (s *WindsorStack) Up() error { } // Execute 'terraform init' in the dirPath - _, err = s.shell.ExecProgress(fmt.Sprintf("🌎 Initializing Terraform in %s", component.Path), "terraform", "init", "-migrate-state", "-upgrade") + _, err = s.shell.ExecProgress(fmt.Sprintf("🌎 Initializing Terraform in %s", component.Path), "terraform", "init", "-migrate-state", "-upgrade", "-force-copy") if err != nil { return fmt.Errorf("error initializing Terraform in %s: %w", component.FullPath, err) }