XasCode
English
IaC guides

IaC Change Impact Analysis

Before approving an infrastructure change, trace the services that depend on the resource you are changing. This infrastructure as code (IaC) example follows a simulated Stripe dependency through two layers of callers.

Start with the affected resource

Choose the environment and the configuration snapshot under review. Use the resource's stable identity to find it in the graph. In the Commerce example, the production Payment service refers to Stripe through its externalDependencies.payments declaration.

externalDependencies: {
  payments: { target: { '$ref': { uid: 'stripe', output: 'identity' } } },
},

The versioned snapshot lets a reviewer open the declaration behind an edge and confirm it belongs to the revision being reviewed.

Follow incoming dependencies

Start at Stripe and follow incoming dependency edges. Payment is one hop away. Checkout and Order depend on Payment, so they are two hops away.

  • Checkout→Payment→Stripe
  • Order→Payment→Stripe
Arrows point from each caller to the dependency it declares. Impact analysis traces them back from Stripe.

Inspect each edge before including the path in a change review. For an access or configuration reference, verify whether the proposed change could propagate across that relationship.

Turn the paths into review checks

The paths identify potential blast radius. In the simulated example, confirming customer impact would require provider incident timing, Payment error and timeout rates, and the corresponding Checkout and Order signals.

Record the snapshot, the paths you used, and the evidence still needed. If an incident is already underway, check the deployment and observation at the relevant time using the deployment traceability guide.

Start with one service

Connect the declarations, dependencies, and deployment records for a service you own.