{
  "id": "aws/cloudfront-invalid-default-root-object",
  "signature": "The specified default root object is not valid. The object must be in the distribution's origin.",
  "signature_zh": "指定的默认根对象无效。该对象必须位于分发的源中。",
  "regex": "default root object is not valid.*must be in the distribution's origin",
  "domain": "aws",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The CloudFront distribution's Default Root Object (e.g., index.html) does not exist in the S3 bucket or custom origin at the root path.",
  "root_cause_type": "generic",
  "root_cause_zh": "CloudFront 分发的默认根对象（例如 index.html）在 S3 存储桶或自定义源的根路径中不存在。",
  "versions": [
    {
      "version": "cloudfront-2024",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "aws-cli/2.17.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "s3-2024",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting the Default Root Object to a path with a leading slash (e.g., '/index.html') is invalid; CloudFront expects no leading slash.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Uploading the file to a subfolder instead of the bucket root won't work; the root object must be at the origin root.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upload the default root object to the S3 bucket root: `aws s3 cp index.html s3://my-bucket/index.html` and ensure the bucket policy allows public read (if applicable).",
      "success_rate": 0.9,
      "how": "Upload the default root object to the S3 bucket root: `aws s3 cp index.html s3://my-bucket/index.html` and ensure the bucket policy allows public read (if applicable).",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using a custom origin, place the file at the origin's root (e.g., /var/www/html/index.html for an EC2 web server).",
      "success_rate": 0.85,
      "how": "If using a custom origin, place the file at the origin's root (e.g., /var/www/html/index.html for an EC2 web server).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "将默认根对象上传到 S3 存储桶根目录：`aws s3 cp index.html s3://my-bucket/index.html` 并确保存储桶策略允许公共读取（如果适用）。",
    "如果使用自定义源，将文件放置在源根目录（例如 EC2 Web 服务器的 /var/www/html/index.html）。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-08-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}