What is Infrastructure as Code (IaC)?

Infrastructure as Code (IaC) is a process that applies DevOps principles and best practices to managing infrastructure resources. In this process, we treat infrastructure similarly to how we treat application code.

In IaC, we define infrastructure in the form of configurations. These configurations specify the desired state of the resources we want to achieve. Configurations are often defined in the JSON or YAML format, but there is no defined standard. We keep these configurations in a source control system such as Git and use CI/CD pipelines to provide infrastructure resources. The resources can be virtual machines, networking resources, storage and database resources, etc.

Get hands-on with 1200+ tech skills courses.