[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A4K0ZN3CVZC8DS3GGGSD67":3,"skill-same:01M7A4K0ZN3CVZC8DS3GGGSD67":145},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A4K0ZN3CVZC8DS3GGGSD67","cloudformation-stack-rollback-troubleshooter",null,"Diagnoses AWS CloudFormation stack rollback failures through a rollback-focused decision tree: UPDATE_ROLLBACK_FAILED state requiring ContinueUpdateRollback, custom resource Lambda timeout (no response to CFN signal — the #1 rollback blocker), nested stack rollback cascade, IAM policy replacement requiring full resource recreation, drift detection blocking clean rollback, stack policy preventing rollback update, dependent resources in-use (cannot delete), RDS\u002FAurora snapshot requirement before rollback, DisableRollback after partial failure, rollback vs update-with-rollback semantics, stack delete vs rollback, and ChangeSet preview before rollback. Walks symptoms to a verified root cause with evidence-backed probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudformation-stack-rollback-troubleshooter\ndescription: 'Diagnoses AWS CloudFormation stack rollback failures through a rollback-focused decision tree: UPDATE_ROLLBACK_FAILED state requiring ContinueUpdateRollback, custom resource Lambda timeout (no response to CFN signal — the #1 rollback blocker), nested stack rollback cascade, IAM policy replacement requiring full resource recreation, drift detection blocking clean rollback, stack policy preventing rollback update, dependent resources in-use (cannot delete), RDS\u002FAurora snapshot requirement before rollback, DisableRollback after partial failure, rollback vs update-with-rollback semantics, stack delete vs rollback, and ChangeSet preview before rollback. Walks symptoms to a verified root cause with evidence-backed probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted stack events and describe-stacks output. Live-account diagnosis uses aws cloudformation describe-stacks, describe-stack-events, describe-stack-resources, get-template-summary, describe-stack-resource-drifts, get-stack-policy, create-change-set, execute-change-set, continue-update-rollback, list-change-sets, and aws lambda get-function-configuration for custom...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: DevTools\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\n  when_to_use: Diagnosing a CloudFormation stack rollback failure where the root cause may be custom resource Lambda timeout (no CFN signal — the\n  when_not_to_use: Initial CloudFormation deployment failures (use cloudformation-stack-troubleshooter), CloudFormation drift posture audits (use cloudformation-drift-troubleshooter), Terraform or CDK-level debugging (use the IaC tool's own diagnostics), or IAM policy authoring (use iam-least-privilege-advisor). This skill diagnoses rollback failures; it does not author templates or audit steady-state drift posture.\n  activation_triggers: CloudFormation UPDATE_ROLLBACK_FAILED, CloudFormation rollback failed, stack stuck UPDATE_ROLLBACK_FAILED, ContinueUpdateRollback, custom resource Lambda timeout CloudFormation, custom resource no response CloudFormation, nested stack rollback cascade, CloudFormation rollback cascade, IAM replacement rollback CloudFormation, drift blocking rollback CloudFormation, stack policy preventing rollback, dependent resources cannot delete CloudFormation, RDS snapshot rollback CloudFormation, Aurora snapshot rollback, DisableRollback CloudFormation, ChangeSet rollback preview, rollback vs update CloudFormation, stack delete vs rollback, diagnose CloudFormation rollback\n  invocation_schema: 'Input: either (a) a rollback failure symptom description (stack status, StackId, error event message from describe-stack-events), optionally paired with the stack configuration (describe-stacks output, template summary, recent events), OR (b) a StackName or StackId plus the specific resource that failed to roll back for live-account diagnosis. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FLAYER\u002FEVIDENCE\u002FREMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {UPDATE_ROLLBACK_FAILED, CUSTOM_RESOURCE_TIMEOUT, NESTED_STACK_CASCADE, IAM_REPLACEMENT, DRIFT_DETECTION, STACK_POLICY_BLOCKING, DEPENDENT_RESOURCE_IN_USE, RDS_SNAPSHOT_REQUIRED, DISABLE_ROLLBACK_PARTIAL, CHANGESET_REJECTED, UNKNOWN}.'\n  invocation_example: \"# Minimal valid input (offline symptom classification):\\nSymptom: \\\"CloudFormation stack prod-infrastructure is stuck in\\nUPDATE_ROLLBACK_FAILED after a failed update. The stack event shows\\n'CustomResource' timed out waiting for response from the Lambda\\nfunction. I need to unblock the rollback.\\\"\\nStackName: prod-infrastructure\\nStackStatus: UPDATE_ROLLBACK_FAILED\\nStackId: arn:aws:cloudformation:us-east-1:111111111111:stack\u002Fprod-infrastructure\u002Fabc-123\\nFailedResource: Custom::AppConfig (LogicalId: AppConfigCustomResource)\\nErrorEvent: \\\"Custom resource failed: Provider Lambda function timed out\\n  (60s) without sending a response to the CloudFormation signal URL\\\"\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CloudFormation, stack rollback, UPDATE_ROLLBACK_FAILED, rollback failure, ContinueUpdateRollback, custom resource timeout, custom resource Lambda, nested stack rollback, nested stack cascade, IAM replacement, drift detection, stack drift, stack policy, dependent resources, RDS snapshot, Aurora snapshot, DisableRollback, ChangeSet, rollback vs update, stack delete, CloudFormation troubleshooting\n  tags: cloudformation, devtools, troubleshooting, rollback, update-rollback-failed, custom-resource, nested-stack, drift, stack-policy, changeset\n---\n\n# CloudFormation Stack Rollback Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (first plausible match drives the first probe):**\n  `UPDATE_ROLLBACK_FAILED` state → UPDATE_ROLLBACK_FAILED (requires\n  ContinueUpdateRollback); custom resource timeout in events →\n  CUSTOM_RESOURCE_TIMEOUT (the #1 rollback blocker); nested stack in\n  events → NESTED_STACK_CASCADE; IAM resource with `Replacement: True`\n  → IAM_REPLACEMENT; drift detected → DRIFT_DETECTION; stack policy\n  Deny → STACK_POLICY_BLOCKING; \"Cannot delete: in use\" →\n  DEPENDENT_RESOURCE_IN_USE; RDS\u002FAurora in template →\n  RDS_SNAPSHOT_REQUIRED.\n- **UPDATE_ROLLBACK_FAILED requires ContinueUpdateRollback.** A stack\n  in `UPDATE_ROLLBACK_FAILED` state cannot be updated normally — the\n  only forward paths are `continue-update-rollback` (retry the rollback\n  optionally skipping specific resources) or deleting the stack.\n  Operators who try `update-stack` get a `ValidationError`.\n- **Custom resource Lambda timeout is the #1 rollback blocker.** When\n  a custom resource's provider Lambda fails to send a SUCCESS\u002FFAILED\n  response to the CFN signal URL (timeout, crash, wrong URL),\n  CloudFormation waits up to 1 hour, then fails. The rollback then\n  fails because CFN can't delete or update the custom resource — it's\n  still \"waiting.\" Use `continue-update-rollback --resources-to-skip`\n  to bypass the stuck resource.\n- **Nested stack rollback cascades.** When a parent stack rolls back,\n  each child stack rolls back independently. A child stuck in\n  `UPDATE_ROLLBACK_FAILED` blocks the parent. The child must be fixed\n  first (ContinueUpdateRollback on the child), then the parent.\n- **IAM replacement is irreversible during rollback.** Changing a\n  property with `UpdateBehavior: Replacement` on an IAM resource\n  creates a new resource and deletes the old. The old resource's\n  deletion can fail if it's still attached — the rollback then fails.\n- **Drift blocks clean rollback.** If a resource has been modified\n  outside CloudFormation, the rollback may fail because the expected\n  (template) state doesn't match the actual (drifted) state. Run\n  `detect-stack-drift` and review before retrying rollback.\n\n## Mindset\n\nA CloudFormation rollback failure is almost always one specific resource\nthat cannot be returned to its previous state. The stack is not broken\n— one resource is stuck. Senior CloudFormation engineers do not retry\nthe entire rollback; they identify the specific resource from\n`describe-stack-events`, understand why that resource's rollback failed\n(custom resource timeout, dependent resource, drift, IAM replacement),\nand fix or bypass that resource with `continue-update-rollback\n--resources-to-skip`.\n\n## Philosophy\n\nFive behaviours separate a senior CloudFormation engineer from a\ngeneralist on rollback incidents:\n\n- **UPDATE_ROLLBACK_FAILED is a terminal state requiring a specific\n  action.** A stack in this state cannot receive normal updates. The\n  only forward paths are `continue-update-rollback` (retry, optionally\n  skipping specific resources) or deleting the stack.\n\n- **Custom resource timeout is the #1 rollback blocker by frequency.**\n  Custom resources (`Custom::` type, `AWS::CloudFormation::CustomResource`)\n  rely on a provider Lambda to send SUCCESS\u002FFAILED to a pre-signed S3\n  URL. If the Lambda times out, crashes, or sends to the wrong URL,\n  CloudFormation waits up to 1 hour, then fails. During rollback, the\n  same custom resource must be deleted or updated — and the same\n  timeout\u002Fcrash recurs.\n\n- **Nested stack rollback cascades from child to parent.** When a parent\n  update triggers a child update that fails, the parent rolls back. The\n  parent's rollback includes rolling back the child. If the child is\n  stuck in `UPDATE_ROLLBACK_FAILED`, the parent's rollback also fails.\n  Always fix the deepest child first.\n\n- **IAM replacement is irreversible during rollback.** Changing an IAM\n  resource property with `Replacement: True` creates a new resource and\n  deletes the old. The old resource's deletion fails if any entity\n  still assumes it. Always check `get-template-summary` for\n  `Replacement: True` on IAM resources before deploying.\n\n- **Stack policy and drift are silent rollback blockers.** A stack\n  policy with `Deny` on `Update:Replace` or `Update:Delete` prevents\n  CloudFormation from modifying resources during rollback. Drift means\n  the expected state doesn't match reality. Both produce generic error\n  messages — always check `get-stack-policy` and\n  `describe-stack-resource-drifts` proactively.\n\n## Quick reference — rollback triage table\n\n| Stack status \u002F event pattern | Most likely layer | First probe |\n|---|---|---|\n| `UPDATE_ROLLBACK_FAILED` | UPDATE_ROLLBACK_FAILED | `describe-stack-events` for the blocking resource |\n| Custom resource timeout; \"timed out waiting for response\" | CUSTOM_RESOURCE_TIMEOUT | Lambda logs; Lambda Timeout config |\n| `AWS::CloudFormation::Stack` (nested) in failed events | NESTED_STACK_CASCADE | `describe-stacks` on child; child status |\n| IAM resource `Replacement: True`; deletion failed | IAM_REPLACEMENT | `get-template-summary`; `iam list-attached-role-policies` |\n| \"Resource not in expected state\" \u002F drift | DRIFT_DETECTION | `describe-stack-resource-drifts` |\n| \"Action not allowed by stack policy\" | STACK_POLICY_BLOCKING | `get-stack-policy` |\n| \"Cannot delete: in use\" \u002F \"dependent resources\" | DEPENDENT_RESOURCE_IN_USE | `describe-stack-resources` for dependencies |\n| RDS\u002FAurora cluster deletion failed | RDS_SNAPSHOT_REQUIRED | `rds describe-db-snapshots`; `DeletionPolicy` |\n| Partial failure; `DisableRollback: true` was set | DISABLE_ROLLBACK_PARTIAL | `describe-stacks` DisableRollback |\n| ChangeSet create\u002Fexecute rejected | CHANGESET_REJECTED | `describe-change-set` |\n| None of the above | INSUFFICIENT_DATA → escalate | AWS Health `describe-events` |\n\n## Pre-flight: stack state and gather-info gate\n\nPre-flight command listing (stack state, events, policy, drift, template summary) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before running the rollback diagnostic walk.\n\nIf the input is malformed (missing StackName, absent stack status, no\nerror events), emit INSUFFICIENT_DATA with the missing pieces\n(StackName\u002FStackId, StackStatus, ResourceStatusReason from the most\nrecent FAILED event).\n\n## Process — Rollback diagnostic decision tree\n\nThe tree is symptom-driven. Pick the entry point based on the stack\nstatus and event pattern, then walk the probes in order. **Never emit\nROOT_CAUSE_IDENTIFIED without a failing probe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change rollback diagnosis\n\nStep 0 non-obvious rollback behaviours moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when the rollback failure mode is not obvious.\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| Stack in `UPDATE_ROLLBACK_FAILED`; no specific resource identified | Step 2 |\n| Custom resource in failed events; \"timed out\" or \"no response\" | Step 3 |\n| `AWS::CloudFormation::Stack` (nested) in failed events | Step 4 |\n| IAM resource deletion\u002Frecreation failed during rollback | Step 5 |\n| \"Resource not in expected state\" or drift in events | Step 6 |\n| \"Action not allowed by stack policy\" in events | Step 7 |\n| \"Cannot delete\" \u002F \"in use\" \u002F \"has dependent\" in events | Step 8 |\n| RDS\u002FAurora deletion failed | Step 9 |\n| Stack has `DisableRollback: true` | Step 10 |\n| ChangeSet was rejected | Step 11 |\n| None of the above | Step 12 |\n\n### Step 2: UPDATE_ROLLBACK_FAILED — identify the blocking resource\n\n```bash\naws cloudformation describe-stack-events \\\n  --stack-name \u003Cname-or-arn> --output json | \\\n  jq '.StackEvents[] | select(.ResourceStatus | test(\"FAILED\")) | \\\n      {Timestamp, LogicalResourceId, ResourceType, ResourceStatusReason}'\n```\n\nThe most recent `UPDATE_FAILED` or `DELETE_FAILED` event names the\nblocking resource; `ResourceStatusReason` contains the error message.\nJump to the branch matching the resource type and error.\n\nIf the operator's goal is to unblock immediately, `continue-update-rollback\n--resources-to-skip \u003CLogicalResourceId>` bypasses the stuck resource. But\nalways diagnose first.\n\n### Step 3: CUSTOM_RESOURCE_TIMEOUT — the #1 rollback blocker\n\nSymptom: stack events show a `Custom::` or\n`AWS::CloudFormation::CustomResource` with `UPDATE_FAILED` or\n`DELETE_FAILED` and the reason includes \"timed out,\" \"no response,\" or\n\"Provider returned error.\"\n\nCUSTOM_RESOURCE_TIMEOUT probes (ServiceToken lookup + Lambda log filter) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when diagnosing a custom resource that timed out.\n\nCommon custom resource failure patterns:\n\n| Pattern | Cause |\n|---|---|\n| Lambda timed out (default 3s) | Provider Timeout too low; raise to 30-60s. |\n| \"No response received\" | Lambda sent response to wrong URL, or didn't call `cfnresponse.send`. |\n| \"Provider function not found\" | ServiceToken (Lambda ARN) was deleted or wrong region. |\n| Works on CREATE, fails on DELETE | Provider doesn't handle `RequestType: Delete`. |\n| Works on UPDATE, fails on ROLLBACK | Provider doesn't handle `RequestType: Update` with old properties. |\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CUSTOM_RESOURCE_TIMEOUT`.\n\nFixes: raise the Lambda Timeout; ensure it handles all `RequestType`\nvalues and calls `cfnresponse.send`; or bypass with\n`--resources-to-skip`.\n\n### Step 4: NESTED_STACK_CASCADE — child stack blocks parent\n\nSymptom: stack events show `AWS::CloudFormation::Stack` (nested) with\n`UPDATE_FAILED` or `UPDATE_ROLLBACK_FAILED`.\n\n```bash\n# Get child stack ARN and status\naws cloudformation describe-stack-resource \\\n  --stack-name \u003Cparent> --logical-resource-id \u003Cnested-stack-id> \\\n  --output json | jq '.StackResourceDetail.PhysicalResourceId'\n\naws cloudformation describe-stacks --stack-name \u003Cchild-arn> --output json | \\\n  jq '.Stacks[0].StackStatus'\n```\n\nIf the child is `UPDATE_ROLLBACK_FAILED`, fix the child first: diagnose\nthe child's blocking resource (recurse through Steps 2-11 for the child),\nrun `continue-update-rollback` on the child, then on the parent.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: NESTED_STACK_CASCADE`.\n\n### Step 5: IAM_REPLACEMENT — replacement can't be rolled back\n\nSymptom: stack events show an IAM resource with `DELETE_FAILED` during\nrollback. The error mentions \"cannot delete\" or \"is attached to.\"\n\nIAM_REPLACEMENT probes (role attachments + template summary) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when an IAM resource blocks the rollback.\n\nThe old IAM resource's deletion fails if it has active sessions, is\nattached to instance profiles, or the policy is attached to principals.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: IAM_REPLACEMENT`.\n\nFixes: detach old role from profiles\u002Fpolicies; wait for sessions to\nexpire; bypass with `--resources-to-skip`. For future: use\n`UpdateReplacePolicy: Retain`.\n\n### Step 6: DRIFT_DETECTION — drifted resources block rollback\n\nSymptom: stack events show \"Resource not in expected state\" or rollback\nfails on a manually-modified resource.\n\n```bash\naws cloudformation detect-stack-drift --stack-name \u003Cname> --output json\naws cloudformation describe-stack-resource-drifts \\\n  --stack-name \u003Cname> --output json | \\\n  jq '.StackResourceDrifts[] | select(.StackResourceDriftStatus != \"IN_SYNC\")'\n```\n\nDrifted resources that block rollback include: Security Groups with\nmanually-added rules, IAM roles with manually-attached policies, S3\nbuckets with changed settings, DynamoDB tables with changed billing.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DRIFT_DETECTION`.\n\nFixes: re-sync the drifted resource (revert to match template, or update\ntemplate to match reality); bypass with `--resources-to-skip`.\n\n### Step 7: STACK_POLICY_BLOCKING — Deny rules prevent rollback\n\nSymptom: stack events show \"Action not allowed by stack policy.\"\n\n```bash\naws cloudformation get-stack-policy --stack-name \u003Cname> --output json\n```\n\nA stack policy with `Deny` on `Update:Replace`, `Update:Delete`, or\n`Update:Modify` prevents CloudFormation from modifying those resources\neven during rollback.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: STACK_POLICY_BLOCKING`.\n\nFix: temporarily grant an `Allow` override for the specific resource\nduring the rollback, then restore the protective policy:\n\nTemporary Allow-policy swap sequence moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when a stack policy blocks the rollback.\n\n### Step 8: DEPENDENT_RESOURCE_IN_USE — cannot delete in-use resource\n\nSymptom: stack events show `DELETE_FAILED` with \"Cannot delete\" or\n\"resource is in use.\"\n\n```bash\naws cloudformation describe-stack-resources \\\n  --stack-name \u003Cname> --output json | \\\n  jq '.StackResources[] | {LogicalResourceId, PhysicalResourceId, ResourceType}'\n```\n\nCommon patterns: Security Groups blocked by ENIs\u002Finstances; IAM Roles\nblocked by active sessions; S3 Buckets blocked by objects; RDS Subnet\nGroups blocked by instances; ALB blocked by listeners\u002Ftargets.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DEPENDENT_RESOURCE_IN_USE`.\n\nFixes: remove the dependency manually (delete ENI, detach role, empty\nbucket); bypass with `--resources-to-skip`.\n\n### Step 9: RDS_SNAPSHOT_REQUIRED — RDS\u002FAurora snapshot before deletion\n\nSymptom: stack events show `DELETE_FAILED` on RDS with \"Cannot delete\nwithout final snapshot.\"\n\n```bash\naws cloudformation get-template --stack-name \u003Cname> --output json | \\\n  jq '.TemplateBody.Resources.\u003CRdsId>.DeletionPolicy \u002F\u002F \"Delete\"'\n\naws rds describe-db-cluster-snapshots \\\n  --db-cluster-identifier \u003Cid> --output json 2>\u002Fdev\u002Fnull\n```\n\nIf `DeletionPolicy: Snapshot`, CFN tries to create a final snapshot\nbefore deleting. If the snapshot fails (name conflict, storage full),\ndeletion fails.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: RDS_SNAPSHOT_REQUIRED`.\n\nFixes: manually create the final snapshot then retry; or set\n`DeletionPolicy: Delete` for non-production; or bypass with\n`--resources-to-skip`.\n\n### Step 10: DISABLE_ROLLBACK_PARTIAL — no rollback occurred\n\nSymptom: `describe-stacks` shows `DisableRollback: true` and the stack\nstatus is `CREATE_FAILED` or `UPDATE_FAILED`. Resources created before\nthe failure still exist.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DISABLE_ROLLBACK_PARTIAL`.\n\nFixes: diagnose the original failure resource; fix the template\u002Fresource\nthen `update-stack` to retry; or `delete-stack` to clean up.\n\n### Step 11: CHANGESET_REJECTED — ChangeSet validation failed\n\n```bash\naws cloudformation describe-change-set \\\n  --stack-name \u003Cname> --change-set-name \u003Cid> --output json | \\\n  jq '{Status, StatusReason, Changes[].ResourceChange}'\n```\n\nCommon causes: template syntax error, circular dependency, resource\nlimit exceeded (500 per stack), nested child template errors.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CHANGESET_REJECTED`.\n\nFix: fix the template error, create a new ChangeSet, review, execute.\n\n### Step 12: INSUFFICIENT_DATA \u002F escalate\n\nIf no probe produced a positive match, emit INSUFFICIENT_DATA with the\nspecific missing pieces, OR escalate to AWS Support if a regional\nCloudFormation event is present in `aws health describe-events`.\n\n## Output format\n\n```text\nTARGET: \u003Cstack-name or StackId>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nREASON: \u003C1-2 sentences naming the failed layer and the failing probe>\nLAYER: \u003CUPDATE_ROLLBACK_FAILED | CUSTOM_RESOURCE_TIMEOUT |\n        NESTED_STACK_CASCADE | IAM_REPLACEMENT | DRIFT_DETECTION |\n        STACK_POLICY_BLOCKING | DEPENDENT_RESOURCE_IN_USE |\n        RDS_SNAPSHOT_REQUIRED | DISABLE_ROLLBACK_PARTIAL |\n        CHANGESET_REJECTED | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — stack status and error event>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cstack> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — Custom resource timeout blocking rollback\n\n```text\nTARGET: prod-infrastructure\nVERDICT: ROOT_CAUSE_IDENTIFIED\nREASON: The stack is in UPDATE_ROLLBACK_FAILED. The blocking resource is\n  Custom::AppConfig (LogicalId: AppConfigCustomResource). The provider\n  Lambda function timed out at 3s while processing a Delete request during\n  rollback. CloudFormation waited the full hour, then failed. The Lambda's\n  logs show \"Task timed out after 3.00 seconds\" with the last line\n  \"Processing Delete request for AppConfig.\"\nLAYER: CUSTOM_RESOURCE_TIMEOUT\nEVIDENCE:\n  - Symptom: stack prod-infrastructure is UPDATE_ROLLBACK_FAILED.\n    describe-stack-events shows AppConfigCustomResource with\n    DELETE_FAILED: \"Custom Resource timed out waiting for provider.\"\n  - Probe: aws logs filter-log-events on the provider Lambda returns\n    \"Task timed out after 3.00 seconds\" — the Lambda started processing\n    but didn't finish within 3 seconds.\n  - Probe: aws lambda get-function-configuration returns Timeout: 3.\n  - Passing: no nested stacks; no IAM Replacement: True; no drift;\n    stack policy allows all updates.\nREMEDIATION:\n  1. Immediate unblock: bypass the stuck custom resource:\n     aws cloudformation continue-update-rollback \\\n       --stack-name prod-infrastructure \\\n       --resources-to-skip AppConfigCustomResource --profile \u003Cp>\n  2. Fix the provider Lambda: raise Timeout to 30s and ensure it\n     handles RequestType: Delete:\n     aws lambda update-function-configuration \\\n       --function-name appconfig-custom-resource-provider \\\n       --timeout 30 --profile \u003Cp>\nCONFIRM: Before running continue-update-rollback, emit and await:\n  \"CONFIRM: About to continue-update-rollback on prod-infrastructure,\n   skipping AppConfigCustomResource. The custom resource may be\n   orphaned. Proceed? (yes\u002Fno)\"\n```\n\nAdditional worked examples (nested stack cascade, stack policy blocking)\nappear in `examples\u002FREADME.md`.\n\n## Anti-Patterns — NEVER\n\n- NEVER run `continue-update-rollback` without first identifying the\n  specific blocking resource from `describe-stack-events`.\n\n- NEVER run `--resources-to-skip` without warning the operator that\n  skipped resources become orphaned — they still exist physically and\n  may incur charges.\n\n- NEVER try `update-stack` on a stack in `UPDATE_ROLLBACK_FAILED` state.\n  Only `continue-update-rollback` and `delete-stack` are valid.\n\n- NEVER delete a nested child stack's resources directly while the parent\n  is in `UPDATE_ROLLBACK_FAILED`. Fix the child first, then the parent.\n\n- NEVER assume the custom resource's provider Lambda handles all\n  RequestTypes. Create-only providers are the most common rollback\n  blocker — they don't handle Delete.\n\n- NEVER change IAM resource properties with `Replacement: True` without\n  checking `get-template-summary` first. IAM replacements delete the old\n  resource — if it's in use, the rollback fails.\n\n- NEVER set `DeletionPolicy: Delete` on production RDS\u002FAurora without a\n  backup strategy. Use `DeletionPolicy: Snapshot`.\n\n- NEVER ignore drift. A stack with drifted resources may fail rollback\n  even if drift hasn't been formally detected. Always run\n  `detect-stack-drift` proactively.\n\n- NEVER leave a temporary `Allow` stack policy in place after a rollback.\n  Always restore the original protective policy.\n\n- NEVER conflate `delete-stack` with rollback. `delete-stack` removes all\n  resources; rollback returns them to the previous template state.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`continue-update-rollback`, `set-stack-policy`, `delete-stack`,\n  `execute-change-set`), emit and await operator approval.\n\n- **Read-only first.** Every probe is read-only. Do not perform\n  state-changing operations as diagnostic probes.\n\n- **`continue-update-rollback`** is the primary fix. Resources in\n  `--resources-to-skip` are marked as rolled back without CFN touching\n  them (orphaned).\n\n- **`set-stack-policy`** temporarily overrides protective policies.\n  Always restore the original after the rollback.\n\n- **`delete-stack`** is destructive — it removes all resources. Only use\n  when the stack is unrecoverable.\n\n- **IAM resource changes** with `Replacement: True` are irreversible\n  during rollback. Verify no active dependencies before deploying.\n\n## References (load on demand)\n\n- [references\u002Fstack-status-and-policy-reference.md](references\u002Fstack-status-and-policy-reference.md) — stack status, drift, and stack policy reference.\n- [references\u002Fcustom-resource-and-nested-stack-reference.md](references\u002Fcustom-resource-and-nested-stack-reference.md) — custom resource and nested stack rollback reference.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather-info listing and Step 3 \u002F 5 \u002F 7 probe commands moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 non-obvious rollback behaviours moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F CloudFormation Infrastructure as Code, Stack Lifecycle\nManagement, Rollback Diagnostics, and Nested Stack Orchestration.\n\n## AWS documentation\n\n- **ContinueUpdateRollback** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-continueupdaterollback.html\n- **Stack updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks.html\n- **Custom resources** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Ftemplate-custom-resources.html\n- **Nested stacks** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-nested-stacks.html\n- **Stack policy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fprotect-stack-resources.html\n- **Drift detection** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-stack-drift.html\n- **DeletionPolicy \u002F UpdateReplacePolicy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-attribute-deletionpolicy.html\n- **ChangeSets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-changesets.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n","# CloudFormation Stack Rollback Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (first plausible match drives the first probe):**\n  `UPDATE_ROLLBACK_FAILED` state → UPDATE_ROLLBACK_FAILED (requires\n  ContinueUpdateRollback); custom resource timeout in events →\n  CUSTOM_RESOURCE_TIMEOUT (the #1 rollback blocker); nested stack in\n  events → NESTED_STACK_CASCADE; IAM resource with `Replacement: True`\n  → IAM_REPLACEMENT; drift detected → DRIFT_DETECTION; stack policy\n  Deny → STACK_POLICY_BLOCKING; \"Cannot delete: in use\" →\n  DEPENDENT_RESOURCE_IN_USE; RDS\u002FAurora in template →\n  RDS_SNAPSHOT_REQUIRED.\n- **UPDATE_ROLLBACK_FAILED requires ContinueUpdateRollback.** A stack\n  in `UPDATE_ROLLBACK_FAILED` state cannot be updated normally — the\n  only forward paths are `continue-update-rollback` (retry the rollback\n  optionally skipping specific resources) or deleting the stack.\n  Operators who try `update-stack` get a `ValidationError`.\n- **Custom resource Lambda timeout is the #1 rollback blocker.** When\n  a custom resource's provider Lambda fails to send a SUCCESS\u002FFAILED\n  response to the CFN signal URL (timeout, crash, wrong URL),\n  CloudFormation waits up to 1 hour, then fails. The rollback then\n  fails because CFN can't delete or update the custom resource — it's\n  still \"waiting.\" Use `continue-update-rollback --resources-to-skip`\n  to bypass the stuck resource.\n- **Nested stack rollback cascades.** When a parent stack rolls back,\n  each child stack rolls back independently. A child stuck in\n  `UPDATE_ROLLBACK_FAILED` blocks the parent. The child must be fixed\n  first (ContinueUpdateRollback on the child), then the parent.\n- **IAM replacement is irreversible during rollback.** Changing a\n  property with `UpdateBehavior: Replacement` on an IAM resource\n  creates a new resource and deletes the old. The old resource's\n  deletion can fail if it's still attached — the rollback then fails.\n- **Drift blocks clean rollback.** If a resource has been modified\n  outside CloudFormation, the rollback may fail because the expected\n  (template) state doesn't match the actual (drifted) state. Run\n  `detect-stack-drift` and review before retrying rollback.\n\n## Mindset\n\nA CloudFormation rollback failure is almost always one specific resource\nthat cannot be returned to its previous state. The stack is not broken\n— one resource is stuck. Senior CloudFormation engineers do not retry\nthe entire rollback; they identify the specific resource from\n`describe-stack-events`, understand why that resource's rollback failed\n(custom resource timeout, dependent resource, drift, IAM replacement),\nand fix or bypass that resource with `continue-update-rollback\n--resources-to-skip`.\n\n## Philosophy\n\nFive behaviours separate a senior CloudFormation engineer from a\ngeneralist on rollback incidents:\n\n- **UPDATE_ROLLBACK_FAILED is a terminal state requiring a specific\n  action.** A stack in this state cannot receive normal updates. The\n  only forward paths are `continue-update-rollback` (retry, optionally\n  skipping specific resources) or deleting the stack.\n\n- **Custom resource timeout is the #1 rollback blocker by frequency.**\n  Custom resources (`Custom::` type, `AWS::CloudFormation::CustomResource`)\n  rely on a provider Lambda to send SUCCESS\u002FFAILED to a pre-signed S3\n  URL. If the Lambda times out, crashes, or sends to the wrong URL,\n  CloudFormation waits up to 1 hour, then fails. During rollback, the\n  same custom resource must be deleted or updated — and the same\n  timeout\u002Fcrash recurs.\n\n- **Nested stack rollback cascades from child to parent.** When a parent\n  update triggers a child update that fails, the parent rolls back. The\n  parent's rollback includes rolling back the child. If the child is\n  stuck in `UPDATE_ROLLBACK_FAILED`, the parent's rollback also fails.\n  Always fix the deepest child first.\n\n- **IAM replacement is irreversible during rollback.** Changing an IAM\n  resource property with `Replacement: True` creates a new resource and\n  deletes the old. The old resource's deletion fails if any entity\n  still assumes it. Always check `get-template-summary` for\n  `Replacement: True` on IAM resources before deploying.\n\n- **Stack policy and drift are silent rollback blockers.** A stack\n  policy with `Deny` on `Update:Replace` or `Update:Delete` prevents\n  CloudFormation from modifying resources during rollback. Drift means\n  the expected state doesn't match reality. Both produce generic error\n  messages — always check `get-stack-policy` and\n  `describe-stack-resource-drifts` proactively.\n\n## Quick reference — rollback triage table\n\n| Stack status \u002F event pattern | Most likely layer | First probe |\n|---|---|---|\n| `UPDATE_ROLLBACK_FAILED` | UPDATE_ROLLBACK_FAILED | `describe-stack-events` for the blocking resource |\n| Custom resource timeout; \"timed out waiting for response\" | CUSTOM_RESOURCE_TIMEOUT | Lambda logs; Lambda Timeout config |\n| `AWS::CloudFormation::Stack` (nested) in failed events | NESTED_STACK_CASCADE | `describe-stacks` on child; child status |\n| IAM resource `Replacement: True`; deletion failed | IAM_REPLACEMENT | `get-template-summary`; `iam list-attached-role-policies` |\n| \"Resource not in expected state\" \u002F drift | DRIFT_DETECTION | `describe-stack-resource-drifts` |\n| \"Action not allowed by stack policy\" | STACK_POLICY_BLOCKING | `get-stack-policy` |\n| \"Cannot delete: in use\" \u002F \"dependent resources\" | DEPENDENT_RESOURCE_IN_USE | `describe-stack-resources` for dependencies |\n| RDS\u002FAurora cluster deletion failed | RDS_SNAPSHOT_REQUIRED | `rds describe-db-snapshots`; `DeletionPolicy` |\n| Partial failure; `DisableRollback: true` was set | DISABLE_ROLLBACK_PARTIAL | `describe-stacks` DisableRollback |\n| ChangeSet create\u002Fexecute rejected | CHANGESET_REJECTED | `describe-change-set` |\n| None of the above | INSUFFICIENT_DATA → escalate | AWS Health `describe-events` |\n\n## Pre-flight: stack state and gather-info gate\n\nPre-flight command listing (stack state, events, policy, drift, template summary) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before running the rollback diagnostic walk.\n\nIf the input is malformed (missing StackName, absent stack status, no\nerror events), emit INSUFFICIENT_DATA with the missing pieces\n(StackName\u002FStackId, StackStatus, ResourceStatusReason from the most\nrecent FAILED event).\n\n## Process — Rollback diagnostic decision tree\n\nThe tree is symptom-driven. Pick the entry point based on the stack\nstatus and event pattern, then walk the probes in order. **Never emit\nROOT_CAUSE_IDENTIFIED without a failing probe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change rollback diagnosis\n\nStep 0 non-obvious rollback behaviours moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when the rollback failure mode is not obvious.\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| Stack in `UPDATE_ROLLBACK_FAILED`; no specific resource identified | Step 2 |\n| Custom resource in failed events; \"timed out\" or \"no response\" | Step 3 |\n| `AWS::CloudFormation::Stack` (nested) in failed events | Step 4 |\n| IAM resource deletion\u002Frecreation failed during rollback | Step 5 |\n| \"Resource not in expected state\" or drift in events | Step 6 |\n| \"Action not allowed by stack policy\" in events | Step 7 |\n| \"Cannot delete\" \u002F \"in use\" \u002F \"has dependent\" in events | Step 8 |\n| RDS\u002FAurora deletion failed | Step 9 |\n| Stack has `DisableRollback: true` | Step 10 |\n| ChangeSet was rejected | Step 11 |\n| None of the above | Step 12 |\n\n### Step 2: UPDATE_ROLLBACK_FAILED — identify the blocking resource\n\n```bash\naws cloudformation describe-stack-events \\\n  --stack-name \u003Cname-or-arn> --output json | \\\n  jq '.StackEvents[] | select(.ResourceStatus | test(\"FAILED\")) | \\\n      {Timestamp, LogicalResourceId, ResourceType, ResourceStatusReason}'\n```\n\nThe most recent `UPDATE_FAILED` or `DELETE_FAILED` event names the\nblocking resource; `ResourceStatusReason` contains the error message.\nJump to the branch matching the resource type and error.\n\nIf the operator's goal is to unblock immediately, `continue-update-rollback\n--resources-to-skip \u003CLogicalResourceId>` bypasses the stuck resource. But\nalways diagnose first.\n\n### Step 3: CUSTOM_RESOURCE_TIMEOUT — the #1 rollback blocker\n\nSymptom: stack events show a `Custom::` or\n`AWS::CloudFormation::CustomResource` with `UPDATE_FAILED` or\n`DELETE_FAILED` and the reason includes \"timed out,\" \"no response,\" or\n\"Provider returned error.\"\n\nCUSTOM_RESOURCE_TIMEOUT probes (ServiceToken lookup + Lambda log filter) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when diagnosing a custom resource that timed out.\n\nCommon custom resource failure patterns:\n\n| Pattern | Cause |\n|---|---|\n| Lambda timed out (default 3s) | Provider Timeout too low; raise to 30-60s. |\n| \"No response received\" | Lambda sent response to wrong URL, or didn't call `cfnresponse.send`. |\n| \"Provider function not found\" | ServiceToken (Lambda ARN) was deleted or wrong region. |\n| Works on CREATE, fails on DELETE | Provider doesn't handle `RequestType: Delete`. |\n| Works on UPDATE, fails on ROLLBACK | Provider doesn't handle `RequestType: Update` with old properties. |\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CUSTOM_RESOURCE_TIMEOUT`.\n\nFixes: raise the Lambda Timeout; ensure it handles all `RequestType`\nvalues and calls `cfnresponse.send`; or bypass with\n`--resources-to-skip`.\n\n### Step 4: NESTED_STACK_CASCADE — child stack blocks parent\n\nSymptom: stack events show `AWS::CloudFormation::Stack` (nested) with\n`UPDATE_FAILED` or `UPDATE_ROLLBACK_FAILED`.\n\n```bash\n# Get child stack ARN and status\naws cloudformation describe-stack-resource \\\n  --stack-name \u003Cparent> --logical-resource-id \u003Cnested-stack-id> \\\n  --output json | jq '.StackResourceDetail.PhysicalResourceId'\n\naws cloudformation describe-stacks --stack-name \u003Cchild-arn> --output json | \\\n  jq '.Stacks[0].StackStatus'\n```\n\nIf the child is `UPDATE_ROLLBACK_FAILED`, fix the child first: diagnose\nthe child's blocking resource (recurse through Steps 2-11 for the child),\nrun `continue-update-rollback` on the child, then on the parent.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: NESTED_STACK_CASCADE`.\n\n### Step 5: IAM_REPLACEMENT — replacement can't be rolled back\n\nSymptom: stack events show an IAM resource with `DELETE_FAILED` during\nrollback. The error mentions \"cannot delete\" or \"is attached to.\"\n\nIAM_REPLACEMENT probes (role attachments + template summary) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when an IAM resource blocks the rollback.\n\nThe old IAM resource's deletion fails if it has active sessions, is\nattached to instance profiles, or the policy is attached to principals.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: IAM_REPLACEMENT`.\n\nFixes: detach old role from profiles\u002Fpolicies; wait for sessions to\nexpire; bypass with `--resources-to-skip`. For future: use\n`UpdateReplacePolicy: Retain`.\n\n### Step 6: DRIFT_DETECTION — drifted resources block rollback\n\nSymptom: stack events show \"Resource not in expected state\" or rollback\nfails on a manually-modified resource.\n\n```bash\naws cloudformation detect-stack-drift --stack-name \u003Cname> --output json\naws cloudformation describe-stack-resource-drifts \\\n  --stack-name \u003Cname> --output json | \\\n  jq '.StackResourceDrifts[] | select(.StackResourceDriftStatus != \"IN_SYNC\")'\n```\n\nDrifted resources that block rollback include: Security Groups with\nmanually-added rules, IAM roles with manually-attached policies, S3\nbuckets with changed settings, DynamoDB tables with changed billing.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DRIFT_DETECTION`.\n\nFixes: re-sync the drifted resource (revert to match template, or update\ntemplate to match reality); bypass with `--resources-to-skip`.\n\n### Step 7: STACK_POLICY_BLOCKING — Deny rules prevent rollback\n\nSymptom: stack events show \"Action not allowed by stack policy.\"\n\n```bash\naws cloudformation get-stack-policy --stack-name \u003Cname> --output json\n```\n\nA stack policy with `Deny` on `Update:Replace`, `Update:Delete`, or\n`Update:Modify` prevents CloudFormation from modifying those resources\neven during rollback.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: STACK_POLICY_BLOCKING`.\n\nFix: temporarily grant an `Allow` override for the specific resource\nduring the rollback, then restore the protective policy:\n\nTemporary Allow-policy swap sequence moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when a stack policy blocks the rollback.\n\n### Step 8: DEPENDENT_RESOURCE_IN_USE — cannot delete in-use resource\n\nSymptom: stack events show `DELETE_FAILED` with \"Cannot delete\" or\n\"resource is in use.\"\n\n```bash\naws cloudformation describe-stack-resources \\\n  --stack-name \u003Cname> --output json | \\\n  jq '.StackResources[] | {LogicalResourceId, PhysicalResourceId, ResourceType}'\n```\n\nCommon patterns: Security Groups blocked by ENIs\u002Finstances; IAM Roles\nblocked by active sessions; S3 Buckets blocked by objects; RDS Subnet\nGroups blocked by instances; ALB blocked by listeners\u002Ftargets.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DEPENDENT_RESOURCE_IN_USE`.\n\nFixes: remove the dependency manually (delete ENI, detach role, empty\nbucket); bypass with `--resources-to-skip`.\n\n### Step 9: RDS_SNAPSHOT_REQUIRED — RDS\u002FAurora snapshot before deletion\n\nSymptom: stack events show `DELETE_FAILED` on RDS with \"Cannot delete\nwithout final snapshot.\"\n\n```bash\naws cloudformation get-template --stack-name \u003Cname> --output json | \\\n  jq '.TemplateBody.Resources.\u003CRdsId>.DeletionPolicy \u002F\u002F \"Delete\"'\n\naws rds describe-db-cluster-snapshots \\\n  --db-cluster-identifier \u003Cid> --output json 2>\u002Fdev\u002Fnull\n```\n\nIf `DeletionPolicy: Snapshot`, CFN tries to create a final snapshot\nbefore deleting. If the snapshot fails (name conflict, storage full),\ndeletion fails.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: RDS_SNAPSHOT_REQUIRED`.\n\nFixes: manually create the final snapshot then retry; or set\n`DeletionPolicy: Delete` for non-production; or bypass with\n`--resources-to-skip`.\n\n### Step 10: DISABLE_ROLLBACK_PARTIAL — no rollback occurred\n\nSymptom: `describe-stacks` shows `DisableRollback: true` and the stack\nstatus is `CREATE_FAILED` or `UPDATE_FAILED`. Resources created before\nthe failure still exist.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: DISABLE_ROLLBACK_PARTIAL`.\n\nFixes: diagnose the original failure resource; fix the template\u002Fresource\nthen `update-stack` to retry; or `delete-stack` to clean up.\n\n### Step 11: CHANGESET_REJECTED — ChangeSet validation failed\n\n```bash\naws cloudformation describe-change-set \\\n  --stack-name \u003Cname> --change-set-name \u003Cid> --output json | \\\n  jq '{Status, StatusReason, Changes[].ResourceChange}'\n```\n\nCommon causes: template syntax error, circular dependency, resource\nlimit exceeded (500 per stack), nested child template errors.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CHANGESET_REJECTED`.\n\nFix: fix the template error, create a new ChangeSet, review, execute.\n\n### Step 12: INSUFFICIENT_DATA \u002F escalate\n\nIf no probe produced a positive match, emit INSUFFICIENT_DATA with the\nspecific missing pieces, OR escalate to AWS Support if a regional\nCloudFormation event is present in `aws health describe-events`.\n\n## Output format\n\n```text\nTARGET: \u003Cstack-name or StackId>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nREASON: \u003C1-2 sentences naming the failed layer and the failing probe>\nLAYER: \u003CUPDATE_ROLLBACK_FAILED | CUSTOM_RESOURCE_TIMEOUT |\n        NESTED_STACK_CASCADE | IAM_REPLACEMENT | DRIFT_DETECTION |\n        STACK_POLICY_BLOCKING | DEPENDENT_RESOURCE_IN_USE |\n        RDS_SNAPSHOT_REQUIRED | DISABLE_ROLLBACK_PARTIAL |\n        CHANGESET_REJECTED | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — stack status and error event>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cstack> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — Custom resource timeout blocking rollback\n\n```text\nTARGET: prod-infrastructure\nVERDICT: ROOT_CAUSE_IDENTIFIED\nREASON: The stack is in UPDATE_ROLLBACK_FAILED. The blocking resource is\n  Custom::AppConfig (LogicalId: AppConfigCustomResource). The provider\n  Lambda function timed out at 3s while processing a Delete request during\n  rollback. CloudFormation waited the full hour, then failed. The Lambda's\n  logs show \"Task timed out after 3.00 seconds\" with the last line\n  \"Processing Delete request for AppConfig.\"\nLAYER: CUSTOM_RESOURCE_TIMEOUT\nEVIDENCE:\n  - Symptom: stack prod-infrastructure is UPDATE_ROLLBACK_FAILED.\n    describe-stack-events shows AppConfigCustomResource with\n    DELETE_FAILED: \"Custom Resource timed out waiting for provider.\"\n  - Probe: aws logs filter-log-events on the provider Lambda returns\n    \"Task timed out after 3.00 seconds\" — the Lambda started processing\n    but didn't finish within 3 seconds.\n  - Probe: aws lambda get-function-configuration returns Timeout: 3.\n  - Passing: no nested stacks; no IAM Replacement: True; no drift;\n    stack policy allows all updates.\nREMEDIATION:\n  1. Immediate unblock: bypass the stuck custom resource:\n     aws cloudformation continue-update-rollback \\\n       --stack-name prod-infrastructure \\\n       --resources-to-skip AppConfigCustomResource --profile \u003Cp>\n  2. Fix the provider Lambda: raise Timeout to 30s and ensure it\n     handles RequestType: Delete:\n     aws lambda update-function-configuration \\\n       --function-name appconfig-custom-resource-provider \\\n       --timeout 30 --profile \u003Cp>\nCONFIRM: Before running continue-update-rollback, emit and await:\n  \"CONFIRM: About to continue-update-rollback on prod-infrastructure,\n   skipping AppConfigCustomResource. The custom resource may be\n   orphaned. Proceed? (yes\u002Fno)\"\n```\n\nAdditional worked examples (nested stack cascade, stack policy blocking)\nappear in `examples\u002FREADME.md`.\n\n## Anti-Patterns — NEVER\n\n- NEVER run `continue-update-rollback` without first identifying the\n  specific blocking resource from `describe-stack-events`.\n\n- NEVER run `--resources-to-skip` without warning the operator that\n  skipped resources become orphaned — they still exist physically and\n  may incur charges.\n\n- NEVER try `update-stack` on a stack in `UPDATE_ROLLBACK_FAILED` state.\n  Only `continue-update-rollback` and `delete-stack` are valid.\n\n- NEVER delete a nested child stack's resources directly while the parent\n  is in `UPDATE_ROLLBACK_FAILED`. Fix the child first, then the parent.\n\n- NEVER assume the custom resource's provider Lambda handles all\n  RequestTypes. Create-only providers are the most common rollback\n  blocker — they don't handle Delete.\n\n- NEVER change IAM resource properties with `Replacement: True` without\n  checking `get-template-summary` first. IAM replacements delete the old\n  resource — if it's in use, the rollback fails.\n\n- NEVER set `DeletionPolicy: Delete` on production RDS\u002FAurora without a\n  backup strategy. Use `DeletionPolicy: Snapshot`.\n\n- NEVER ignore drift. A stack with drifted resources may fail rollback\n  even if drift hasn't been formally detected. Always run\n  `detect-stack-drift` proactively.\n\n- NEVER leave a temporary `Allow` stack policy in place after a rollback.\n  Always restore the original protective policy.\n\n- NEVER conflate `delete-stack` with rollback. `delete-stack` removes all\n  resources; rollback returns them to the previous template state.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`continue-update-rollback`, `set-stack-policy`, `delete-stack`,\n  `execute-change-set`), emit and await operator approval.\n\n- **Read-only first.** Every probe is read-only. Do not perform\n  state-changing operations as diagnostic probes.\n\n- **`continue-update-rollback`** is the primary fix. Resources in\n  `--resources-to-skip` are marked as rolled back without CFN touching\n  them (orphaned).\n\n- **`set-stack-policy`** temporarily overrides protective policies.\n  Always restore the original after the rollback.\n\n- **`delete-stack`** is destructive — it removes all resources. Only use\n  when the stack is unrecoverable.\n\n- **IAM resource changes** with `Replacement: True` are irreversible\n  during rollback. Verify no active dependencies before deploying.\n\n## References (load on demand)\n\n- [references\u002Fstack-status-and-policy-reference.md](references\u002Fstack-status-and-policy-reference.md) — stack status, drift, and stack policy reference.\n- [references\u002Fcustom-resource-and-nested-stack-reference.md](references\u002Fcustom-resource-and-nested-stack-reference.md) — custom resource and nested stack rollback reference.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight gather-info listing and Step 3 \u002F 5 \u002F 7 probe commands moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 non-obvious rollback behaviours moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F CloudFormation Infrastructure as Code, Stack Lifecycle\nManagement, Rollback Diagnostics, and Nested Stack Orchestration.\n\n## AWS documentation\n\n- **ContinueUpdateRollback** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-continueupdaterollback.html\n- **Stack updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks.html\n- **Custom resources** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Ftemplate-custom-resources.html\n- **Nested stacks** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-nested-stacks.html\n- **Stack policy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fprotect-stack-resources.html\n- **Drift detection** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-stack-drift.html\n- **DeletionPolicy \u002F UpdateReplacePolicy** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-attribute-deletionpolicy.html\n- **ChangeSets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-changesets.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"cloudformation, devtools, troubleshooting, rollback, update-rollback-failed, custom-resource, nested-stack, drift, stack-policy, changeset","2","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","CloudFormation, stack rollback, UPDATE_ROLLBACK_FAILED, rollback failure, ContinueUpdateRollback, custom resource timeout, custom resource Lambda, nested stack rollback, nested stack cascade, IAM replacement, drift detection, stack drift, stack policy, dependent resources, RDS snapshot, Aurora snapshot, DisableRollback, ChangeSet, rollback vs update, stack delete, CloudFormation troubleshooting","troubleshoot","high","false","capability","Diagnosing a CloudFormation stack rollback failure where the root cause may be custom resource Lambda timeout (no CFN signal — the","true","ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA","Initial CloudFormation deployment failures (use cloudformation-stack-troubleshooter), CloudFormation drift posture audits (use cloudformation-drift-troubleshooter), Terraform or CDK-level debugging (use the IaC tool's own diagnostics), or IAM policy authoring (use iam-least-privilege-advisor). This skill diagnoses rollback failures; it does not author templates or audit steady-state drift posture.","active","Input: either (a) a rollback failure symptom description (stack status, StackId, error event message from describe-stack-events), optionally paired with the stack configuration (describe-stacks output, template summary, recent events), OR (b) a StackName or StackId plus the specific resource that failed to roll back for live-account diagnosis. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FLAYER\u002FEVIDENCE\u002FREMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {UPDATE_ROLLBACK_FAILED, CUSTOM_RESOURCE_TIMEOUT, NESTED_STACK_CASCADE, IAM_REPLACEMENT, DRIFT_DETECTION, STACK_POLICY_BLOCKING, DEPENDENT_RESOURCE_IN_USE, RDS_SNAPSHOT_REQUIRED, DISABLE_ROLLBACK_PARTIAL, CHANGESET_REJECTED, UNKNOWN}.","# Minimal valid input (offline symptom classification):\nSymptom: \"CloudFormation stack prod-infrastructure is stuck in\nUPDATE_ROLLBACK_FAILED after a failed update. The stack event shows\n'CustomResource' timed out waiting for response from the Lambda\nfunction. I need to unblock the rollback.\"\nStackName: prod-infrastructure\nStackStatus: UPDATE_ROLLBACK_FAILED\nStackId: arn:aws:cloudformation:us-east-1:111111111111:stack\u002Fprod-infrastructure\u002Fabc-123\nFailedResource: Custom::AppConfig (LogicalId: AppConfigCustomResource)\nErrorEvent: \"Custom resource failed: Provider Lambda function timed out\n  (60s) without sending a response to the CloudFormation signal URL\"","CloudFormation UPDATE_ROLLBACK_FAILED, CloudFormation rollback failed, stack stuck UPDATE_ROLLBACK_FAILED, ContinueUpdateRollback, custom resource Lambda timeout CloudFormation, custom resource no response CloudFormation, nested stack rollback cascade, CloudFormation rollback cascade, IAM replacement rollback CloudFormation, drift blocking rollback CloudFormation, stack policy preventing rollback, dependent resources cannot delete CloudFormation, RDS snapshot rollback CloudFormation, Aurora snapshot rollback, DisableRollback CloudFormation, ChangeSet rollback preview, rollback vs update CloudFormation, stack delete vs rollback, diagnose CloudFormation rollback","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted stack events and describe-stacks output. Live-account diagnosis uses aws cloudformation describe-stacks, describe-stack-events, describe-stack-resources, get-template-summary, describe-stack-resource-drifts, get-stack-policy, create-change-set, execute-change-set, continue-update-rollback, list-change-sets, and aws lambda get-function-configuration for custom...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudformation-stack-rollback-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-stack-rollback-troubleshooter",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-stack-rollback-troubleshooter",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-stack-rollback-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",12278,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fcustom-resource-lambda-timeout.md",409,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fbaselines\u002Fcustom-resource-lambda-timeout.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fdrift-detection-blocking-rollback.md",497,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fbaselines\u002Fdrift-detection-blocking-rollback.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fnested-stack-cascade-rollback.md",445,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fbaselines\u002Fnested-stack-cascade-rollback.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fstack-policy-blocks-rollback.md",369,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fbaselines\u002Fstack-policy-blocks-rollback.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fupdate-rollback-failed-needs-continue.md",435,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fbaselines\u002Fupdate-rollback-failed-needs-continue.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",2109,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",5407,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fcustom-resource-lambda-timeout.md",1636,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fprompts\u002Fcustom-resource-lambda-timeout.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fdrift-detection-blocking-rollback.md",1666,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fprompts\u002Fdrift-detection-blocking-rollback.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fnested-stack-cascade-rollback.md",1743,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fprompts\u002Fnested-stack-cascade-rollback.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fstack-policy-blocks-rollback.md",1397,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fprompts\u002Fstack-policy-blocks-rollback.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fupdate-rollback-failed-needs-continue.md",1549,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fevals\u002Fprompts\u002Fupdate-rollback-failed-needs-continue.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",8494,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",2020,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fcustom-resource-and-nested-stack-reference.md",10263,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Freferences\u002Fcustom-resource-and-nested-stack-reference.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fdiagnostic-commands.md",2563,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fstack-status-and-policy-reference.md",10568,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Freferences\u002Fstack-status-and-policy-reference.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"skill.usf.yaml",4621,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-stack-rollback-troubleshooter\u002Fskill.usf.yaml",[146,153,160,167,174,181],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]