{
  "schemaVersion": "ebb.rule.v1",
  "id": "terraform.cli.end-of-support-1.11",
  "ecosystem": "terraform",
  "purl": "pkg:generic/terraform",
  "affectedVersions": "vers:semver/>=1.11.0|<1.12.0",
  "event": "end-of-support",
  "severity": "medium",
  "title": "Terraform CLI 1.11 is no longer a supported release line",
  "summary": "HashiCorp supports the two most recent Terraform release lines. Terraform 1.11 (first released 2025-02-27) stopped being one of them when Terraform 1.13 was released on 2025-08-20. endoflife.date records 2025-08-20 as the end-of-life date for the 1.11 line. The HashiCorp support policy page could not be read when this rule was reviewed, so the support window is taken from the endoflife.date record and the dates of the hashicorp/terraform GitHub releases.",
  "replacement": "Terraform 1.15 or later",
  "deadline": "2025-08-20",
  "sources": [
    {
      "title": "endoflife.date: Terraform",
      "url": "https://endoflife.date/terraform",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "hashicorp/terraform release v1.13.0",
      "url": "https://github.com/hashicorp/terraform/releases/tag/v1.13.0",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "HashiCorp Terraform support policy",
      "url": "https://support.hashicorp.com/hc/en-us/articles/360021185113",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep required_version in *.tf, the pin in .terraform-version or .tool-versions, and the Terraform version installed in CI and by every teammate on one supported release line.",
      "Terraform state written by a newer release may not be readable by an older one, so move every place that runs plan or apply together instead of one environment at a time.",
      "Do not run terraform init -upgrade as part of this change unless provider upgrades are intended: it can change provider versions and rewrite .terraform.lock.hcl."
    ],
    "steps": [
      {
        "id": "raise-cli-pin",
        "title": "Raise the Terraform CLI pin",
        "instructions": "Change the reported .terraform-version or terraform entry in .tool-versions to the release in the replacement.",
        "targets": "declaration"
      },
      {
        "id": "raise-required-version",
        "title": "Raise required_version",
        "instructions": "Raise the lower bound of required_version in the terraform block of each *.tf file so it admits only supported releases, and read the upgrade notes of every line you cross.",
        "targets": "all"
      },
      {
        "id": "align-ci-toolchain",
        "title": "Align CI and documentation",
        "instructions": "Update CI workflows, Docker images, and setup documentation that install Terraform (for example hashicorp/setup-terraform) so they match the new pin.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "terraform version",
        "purpose": "Confirm the active Terraform CLI is the intended release."
      },
      {
        "command": "terraform init -backend=false && terraform validate",
        "purpose": "Initialize without touching remote state and check that the configuration is valid on the new release."
      },
      {
        "command": "terraform plan",
        "purpose": "Review the plan and confirm the upgrade introduces no unexpected changes."
      }
    ]
  }
}
