Support
Quality
Security
License
Reuse
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample Here
Get all kandi verified functions for this library.
Disclaimer: This is not an official Google product
Created by: Waze SRE
QUESTION
Manually moving a state file to a different backend
Asked 2022-Feb-09 at 18:01I recreated a state file for an existing infrastructure using a third party tool i.e. terraformer. Now I want o move the .tfstate
to another azurerm back-end and manage from there.
If I just copy the file i.e. mystate.tfstate
from local to inside storage account container with the same file name/key as in the backend configurations will it work or do I need to do something else to achieve it?
I don't want to risk the state file or infrastructure by trying to do something that isnt sure to work as I expect.
ANSWER
Answered 2022-Feb-09 at 14:32I don't want to risk the state file or infrastructure by trying to do something that isnt sure to work as I expect.
Make a backup of the state file first, and then you won't be risking the state file.
As long as you aren't running an apply
command, you won't be risking the infrastructure. And even if you are running an apply
command, you will be able to review the plan before proceeding.
So just (always) backup your state file, and always review a plan before applying it, and there is no risk.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Find more information at:
Save this library and start creating your kit
See Similar Libraries in
Save this library and start creating your kit
Open Weaver – Develop Applications Faster with Open Source