{
  "id": "terraform/state-lock-s3-request-timeout",
  "signature": "Error: Error acquiring the state lock: RequestError: send request failed caused by: Post \"https://s3.us-east-1.amazonaws.com/my-bucket/terraform.tfstate\": dial tcp 52.95.139.7:443: i/o timeout",
  "signature_zh": "错误：获取状态锁失败：请求错误：发送请求失败，原因：Post \"https://s3.us-east-1.amazonaws.com/my-bucket/terraform.tfstate\"：拨号 TCP 52.95.139.7:443：I/O 超时",
  "regex": "Error acquiring the state lock: RequestError: send request failed caused by: Post \"https://.*\\.s3\\..*\\.amazonaws\\.com/.*\": dial tcp .*:443: i/o timeout",
  "domain": "terraform",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Network connectivity issues prevent Terraform from reaching the S3 bucket used for state locking, typically due to firewall rules, VPN issues, or transient AWS outages.",
  "root_cause_type": "generic",
  "root_cause_zh": "网络连接问题导致 Terraform 无法访问用于状态锁定的 S3 存储桶，通常由防火墙规则、VPN 问题或 AWS 临时中断引起。",
  "versions": [
    {
      "version": "Terraform v1.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AWS Provider v5.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is a network timeout, not a stale lock. force-unlock doesn't fix connectivity and may cause state corruption if the lock is still held by another process.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The timeout is at the TCP level, not the S3 API level. TCP dial timeout is controlled by OS network stack, not AWS CLI settings.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This bypasses the lock but risks concurrent state modifications, leading to state corruption or lost updates.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check network connectivity to S3 endpoint: run 'curl -v https://my-bucket.s3.us-east-1.amazonaws.com' to verify reachability. If blocked, add firewall rule to allow outbound HTTPS to S3 IP ranges. Then retry 'terraform apply'.",
      "success_rate": 0.85,
      "how": "Check network connectivity to S3 endpoint: run 'curl -v https://my-bucket.s3.us-east-1.amazonaws.com' to verify reachability. If blocked, add firewall rule to allow outbound HTTPS to S3 IP ranges. Then retry 'terraform apply'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables: 'export HTTPS_PROXY=http://proxy.company.com:8080' and run 'terraform init' again.",
      "success_rate": 0.75,
      "how": "If behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables: 'export HTTPS_PROXY=http://proxy.company.com:8080' and run 'terraform init' again.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Check network connectivity to S3 endpoint: run 'curl -v https://my-bucket.s3.us-east-1.amazonaws.com' to verify reachability. If blocked, add firewall rule to allow outbound HTTPS to S3 IP ranges. Then retry 'terraform apply'.",
    "If behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables: 'export HTTPS_PROXY=http://proxy.company.com:8080' and run 'terraform init' again."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/language/settings/backends/s3",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}