Using cloudca_volume attached to cloudca_instance, terraform destroy not working with following error when VM is running:
$ terraform destroy
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
cloudca_instance.tools_instance: Refreshing state... (ID: 17333242-a092-4bbf-bf4c-183bfb59afad)
cloudca_volume.db_volume: Refreshing state... (ID: 15045939-7a1c-4005-af55-14ab9f149b28)
cloudca_volume.db_volume: Destroying...
Error applying plan:
1 error(s) occurred:
* cloudca_volume.db_volume: [ERROR] Received HTTP status code 400
[ERROR] Error Code: 2705, Message: Cannot delete volumes which are attached to instances. Detach this volume from its instance to delete., Context: {"instanceId":"17333242-a092-4bbf-bf4c-183bfb59afad"}
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Using cloudca_volume attached to cloudca_instance,
terraform destroy
not working with following error when VM is running:resource definition:
It work if VM is shutdown.