Skip to content
Glossary · Hosting and delivery

Infrastructure as code (IaC)

Also called IaC.

Definition

Defining servers, networks, databases and other cloud resources in code files that are versioned and applied automatically, instead of setting them up by hand.

Last updated

What it is.

With IaC, the cloud setup lives in files in the repository. A tool reads them, compares them with what exists and makes the changes. The same files can create a new environment, rebuild a broken one or show exactly what will change before it happens.

Changes go through code review and the CI/CD pipeline like any other code, so there is a history of who changed what and why.

Why it matters

Hand-built infrastructure drifts, is hard to copy and is lost when the one person who built it leaves. IaC makes environments repeatable, makes disaster recovery practical and gives auditors a clear record of changes. It is also a key part of a clean handover to the client.

In a product build

We define every environment in code from the start, keep secrets in a secrets manager rather than in the files, review planned changes before they are applied and lock production so changes only come through the pipeline.

Watch out

Common mistakes.

  1. 01

    Fixing things by hand in the console, so the code no longer matches reality.

  2. 02

    Storing secrets in IaC files in the repository.

  3. 03

    One giant config for everything, so a small change risks the whole stack.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab