Terraform

What would be the process of switching back from remote backend to local?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. You remove the backend code and perform terraform init to switch back to local backend.

  2. You remove the resources that are the remote backend itself.

  3. Archive the latest remote state file so you can recover if the local copy gets corrupted.