{
  "id": "terraform/module-source-not-found",
  "signature": "Error: Module not found: module \"vpc\" source \"terraform-aws-modules/vpc/aws\" not found in registry",
  "signature_zh": "错误：模块未找到：模块 \"vpc\" 源 \"terraform-aws-modules/vpc/aws\" 在注册表中未找到",
  "regex": "Module not found.*source.*not found in registry",
  "domain": "terraform",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The specified module source does not exist in the Terraform registry or the version constraint does not match any published version.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的模块源在Terraform注册表中不存在，或版本约束与任何已发布版本不匹配。",
  "versions": [
    {
      "version": "Terraform v1.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Run 'terraform init' without any flags",
      "why_fails": "Init can only install modules if the source is valid; it won't fix a non-existent source.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a local file path instead of the registry source",
      "why_fails": "The local path must contain the module; a random path won't work.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Add a version constraint like 'version = \"latest\"'",
      "why_fails": "The module doesn't exist at all; no version constraint can fix that.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the module name and namespace in the Terraform registry: `terraform-aws-modules/vpc/aws` is correct; check for typos. Then run 'terraform init'.",
      "success_rate": 0.85,
      "how": "Verify the module name and namespace in the Terraform registry: `terraform-aws-modules/vpc/aws` is correct; check for typos. Then run 'terraform init'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the module is private, add a module source with a Git URL: `source = \"git::https://github.com/org/terraform-aws-vpc.git?ref=v3.0.0\"` and run 'terraform init'",
      "success_rate": 0.9,
      "how": "If the module is private, add a module source with a Git URL: `source = \"git::https://github.com/org/terraform-aws-vpc.git?ref=v3.0.0\"` and run 'terraform init'",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the module name and namespace in the Terraform registry: `terraform-aws-modules/vpc/aws` is correct; check for typos. Then run 'terraform init'.",
    "If the module is private, add a module source with a Git URL: `source = \"git::https://github.com/org/terraform-aws-vpc.git?ref=v3.0.0\"` and run 'terraform init'"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/language/modules/sources",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-04-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}