terratest icon indicating copy to clipboard operation
terratest copied to clipboard

MigrateState not working with Workspace

Open daniel-butler-irl opened this issue 3 years ago • 1 comments

When using MigrateState Terraform option with a Workspace(terraform.WorkspaceSelectOrNew) I see the following failure: Error: Error asking for state migration action: Error asking for confirmation: EOF

Presumably, there are extra prompts when using workspaces...

If I run the same tests without the workspace it works as expected.

daniel-butler-irl avatar Jul 20 '21 14:07 daniel-butler-irl

Hm, yea, looks like a bug. We probably need some sort of -input=false or other "non-interactive" style flag here. PRs with a fix are very welcome.

brikis98 avatar Aug 03 '21 16:08 brikis98