Overview
Direct Answer
Infrastructure as Code (IaC) is the practice of defining and managing computing infrastructure—servers, networks, storage, and databases—through version-controlled, declarative or imperative code rather than manual configuration. This approach enables infrastructure to be provisioned, modified, and destroyed programmatically, treating infrastructure management with the same rigour as software development.
How It Works
Teams write configuration files (typically in YAML, JSON, or domain-specific languages) that describe desired infrastructure state, including compute resources, networking topology, and access controls. These files are stored in version control systems and processed by orchestration tools that interpret the declarations and execute the necessary API calls to cloud platforms or on-premises infrastructure providers. Changes propagate through the same code review and testing workflows used for application code.
Why It Matters
Organisations achieve faster deployment cycles, improved consistency across environments, and reduced manual configuration errors. The approach enables disaster recovery through rapid infrastructure reproduction, facilitates compliance auditing via code inspection, and reduces operational overhead by automating provisioning tasks that previously required specialist intervention.
Common Applications
Teams use IaC to provision multi-tier application stacks in public cloud environments, establish consistent development, staging, and production environments, and manage microservices infrastructure across multiple regions. Containerised workload deployments, database infrastructure provisioning, and network security policy deployment all leverage IaC patterns.
Key Considerations
Practitioners must manage state complexity, particularly in mutable infrastructure scenarios, and ensure configuration drift does not occur between declared and actual infrastructure. Secrets management, testing strategies for infrastructure changes, and the learning curve for teams accustomed to manual processes represent significant implementation challenges.
Referenced By1 term mentions Infrastructure as Code
Other entries in the wiki whose definition references Infrastructure as Code — useful for understanding how this concept connects across Cloud Computing and adjacent domains.
More in Cloud Computing
Cloud-Native Development
Service ModelsAn approach to building applications that fully exploit cloud computing advantages including microservices, containers, dynamic orchestration, and continuous delivery.
gRPC
Architecture PatternsA high-performance remote procedure call framework developed by Google using Protocol Buffers for serialisation.
Sovereign Cloud
Strategy & EconomicsCloud infrastructure operated within national boundaries under local jurisdiction, ensuring data sovereignty, regulatory compliance, and protection from foreign government access.
OAuth
Strategy & EconomicsAn open standard for token-based authentication and authorisation on the internet.
Private Cloud
Service ModelsCloud computing resources used exclusively by a single organisation, either on-premises or hosted by a third party.
Public Cloud
Service ModelsCloud computing resources shared among multiple organisations and available to the general public over the internet.
Multi-Cloud Strategy
Strategy & EconomicsAn approach that distributes workloads across multiple cloud providers to avoid vendor lock-in, optimise costs, meet regulatory requirements, and improve resilience.
Platform as a Service
Service ModelsCloud computing model that provides a platform for developers to build, deploy, and manage applications without managing infrastructure.