In case something went wrong, how will you handle and control rollbacks?

devquora
devquora

Posted On: Apr 15, 2020

 

I will recommit the previous version of the code to be the new and current version in my VCS. With this a terraform run will be triggered which will be responsible for running the old code. Don't forget that terraform is more declarative. Make sure that all the things provisioned in the code for rollback are contained in the old code. Ensure that it does not get destroyed on running the old code because of the lack of these. In case the state file got corrupted from a terraform run recently, then I will take the help of the State Rollback Feature of Terraform Enterprise for roll back to the previous latest state which was in a good state. This could be done due to the reason that every state change is versioned.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Terraform Interview Questions

    What is Terraform?

    Terraform is a tool of the DevOps toolchain which is used for development and change in the infrastructure with safety. It is an efficient tool for the versioning of the infrastructure. This tool has ...

    Terraform Interview Questions

    Why should Terraform be preferred for DevOps?

    There are a bunch of reasons for giving preference to Terraform to be used as one of the significant tools of DevOps. The main motive of DevOps is to bring efficiency and quality in software delivery....

    Terraform Interview Questions

    What are the features of Terraform?

    Main key features of Terraform include :Graphing - Its features of graphing that are built-in are helpful in visualizing the infrastructure. Custom Syntax - It's custom syntax is very friendly wh...