Skip to main content
Infrastructure as Code (IAC)
What is it
- Infrastructure as code (IAC) is a formalised way of scripting infrastructure requirements that can then be played, and replayed, in a target environment.
- Because the setup is scripted it removes the possibility of human error when executing and can be backed up and managed in source control.
Who
Running the technique
- There are different formats required for different targets. Azure uses ARM, for example, Terraform can be configured cross-cloud, Vagrant can configure virtual machines and Kubernetes manifests are also in this category.
- Just like with software, you should test your IaC on a dummy environment before making changes to anything live.
- Your deployment pipeline should run the scripts in a target environment as part of the deployment process: Build, Test, Create (Iac), Deploy