We took many chapters to discuss writing and collaborating on infrastructure as code. All of the practices and principles you learned for IaC accumulate to the crucial moment when you push a change, it causes your system to fail, and you need to roll it back! However, IaC doesn’t support rollback. You do not fully revert IaC changes. What does it mean to fix failures if you don’t roll them back?
This chapter focuses on fixing failed changes from IaC. First, we’ll discuss what it means to “revert” IaC changes by rolling forward. Then, you’ll learn workflows for troubleshooting and fixing the failed change. While the techniques in this chapter might not apply to every scenario you’ll encounter in your system, they establish a broad set of practices you can use to start repairing IaC failures.