{
  "id": "aws/cloudformation-stack-creation-timeout",
  "signature": "Resource creation cancelled: Resource creation timed out after 60 minutes (AWS::CloudFormation::Stack)",
  "signature_zh": "资源创建已取消：资源创建在 60 分钟后超时 (AWS::CloudFormation::Stack)",
  "regex": "Resource creation cancelled: Resource creation timed out after 60 minutes \\(AWS::CloudFormation::Stack\\)",
  "domain": "aws",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A CloudFormation stack creation exceeded the default 60-minute timeout, typically due to a slow resource provisioning (e.g., large RDS instance, complex nested stack).",
  "root_cause_type": "generic",
  "root_cause_zh": "CloudFormation 堆栈创建超过了默认的 60 分钟超时，通常是由于资源预配缓慢（例如大型 RDS 实例、复杂的嵌套堆栈）。",
  "versions": [
    {
      "version": "CloudFormation API 2010-05-15",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AWS CLI 2.13.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Simply retrying the stack creation without increasing timeout or optimizing resource provisioning will hit the same timeout again.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting the failed stack and recreating it with the same template doesn't address the root cause; the timeout will recur.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the stack creation timeout using the CloudFormation console or CLI: 'aws cloudformation create-stack --stack-name my-stack --template-body file://template.yaml --timeout-in-minutes 120'. Set a value appropriate for the expected provisioning duration.",
      "success_rate": 0.9,
      "how": "Increase the stack creation timeout using the CloudFormation console or CLI: 'aws cloudformation create-stack --stack-name my-stack --template-body file://template.yaml --timeout-in-minutes 120'. Set a value appropriate for the expected provisioning duration.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Optimize the CloudFormation template: break large stacks into nested stacks with individual timeouts, or use 'DependsOn' sparingly to reduce sequential dependencies. Consider using 'AWS::CloudFormation::WaitCondition' with a custom timeout for long-running resource creation.",
      "success_rate": 0.75,
      "how": "Optimize the CloudFormation template: break large stacks into nested stacks with individual timeouts, or use 'DependsOn' sparingly to reduce sequential dependencies. Consider using 'AWS::CloudFormation::WaitCondition' with a custom timeout for long-running resource creation.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "使用 CloudFormation 控制台或 CLI 增加堆栈创建超时时间：'aws cloudformation create-stack --stack-name my-stack --template-body file://template.yaml --timeout-in-minutes 120'。根据预期的预配持续时间设置适当的值。",
    "优化 CloudFormation 模板：将大型堆栈拆分为具有单独超时的嵌套堆栈，或谨慎使用 'DependsOn' 以减少顺序依赖。考虑对长时间运行的资源创建使用 'AWS::CloudFormation::WaitCondition' 并设置自定义超时。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-timeouts.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-11-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}