liveBook · Manning

Reconciliation

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

The process of bringing recorded or desired infrastructure configuration into agreement with the actual infrastructure state.

Reconciliation brings recorded or desired infrastructure configuration into agreement with actual infrastructure state. In infrastructure as code, it repairs drift caused by manual or break-glass changes by capturing the change in configuration and applying it consistently. section 11.3.1 section 7.1.4

Apply reconciliation as an operational sequence:

  • Identify drift between infrastructure and infrastructure-as-code configuration. section 11.2.3
  • Reconstruct the current state from manual commands, server history, or infrastructure metadata. section 11.3.1
  • Encode the reconstructed state in infrastructure as code and apply it to testing. section 11.3.1
  • Test the change, update application configuration, and push the verified configuration to production. section 11.3.2
  • Compare testing and production first when their differences would otherwise make drift repair unreliable. section 11.3.2

Repairing a Cloud SQL Auth proxy drift

A break-glass change left production using the Cloud SQL Auth proxy while testing connected directly to the database. Reconstruct the proxy installation from the production server, place it in the testing server’s startup script, test the database connection, update the application to use localhost, and apply the verified configuration to both environments. section 11.3.1 section 11.3.2

Figure 11.8 You use IaC to troubleshoot your broken change by checking for drift, unexpected dependencies, and differences between testing and production.

Use the troubleshooting flow to inspect drift, unexpected dependencies, and testing-versus-production differences before implementing a long-term fix. section 11.2.3

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Reconstructs manual state, encodes it in IaC, tests it, and applies it; it defers provider-specific transformation tooling.
Examples
Demonstrates proxy installation, startup scripts, testing-production comparison, application configuration, and firewall-rule investigation.
What it assumes
Assumes familiarity with infrastructure as code, deployment environments, and delivery pipelines; teaches state reconstruction from manual changes.
What you can do after
Diagnose/debug with it by locating drift and environment differences, then implement and verify an IaC-based corrective change.
How it connects
Connects infrastructure as code with configuration drift, environment parity, continuous delivery, dependency diagnosis, and least-privilege access.

Also explained in

Compare how 7 books explain reconciliation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.