{
  "slug": "cdk-cli-adds-revert-drift-option-13c62ec8ede2",
  "title": "CDK CLI adds --revert-drift option",
  "tools": [
    "cdk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-09T13:40:06.000Z",
  "announced_at": "2026-03-09T13:40:06.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reconciling out-of-band resource changes with CDK template definitions, deploy the affected stack with the drift-aware change set option. Run `cdk deploy <stack> --revert-drift`.",
    "examples": [
      "cdk deploy <stack> --revert-drift"
    ],
    "gotchas": [
      "Version: 2.1110.0",
      "<stack>: CDK stack ID to deploy; omit to deploy according to the app's stack selection behavior.",
      "--revert-drift: Uses a CloudFormation `REVERT_DRIFT` change set to detect out-of-band drift and revert resources to their template-defined state. Default: false.",
      "Prerequisite: CDK CLI and a CDK app with the target stack. If the AWS environment is not bootstrapped, only stacks without assets and with synthesized templates under 51,200 bytes can successfully deploy."
    ]
  },
  "why_it_matters": "When reconciling actual resource state with CDK template definitions, use the CLI drift-revert option.",
  "sources": [
    "https://github.com/aws/aws-cdk-cli/releases/tag/aws-cdk%40v2.1110.0",
    "https://docs.aws.amazon.com/cdk/v2/guide/ref-cli-cmd-deploy.html"
  ],
  "rank": 0.94028,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-17a60900b2e07083-0:gate",
    "evidence_hash": "7eb920d74ae0c3e97bcc8a43af7d169b49ab44b6a55dc108a42c29499e2ebd62"
  },
  "review": {
    "draft_hash": "006dc3c9c7d7fb88c7e5d4453b9beb74e92709c62c673442266c2093f37b00a0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
