Sponsored Content
In a previous life, I taught AWS training courses. One principle was to separate persistent data from disposable execution. To protect the application, you protect the data and the means to re-create the execution. If you do it well, that works for a single microservice or a monolithic application. The challenge comes when you need to scale protection across dozens of microservices and applications; dependencies between the smaller parts become a major issue. Forgotten manual configurations, such as DNS names or legacy authentication systems, are another possible issue. Things that are outside your Infrastructure as Code and CI/CD processes need separate protection. At production scale, in enterprise cloud applications, your deployment tools probably won’t support wholesale application recovery after a cybersecurity event.
The Purpose Determines the Tool
Using a system for an unintended purpose sometimes unlocks an awesome opportunity and sometimes it brings a pile of painful technical debt. Your IaC and CI/CD were built to allow developers to easily and safely make small incremental changes to applications. Could you use the same tools to build a new production environment? Not with these tools alone; you would also need a way to recover your data and some orchestration to bring everything up in an orderly fashion. For a simple, born-in-the-cloud organization, it may be that easy. A larger organization might struggle to sequence a cold startup and identify dependencies between services using separate CI/CD pipelines. For an enterprise organization with a heritage of pre-cloud and pre-DevOps infrastructure, the picture is more complicated.
Where IaC falls short as a recovery tool
An Infrastructure as Code tool is only as good as the discipline around its use. Resources deployed outside the IaC or changes to the deployed resources won’t be redeployed correctly from the original IaC sources. Even when IaC deploys every change, very few organizations routinely do a complete redeploy using IaC tools. Authentication systems and DNS are two resources that seldom get rebuilt with IaC, yet are vital to application operation. Sequencing a full cold start is another challenge; not every microservice or application will patiently await its dependencies. Even worse, circular dependencies can creep in over time and remain invisible until a recovery event. Data persistence locations are not usually built and populated by IaC: the databases, file shares, object stores, and secret stores are often outside any automated deployment process. IaC describes your intent for how applications should be deployed; it doesn’t necessarily reflect what is currently deployed.
Your pipeline is inside the blast radius
Another risk is your IaC tools, source code repositories, and CI/CD pipelines. A failure or cyber incident that takes out your production application may well take out the very resources you expect to use to recover. In theory, version control protects your IaC and CI/CD configuration, but in practice, it’s not an immutable store. An immutable backup independent of the protected resource is the only way to be certain you can recover.
IaC and recovery should work together
Don’t get me wrong, IaC and CI/CD are vital parts of operating a cloud-native environment; both infrastructure and application teams should be using both. I also want my recovery system to cooperate with and update my IaC. Recovering from a cyber incident or a cloud outage must not break my operational processes. Even more, I want my recovery system to learn from my IaC and source code repositories. Tagging applied to resources by IaC is a great identifier for criticality or recovery groups. I still want my recovery system to identify resources and find the dependencies between them based on what is deployed. I need the recovery to return my application and data to an operational state, even if that is in a new cloud region. The Dreeze presentation at Cloud Field Day 26 opened my eyes to the possibility of discovering, protecting, and recovering an entire cloud-native environment with a single tool.
IaC is not recovery
You might have noticed I talked about a recovery tool, not a backup tool. The essential function is to recover an application, or a whole business, after an incident. Backups are the necessary prerequisite but not the point. Use the right tool for the job. IaC and CI/CD are tools to safely deploy small changes to an operational environment. A recovery tool replaces a broken application or data center with the last working state.
Watch all the videos from Cloud Field Day 26 on the Tech Field Day website.

