mitchellh / vagrant-aws

Use Vagrant to manage your EC2 and VPC instances.
MIT License
2.61k stars 572 forks source link

Execute provisioner cleanup before terminating the instance #452

Closed larribas closed 8 years ago

larribas commented 8 years ago

Problem: On a setup with chef-client as a provisioner, I had trouble vagrant destroying my machines, since chef-client tries to execute knife over ssh, see this, but the instance is already terminated. So the result was an SSHNotReady error and an exit status of 1.

Solution: ProvisionerCleanup is executed just before the instance is terminated, which, as I understood, is the intended behavior for vagrant, currently