Terraform aws instance stop


Is there a parameter that can stop the aws instance instead of shutting it down?

It doesn’t seem to be documented, so I’ll ask!

When destroying, I want to stop the process rather than removing it, but I don’t see the proper parameter!

Hi @s2lee,

I think you are trying to achieve what was requested in this issue:

Unfortunately this feature is not yet implemented, I think because it isn’t clear how it ought to be designed. I don’t think it’s possible to meet your need with Terraform today, and you’ll instead need to solve this problem outside of Terraform.