When you need this
- Your environment was built by hand in the AWS or Azure console, during a migration or over the years.
- Only one person, or one former supplier, knows how it is set up.
- Your disaster recovery plan restores data, but says nothing about rebuilding the servers, networks and permissions around it.
- A client, insurer or auditor asks how changes to production are approved, and the honest answer is “carefully”.
- Test and production were built separately, so something that works in one breaks in the other.
What it means for the business
- Business continuity. The whole environment is written down as code, like a blueprint. After a failure, a deleted resource or a security incident, it can be rebuilt quickly and the same way every time.
- Controlled changes. No change reaches production until a second person has reviewed and approved it, so mistakes are caught before they cause an outage.
- A full audit trail. Every change records who made it, when and why. That answers client, insurer and auditor questions with evidence instead of screenshots.
- No single point of failure in people. The knowledge lives in the code, not in someone’s head, so staff or supplier changes don’t put your systems at risk.
- Environments that match. Test is built from the same code as production, so what passes testing works when it goes live.
- Cost you can see. Everything running is defined and tagged in code, so it is clear what exists and what it costs.
How it works
- The code lives in your repository. Networks, servers, databases, permissions and security settings are defined in Terraform, or Bicep for Azure-only teams.
- A change starts as a pull request. The pipeline shows exactly what will be added, changed or removed.
- A second person reviews and approves it. Branch protection means nobody can skip this step, including us.
- Only the pipeline changes production. People don’t have write access to production by default, and the pipeline signs in with short-lived credentials instead of stored keys.
- Drift is flagged. A scheduled check reports anything changed by hand in the console, so the code stays the truth.
The technical detail, including how we bring existing resources under Terraform without downtime, is in Terraform consulting.
Evidence for ISO 27001 and client audits
Several ISO/IEC 27001:2022 controls ask you to show that infrastructure is configured deliberately and changed in a controlled way. Infrastructure as code produces that evidence as a side effect of normal work:
| Control | What the auditor asks | Where the evidence comes from |
|---|---|---|
| 8.9 Configuration management | Are configurations defined, documented and monitored? | The code itself, and the drift check |
| 8.32 Change management | Are changes reviewed and approved before they go live? | Pull requests, approvals and pipeline history |
| 5.37 Documented operating procedures | Can the work be done the same way by someone else? | The code, the pipeline and the runbooks |
The same evidence answers the change control questions in security questionnaires, cyber insurance forms and PCI DSS assessments.
Proving you can rebuild
A rebuild plan that has never been tested is a guess. Once the environment is in code, we rebuild a copy of it in a separate account, restore data from backup, and time it. You get a written result: how long it took, what needed a person, and what we fixed so the next one is faster.
Infrastructure as code doesn’t replace backups. The code rebuilds the environment; backups restore the data in it. A real recovery plan needs both.
How an engagement runs
- Map. We list what is actually running and decide what is kept, rebuilt or deleted.
- Bring it under code. One environment at a time, starting with the least risky, with no changes to what is running.
- Add the pipeline. Review on pull request, apply on merge, and drift detection.
- Test a rebuild. In a separate account, timed and written up.
- Hand over. Documentation and runbooks for your team or your IT provider, with ongoing support only if you want it.
Common questions
Does this work on Azure as well as AWS?
Yes. Terraform works on both, and we use Bicep where a team runs only on Azure and prefers Microsoft’s own tooling.
Will bringing our environment under code cause downtime?
No. Existing resources are recorded in code as they are, and we check that the code matches what is running before anything is changed.
We were just migrated to the cloud. Is it too late?
No. A recent migration is a good time, because the environment is fresh and the people who built it still remember why.
Can our IT provider maintain it afterwards?
Yes. Everything is in your repositories, with documentation and runbooks, and changes go through the same review process whoever makes them.
Next step
Ask us what happens if your cloud account is lost
On a 30-minute call we’ll tell you how long a rebuild would take today, and what it would take to get that down to hours.
