作者在使用Claude Code AI agent协助Terraform迁移网站时,因未正确管理Terraform状态文件,导致agent执行terraform destroy意外删除了生产数据库及所有自动快照。
terraform destroy