In this explainer

Infrastructure as code, or IaC, represents computing, network, storage and related configuration in machine-readable files that approved tools can apply. It can make environments more repeatable and reviewable, but automation also makes a flawed instruction easier to reproduce, so banks govern the code, credentials, deployment path and observed environment together.

01

The code describes an approved infrastructure state

Teams translate an architecture into reusable modules and environment-specific parameters for resources such as networks, compute services, databases, access roles, encryption settings and monitoring. Ownership and naming connect each resource with a service, data classification, criticality, cost center and lifecycle.

IaC does not make every infrastructure choice identical. Production and test environments can have different capacity and access, while approved modules keep essential security and resilience settings consistent and make deliberate differences visible instead of relying on undocumented manual setup.

02

Version control makes change reviewable

The configuration resides in a controlled source repository with change history, peer review and protected approval paths. A proposed update shows which resources may be created, changed or removed and links the change with its business purpose, affected service, test evidence and implementation authority.

Credentials, private keys and customer data do not belong in the code or an exposed state file. Secret-management services, restricted pipeline identities and least-privilege permissions separate the reusable definition from the sensitive authority needed to deploy it.

03

Automated checks challenge the plan before deployment

Formatting and validation confirm that the configuration can be interpreted, while policy and security checks look for prohibited public access, weak encryption, excessive privileges, unsupported versions, missing logging or other baseline violations. Tests also challenge dependencies, quotas and recovery assumptions rather than treating syntactically valid code as operationally safe.

The deployment tool produces a plan showing expected differences between the approved definition and the target environment. Reviewers investigate unexpected replacement or deletion, and higher-risk changes use additional approval, maintenance timing, backup or a tested alternative path before execution.

04

A controlled pipeline applies and observes the change

An authenticated pipeline deploys the approved version with bounded permissions, records the tool and inputs used and stops when required checks fail. Progressive rollout, health checks and explicit rollback or safe-disable procedures limit the impact of a configuration that behaves differently under real workload.

Some changes cannot be reversed simply by restoring an earlier file, particularly when data, identity or provider-managed resources changed. The implementation plan distinguishes reversible configuration from migration work and identifies how customer service, transactions and evidence will be protected if recovery is needed.

05

Drift detection keeps the observed state accountable

Monitoring compares deployed resources with the approved definition and identifies manual changes, failed updates and provider-side differences. An emergency change is recorded, reviewed and either represented in the code or removed so the live environment does not become an undocumented exception to the source of truth.

Teams protect configuration state, audit logs and deployment evidence, test restoration and retire unused resources under the same lifecycle. IaC improves repeatability and traceability, but it does not replace architecture review, operational resilience, capacity management or accountable human judgment.

Sources

Read the primary material

Banking Explained prioritizes regulators, official publications and first-party announcements.