0 votes
in Terraform by
How will you control and handle rollbacks when something goes wrong?

1 Answer

0 votes
by

We will recommit the previous version of the code to my VCS as the new and current version. A terraform run will be triggered, which will be in charge of running the old code. Remember that terraform is more declarative. Check that the old code contains everything that was specified in the code for rollback.

Ensure that it is not destroyed when the old code is run due to a lack of these. If the state file becomes corrupted as a result of a recent Terraform run, I will use Terraform Enterprise’s State Rollback feature to roll back to the most recent good state. Because every state change is versioned, this could be done.

Related questions

0 votes
asked Mar 7, 2023 in Terraform by Robindeniel
0 votes
asked Mar 6, 2023 in Terraform by rajeshsharma
...