What is Infrastructure as Code?

Infrastructre as Code

Infrastructure as code is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.

Infrastructure as Code refers to the methodoly in DevOps to writing scripts that will automate the process of provisioning any resource on cloud.

With IaC, you can write one single script and run it to provision same infrastructure on different environments.

For example, you need 3 different infrastructures for your application, for Development, Testing and Production.

Here, the resources you will need will be almost identical in all three environments, so it is better to write just a single script that will provision resources rather than manually provisioning resources on 3 different places.

Tools used for IaC

  • Cloud Formation for AWS
  • Azure Resource Manager Templates
  • Cloud Build for GCP
  • Terraform which works with almost everything