TA-002-P · Question #222
If you delete a remote backend from the configuration, will you need to rebuild your state files locally?
The correct answer is A. False. This is FALSE. When you remove a remote backend configuration and run terraform init, Terraform will prompt you to migrate your existing state from the remote backend back to the local backend automatically. The state file is copied locally - you do not need to rebuild it from…
Question
If you delete a remote backend from the configuration, will you need to rebuild your state files locally?
Options
- AFalse
- BTrue
How the community answered
(26 responses)- A88% (23)
- B12% (3)
Explanation
This is FALSE. When you remove a remote backend configuration and run terraform init, Terraform will prompt you to migrate your existing state from the remote backend back to the local backend automatically. The state file is copied locally - you do not need to rebuild it from scratch.
Topics
Community Discussion
No community discussion yet for this question.