jckuester / awsls

A list command for AWS resources
MIT License
830 stars 53 forks source link

Fix: Close provider properly during abort #26

Closed jckuester closed 3 years ago

jckuester commented 3 years ago

When hitting CTRL-C or when awsls terminated due to some errors, providers weren't properly closed. This led to the error

failed to launch provider (): fork/exec : no such file or directory

when running awsls the next time. Plugin processes of the Terraform AWS provider kept running in the background:

lsof | grep terraform-provider                                     
terraform 15200                    jan  txt       REG              253,1 167579648   13903492 /home/jan/.awsls/terraform-provider-aws_v3.16.0_x5 (deleted)