1. 22
    1. 1

      This happened to us at a previous job. The state file was force pushed. The prod database was deleted. The backups were part of the resource definition. Everything was gone including the backups. I was walking out the door because they were laying a bunch of us off as it happened. The company recovered, I just mean to say .. I don’t know the details. The timing was glorious (but still sad for everyone). :(

      The state file is such a foot gun (to me but what do I know). The devs (turned devops) knew what it meant. But it was force pushed anyway. I think it’s top of mind for me even though I don’t grok Terraform. We’d have to really, really, really understand the state file and probably read the following as scripture: