TerraformのbackendでS3を使用する際には、予期せぬ削除に備え、S3のバージョニング機能はオンにしておきましょう。
Warning! It is highly recommended that you enable Bucket Versioning on the S3 bucket to allow for state recovery in the case of accidental deletions and human error.
参考URL:https://www.terraform.io/docs/backends/types/s3.html
