# Match infrastructure back to its written configuration

Infrastructure changed by hand and never recorded in code, brought back in line, with the plan reviewed first.

Category: Release, deploy, and environments
Source: https://letsship.ai/use-cases/fix-infrastructure-drift
Published: 2026-08-25

## Goal

Reconcile one infrastructure stack with its declared configuration.

## Acceptance criteria

- A plan showing the drift is attached
- Each drifted resource is either adopted into code or reverted, with a reason
- The apply stays with a person; this ticket delivers the plan
- Drift detection runs on a schedule afterwards

## What lands as proof

Plan output enumerating every drifted resource, reviewed before anything is applied.

## Prompt

Copy this to an agent to open the ticket:

```text
Create a Linear issue in my team and assign it to the SHIP agent.

Title: Close the drift in {stack}

Description: Reconcile one infrastructure stack with its declared configuration.

Acceptance criteria:
- A plan showing the drift is attached
- Each drifted resource is either adopted into code or reverted, with a reason
- The apply stays with a person; this ticket delivers the plan
- Drift detection runs on a schedule afterwards

Before you create the issue, run a plan against this repository's infrastructure and replace {stack} with the one showing drift.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: reconcile one infrastructure stack with its declared configuration. Work that serves that outcome is in scope, and anything outside it is left for a separate ticket, so the pull request stays reviewable.

### How do I know the work is done?

The pull request carries the evidence, not only the diff. Here that means plan output attached, the apply stays with the team, so a reviewer can confirm the result without reproducing the work locally.

### How much oversight does this need?

The run stops for the plan, and the review bar is raised afterwards so that smaller suggestions block the merge too, not only serious findings.
