kitchen-terraform: kitchen-terraform destroy empty tf workspace - error

Hello from time to time I run into issues which I only can clear by removing .kitchen folder. Cleaning terraform temporary files does not fix it therefore I don’t think it’s related to terraform.

$$$$$$ Running command `terraform workspace select kitchen-terraform-default-test` in directory /home/myfolder/test/fixtures/default
       
       Workspace "kitchen-terraform-default-test" doesn't exist.
       
       You can create this workspace with the "new" subcommand.
$$$$$$ Running command `terraform workspace new kitchen-terraform-default-test` in directory /home/myfolder/test/fixtures/default
       Created and switched to workspace "kitchen-terraform-default-test"!
       
       You're now on a new, empty workspace. Workspaces isolate their state,
       so if you run "terraform plan" Terraform will not see any existing state
       for this configuration.
$$$$$$ Running command `terraform destroy -auto-approve -lock=true -lock-timeout=0s -input=false  -parallelism=10 -refresh=true  ` in directory /home/myfolder/test/fixtures/default
       data.aws_ami.test: Refreshing state...
       
       Error: Error applying plan:
       
       2 error(s) occurred:



$ bundle exec kitchen version
Test Kitchen version 1.23.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Finally I’ve managed to build something reproducible. https://github.com/tbugfinder/kttf289