[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5XZDF1R5H2JC87E82QZZW":3,"skill-same:01M7A5XZDF1R5H2JC87E82QZZW":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":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7A5XZDF1R5H2JC87E82QZZW","codedeploy-deployment-group-auditor",null,"Audits AWS CodeDeploy deployment groups for auto-rollback enablement, CloudWatch alarm monitoring, deployment-config risk (AllAtATime, custom minimum-healthy-hosts of zero), and blue\u002Fgreen termination posture (immediate termination, no traffic control). Emits a deterministic verdict (NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK) per deployment group with enumerated findings and CLI remediation. Use when reviewing CodeDeploy deployment groups, validating rollback configuration, checking alarm coverage, auditing deployment strategy, or hardening blue\u002Fgreen termination before production deployment.","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\u002Fcodedeploy-deployment-group-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: codedeploy-deployment-group-auditor\ndescription: Audits AWS CodeDeploy deployment groups for auto-rollback enablement, CloudWatch alarm monitoring, deployment-config risk (AllAtATime, custom minimum-healthy-hosts of zero), and blue\u002Fgreen termination posture (immediate termination, no traffic control). Emits a deterministic verdict (NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK) per deployment group with enumerated findings and CLI remediation. Use when reviewing CodeDeploy deployment groups, validating rollback configuration, checking alarm coverage, auditing deployment strategy, or hardening blue\u002Fgreen termination before production deployment.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline config classification. Live-account audits use aws deploy get-deployment-group and aws deploy batch-get-deployment-groups (AWS CLI v2, SSO or key-based credentials).\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  verdict_shape: NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK\n  when_to_use: 'Audit a CodeDeploy deployment group before production deployment. Trigger example: \"audit this CodeDeploy deployment group\", \"is auto-rollback enabled on \u003Cdg>?\", \"check CodeDeploy alarms\", \"AllAtATime deployment risk\", \"blue\u002Fgreen termination too fast\". Validates auto-rollback, alarm coverage, deployment-config risk, and blue\u002Fgreen termination posture; emits a deterministic verdict per group.'\n  activation_triggers: audit this CodeDeploy deployment group, is auto-rollback enabled, check CodeDeploy alarm configuration, AllAtATime deployment risk, blue\u002Fgreen termination too fast, deployment config too aggressive, CodeDeploy rollback configuration, deployment strategy audit\n  invocation_schema: 'Input: either (a) a CodeDeploy deployment group JSON document (from aws deploy get-deployment-group), optionally paired with deployment config metadata, OR (b) a deployment group name + application name for live-account audit. Output: deterministic DEPLOYMENT_GROUP\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per deployment group, where VERDICT is in {NO_ROLLBACK, NO_ALARMS, CONFIG_GAP, OK, ERROR}.'\n  invocation_example: \"# Minimal valid input shape (offline audit)\\n{\\n  \\\"deploymentGroupName\\\": \\\"my-dg\\\",\\n  \\\"applicationName\\\": \\\"my-app\\\",\\n  \\\"computePlatform\\\": \\\"Server\\\",\\n  \\\"deploymentConfigName\\\": \\\"CodeDeployDefault.OneAtATime\\\",\\n  \\\"deploymentStyle\\\": {\\\"deploymentType\\\": \\\"IN_PLACE\\\", \\\"deploymentOption\\\": \\\"WITH_TRAFFIC_CONTROL\\\"},\\n  \\\"autoRollbackConfiguration\\\": {\\\"enabled\\\": true, \\\"triggers\\\": [\\\"DEPLOYMENT_FAILURE\\\"]},\\n  \\\"alarmConfiguration\\\": {\\\"enabled\\\": true, \\\"ignorePollAlarmFailure\\\": false,\\n    \\\"alarms\\\": [{\\\"name\\\": \\\"HighErrorRate\\\"}]}\\n}\\n# Expected output (single line per field, fixed order):\\n# DEPLOYMENT_GROUP: my-dg\\n# VERDICT: OK\\n# REASON: All four gates passed (Steps 1-4).\\n# FINDINGS:\\n#   - [OK] autoRollbackConfiguration enabled with DEPLOYMENT_FAILURE (Step 1)\\n#   - [OK] alarmConfiguration enabled with 1 alarm (Step 2)\\n# REMEDIATION: None required.\"\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CodeDeploy, deployment group, auto-rollback, CloudWatch alarms, alarm configuration, deployment config, AllAtATime, OneAtATime, blue\u002Fgreen, blue green, termination wait, MinimumHealthyHosts, deployment strategy, rollback configuration, ignorePollAlarmFailure, Lambda canary, deployment safety, EC2 in-place, ECS blue green, DEPLOYMENT_FAILURE\n  tags: codedeploy, devtools, deployment, rollback, alarms, blue-green, audit\n---\n\n# CodeDeploy Deployment Group Auditor\n\n## Quick start — 4-line decision tree\n\nEvaluate in order; **first match wins.**\n\n1. **No auto-rollback?** (`autoRollbackConfiguration.enabled: false` OR\n   `DEPLOYMENT_FAILURE` missing from triggers) → **NO_ROLLBACK**\n2. **No alarms?** (`alarmConfiguration.enabled: false` OR `alarms` empty)\n   → **NO_ALARMS**\n3. **Risky config?** (`AllAtATime`, zero minimum-healthy-hosts, blue\u002Fgreen\n   0-minute termination, `WITHOUT_TRAFFIC_CONTROL`) → **CONFIG_GAP**\n4. **All clear?** → **OK**\n\n## Mindset\n\nCodeDeploy is the safety gate between a new revision and production\ntraffic. The verdict reflects the **first** safety gate that fails,\nevaluated in priority order — rollback before alarms before config —\nbecause a deployment without automatic rollback is a manual recovery\nexercise regardless of alarm coverage. Rationale: rollback + alarms\npartially mitigate a risky config, but nothing mitigates a missing\nrollback. The full thresholds, edge cases, and operator-only gotchas\nare in the Reference at the end.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `autoRollbackConfiguration` absent or `enabled: false` | **NO_ROLLBACK** | Step 1 |\n| `enabled: true` but `triggers` missing `DEPLOYMENT_FAILURE` | **NO_ROLLBACK** | Step 1 |\n| `alarmConfiguration` absent or `enabled: false` | **NO_ALARMS** | Step 2 |\n| `enabled: true` but `alarms` list empty | **NO_ALARMS** | Step 2 |\n| `deploymentConfigName: CodeDeployDefault.AllAtATime` | **CONFIG_GAP** | Step 3 |\n| Custom config `minimumHealthyHosts` value 0 (HOST_COUNT) or 0% (FLEX_COUNT) | **CONFIG_GAP** | Step 3 |\n| `CodeDeployDefault.LambdaAllAtOnce` | **CONFIG_GAP** | Step 3 |\n| Blue\u002Fgreen with `terminationWaitTimeInMinutes: 0` | **CONFIG_GAP** | Step 4 |\n| `deploymentStyle.deploymentOption: WITHOUT_TRAFFIC_CONTROL` (blue\u002Fgreen) | **CONFIG_GAP** | Step 4 |\n| All dimensions pass | **OK** | Step 5 |\n\nEvaluation is **ordered**: the first matching gate produces the verdict.\nNO_ROLLBACK is evaluated before NO_ALARMS because a deployment without\nrollback is dangerous regardless of alarm coverage.\n\n## Pre-flight: deployment group metadata gate\n\nBefore classification, verify the deployment group JSON is from the correct\nAPI response shape (`get-deployment-group` or `batch-get-deployment-groups`).\nMisidentified inputs produce false positives.\n\n| Attribute | Effect on audit |\n|---|---|\n| `computePlatform` | `Server` (EC2), `Lambda`, or `ECS`. Determines valid deployment configs. Lambda uses `LambdaCanary*` \u002F `LambdaLinear*`; Server uses `OneAtATime` \u002F `HalfAtATime` \u002F `AllAtATime`; ECS uses blue\u002Fgreen with traffic control. |\n| `deploymentStyle.deploymentType` | `IN_PLACE` or `BLUE_GREEN`. Blue\u002Fgreen provisions a replacement fleet — termination config is audited (Step 4). In-place does not. |\n| `deploymentStyle.deploymentOption` | `WITH_TRAFFIC_CONTROL` or `WITHOUT_TRAFFIC_CONTROL`. Only meaningful for blue\u002Fgreen. `WITHOUT_TRAFFIC_CONTROL` bypasses gradual traffic shifting. |\n| `autoRollbackConfiguration` | The authoritative rollback control. Has `enabled` (boolean) and `triggers` (list of `DEPLOYMENT_FAILURE`, `DEPLOYMENT_STOP_ON_ALARM`, `DEPLOYMENT_STOP_ON_REQUEST`). |\n| `alarmConfiguration` | Has `enabled`, `ignorePollAlarmFailure`, and `alarms` (list of alarm-name objects). |\n| `targetRevision` | The app revision tracked by the deployment group. If absent, no known-good rollback target is pinned — note as WARNING. |\n\nLive-account pre-flight checks (IAM read\u002Fupdate permissions, service-role trust per compute platform, config snapshot): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**If the deployment group JSON is malformed** (invalid JSON, missing\n`deploymentGroupName`), output:\n\n```text\nDEPLOYMENT_GROUP: \u003Cname or \"unknown\">\nVERDICT: ERROR\nREASON: Deployment group document is not valid JSON or is missing required fields — cannot classify.\nREMEDIATION: Retrieve the canonical config with `aws deploy get-deployment-group --application-name \u003Capp> --deployment-group-name \u003Cdg> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, first match wins)\n\n### Step 0: Expert knowledge — operator-only behaviors that change classification\n\nAll seven operator-only behaviors (partial triggers, ignorePollAlarmFailure, AllAtATime+rollback, 0-minute termination, single-instance OneAtATime, legacy rollbackEnabled, WITHOUT_TRAFFIC_CONTROL): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 1: Auto-rollback evaluation (highest priority — first gate)\n\nCheck `autoRollbackConfiguration`:\n\n- **Absent or `enabled: false`** → **NO_ROLLBACK**. The deployment has no\n  automatic recovery path. A failed deployment leaves instances in a broken\n  state until an operator manually triggers rollback or redeploys.\n\n- **`enabled: true` but `triggers` missing `DEPLOYMENT_FAILURE`** →\n  **NO_ROLLBACK**. Without the `DEPLOYMENT_FAILURE` trigger, rollback only\n  fires on the specified triggers (alarm breach, manual stop request).\n  Application-level failures that do not trigger an alarm will not auto-rollback.\n\n- **`enabled: true` with `DEPLOYMENT_FAILURE` in triggers** → Pass this gate.\n  The ideal trigger set includes all three: `DEPLOYMENT_FAILURE`,\n  `DEPLOYMENT_STOP_ON_ALARM`, `DEPLOYMENT_STOP_ON_REQUEST`. If\n  `DEPLOYMENT_STOP_ON_REQUEST` is missing, note as a WARNING finding\n  (operators cannot trigger automated rollback mid-deployment) but do not\n  fail the gate — `DEPLOYMENT_FAILURE` is the minimum.\n\n### Step 2: Alarm configuration evaluation (second gate)\n\nCheck `alarmConfiguration`:\n\n- **Absent or `enabled: false`** → **NO_ALARMS**. Deployments proceed without\n  CloudWatch alarm monitoring. Application-level failures (error rate spikes,\n  latency regressions, custom health-check breaches) are invisible to\n  CodeDeploy — only instance-level health checks remain.\n\n- **`enabled: true` but `alarms` list is empty** → **NO_ALARMS**. Alarm\n  monitoring is nominally enabled but no alarms are configured — the safety\n  net has no threads.\n\n- **`enabled: true` with populated `alarms`** → Pass this gate. Also check\n  `ignorePollAlarmFailure`: if `true`, append a WARNING finding (alarm polling\n  failures are silently ignored — the safety net may disappear during\n  infrastructure events) but do not change the verdict.\n\n### Step 3: Deployment config evaluation (third gate)\n\nCheck `deploymentConfigName`:\n\n- **`CodeDeployDefault.AllAtATime`** → **CONFIG_GAP**. Deploys to every\n  instance simultaneously. Even with rollback, all instances are at risk\n  during the deployment window. Use `OneAtATime` or `HalfAtATime`.\n\n- **`CodeDeployDefault.LambdaAllAtOnce`** (Lambda compute platform) →\n  **CONFIG_GAP**. Shifts 100% of traffic to the new function version\n  immediately with no canary observation window.\n\n- **Custom config with `minimumHealthyHosts.type: HOST_COUNT` and\n  `value: 0`** → **CONFIG_GAP**. Zero healthy hosts required — the deployment\n  proceeds even if every instance is unhealthy.\n\n- **Custom config with `minimumHealthyHosts.type: FLEX_COUNT` and\n  `value: 0`** → **CONFIG_GAP**. Zero percent of hosts must remain healthy —\n  functionally identical to AllAtATime.\n\n- **`CodeDeployDefault.OneAtATime` or `CodeDeployDefault.HalfAtATime`** →\n  Pass this gate. These configs maintain healthy instances throughout.\n\n- **Lambda canary\u002Flinear configs** → Pass, but note configs with very short\n  bake times (e.g., `LambdaCanary10Percent0Minutes`) provide no observation\n  window — flag as WARNING if the time component is 0.\n\n### Step 4: Blue\u002Fgreen termination evaluation (fourth gate — BLUE_GREEN only)\n\nIf `deploymentStyle.deploymentType` is `BLUE_GREEN`:\n\n- **`blueGreenConfiguration.terminateBlueInstancesOnDeploymentSuccess.terminationWaitTimeInMinutes:\n  0`** → **CONFIG_GAP**. Immediate termination of blue instances after green\n  deployment success — no baking window to catch delayed green-fleet failures.\n\n- **`deploymentStyle.deploymentOption: WITHOUT_TRAFFIC_CONTROL`** →\n  **CONFIG_GAP**. Blue\u002Fgreen without gradual traffic shifting via the load\n  balancer. You get fleet-provisioning complexity without the instant\n  rollback safety of traffic-weight flipping.\n\n- **`terminationWaitTimeInMinutes >= 1` and `WITH_TRAFFIC_CONTROL`** →\n  Pass this gate. Recommended minimum is 5 minutes, but 1+ is acceptable for\n  fast-feedback environments.\n\nIf `deploymentStyle.deploymentType` is `IN_PLACE`, skip this step entirely.\n\n### Step 5: Aggregation\n\nIf all gates pass (Steps 1-4), the verdict is **OK**. The evaluation is\nordered — the first failing gate determines the verdict. This ordering\nreflects operational priority: a missing rollback is more dangerous than a\nmissing alarm, which is more dangerous than a risky config (because rollback\n+ alarms partially mitigate config risk).\n\n## Output format\n\n### Single deployment group\n\n```text\nDEPLOYMENT_GROUP: \u003Cname>\nVERDICT: NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK | ERROR\nREASON: \u003Cone sentence citing the failing gate and step number>\nFINDINGS:\n  - [NO_ROLLBACK|NO_ALARMS|CONFIG_GAP|WARNING|OK] \u003Cdescription (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n**Field order is fixed.** Emit exactly one VERDICT line. The first\nfinding tag in FINDINGS MUST match the verdict (except for OK and\nWARNING-only outputs). For an ERROR (unparseable input), use:\n`VERDICT: ERROR` + a REASON explaining the parse failure + a\nREMEDIATION pointing to the canonical `get-deployment-group` command.\n\n### Batch input (multiple deployment groups)\n\nWhen the input contains multiple deployment group documents (e.g.,\n`batch-get-deployment-groups` output, a CloudFormation stack with several\n`AWS::CodeDeploy::DeploymentGroup` resources, or a directory of JSON\nexports), emit **one verdict block per deployment group**, separated by a\nblank line. Preserve input order. Append a final summary line:\n\n```text\nSUMMARY: \u003CN> deployment groups — \u003CX> OK, \u003CY> CONFIG_GAP, \u003CZ> NO_ALARMS, \u003CW> NO_ROLLBACK, \u003CE> ERROR\n```\n\nIf any group fails to parse, emit its block as ERROR and continue with the\nnext group — do NOT abort the batch on a single malformed entry.\n\n### Worked example — AllAtATime with rollback enabled\n\n```text\nDEPLOYMENT_GROUP: allatatime-config-gap-dg\nVERDICT: CONFIG_GAP\nREASON: deploymentConfigName is CodeDeployDefault.AllAtATime — every instance\nis deployed simultaneously, putting the entire fleet at risk during the\ndeployment window (Step 3).\nFINDINGS:\n  - [CONFIG_GAP] deploymentConfigName is CodeDeployDefault.AllAtATime (Step 3)\n  - [OK] autoRollbackConfiguration enabled with DEPLOYMENT_FAILURE trigger (Step 1)\n  - [OK] alarmConfiguration enabled with 2 alarms (Step 2)\nREMEDIATION:\n  1. Switch to OneAtATime: aws deploy update-deployment-group\n     --application-name \u003Capp> --deployment-group-name allatatime-config-gap-dg\n     --deployment-config-name CodeDeployDefault.OneAtATime.\n  2. If OneAtATime is too slow for large fleets, use HalfAtATime as a\n     compromise — at most half the fleet is at risk simultaneously.\n```\n\n### Worked example — blue\u002Fgreen with 0-minute termination\n\nFull output block: [Worked examples](references\u002Fworked-examples.md).\n\n## Edge-case handling\n\nEdge cases (partially malformed config, ECS blue\u002Fgreen defaults, Lambda without target revision, leftover blueGreenConfiguration, empty target set): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a deployment group with `autoRollbackConfiguration` absent or\n  `enabled: false` as anything other than **NO_ROLLBACK**. Without auto-rollback,\n  a failed deployment is a manual recovery exercise — every minute of downtime\n  is operator-dependent.\n\n- NEVER treat `autoRollbackConfiguration.enabled: true` as sufficient without\n  checking `triggers` includes `DEPLOYMENT_FAILURE`. If that trigger is missing,\n  rollback will not fire on deployment failure — only on the listed triggers.\n  This is the most common silent misconfiguration in CodeDeploy.\n\n- NEVER classify a deployment group with `alarmConfiguration.enabled: false` as\n  OK. Even with perfect rollback, alarms catch application-level failures\n  (error rate, latency, health-check breach) that deployment-level health\n  checks miss. Without alarms, CodeDeploy only knows about instance-level\n  health — not whether the application is actually serving traffic correctly.\n\n- NEVER treat `CodeDeployDefault.AllAtATime` as acceptable when rollback is\n  enabled. AllAtATime takes down all instances simultaneously. Even with\n  rollback, the failure window = detection time + rollback time, during which\n  the entire fleet is offline. OneAtATime or HalfAtATime maintain healthy\n  instances throughout.\n\n- NEVER ignore `ignorePollAlarmFailure: true`. This flag silently disables\n  alarm monitoring when CloudWatch is unreachable — the exact scenario where\n  infrastructure events make alarm monitoring most critical. Always flag it as\n  a WARNING finding regardless of the verdict.\n\n- NEVER evaluate `rollbackEnabled` (legacy boolean) instead of\n  `autoRollbackConfiguration`. The legacy field is deprecated and does not\n  provide trigger-level control. A deployment with `rollbackEnabled: true` but\n  `autoRollbackConfiguration.enabled: false` does NOT have proper rollback.\n\n- NEVER classify `terminationWaitTimeInMinutes: 0` on a blue\u002Fgreen deployment\n  as OK. Immediate blue instance termination eliminates the fallback fleet\n  before delayed failures (memory leaks, connection pool exhaustion) can\n  surface. The minimum safe baking window is at least 1 minute, recommended 5.\n\n- NEVER treat `WITHOUT_TRAFFIC_CONTROL` blue\u002Fgreen as equivalent to\n  `WITH_TRAFFIC_CONTROL`. Without traffic control, there is no gradual traffic\n  shift — CodeDeploy deregisters blue instances and registers green instances\n  via ELB. Rollback requires a full re-deployment, not a traffic-weight flip.\n\n- NEVER assume OneAtATime guarantees zero-downtime on a single-instance\n  deployment group. With one instance, OneAtATime deploys to that instance —\n  there is no healthy instance to maintain. Check target breadth (EC2 tags,\n  ASG count) when the fleet is small.\n\n- NEVER recommend disabling auto-rollback as a remediation for false alarm\n  triggers. The correct fix is to tune alarm thresholds or add suppression\n  windows, not to remove the rollback safety net.\n\n- NEVER assume blue\u002Fgreen termination wait time defaults to a safe value\n  when `terminateBlueInstancesOnDeploymentSuccess` is absent. The API default\n  is 0 minutes — immediate termination. Always verify the explicit\n  `terminationWaitTimeInMinutes` value is at least 1 minute for production\n  blue\u002Fgreen deployments.\n\n- NEVER change deployment config name and enable rollback in the same\n  `update-deployment-group` call without confirming the operator is ready for\n  the behavioral change. Config changes take effect on the NEXT deployment —\n  the current deployment is unaffected.\n\n- NEVER assume a missing `terminateBlueInstancesOnDeploymentSuccess` block is\n  safe. The API default is `terminationWaitTimeInMinutes: 0` — immediate\n  termination. An absent block is equivalent to a 0-minute wait, NOT to a\n  safe default. Always treat an absent block as CONFIG_GAP for blue\u002Fgreen.\n\n- NEVER assume `DEPLOYMENT_STOP_ON_ALARM` will catch a pre-existing breach.\n  CodeDeploy only reacts to OK→ALARM transitions during the in-progress\n  deployment; alarms already in ALARM state at `create-deployment` time do\n  NOT halt the deployment. Recommend operators confirm alarms are in OK\n  state before triggering a deploy.\n\n- NEVER assume CloudWatch alarm names in `alarmConfiguration.alarms` exist\n  in the deployment group's region. CodeDeploy does not validate alarm\n  existence at config time — a cross-region alarm name silently never fires.\n  Confirm each alarm resolves in-region.\n\n- NEVER pass a partial triggers list to `update-deployment-group`. The\n  `--auto-rollback-configuration` flag REPLACES the triggers list (it is\n  not additive). Operators frequently lose `DEPLOYMENT_STOP_ON_ALARM` by\n  passing only `DEPLOYMENT_FAILURE`. Always re-pass the full intended set.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nConfirmation gate, config snapshot, privilege-escalation warning, and change-scheduling guidance: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n## Remediation guidance\n\n### For NO_ROLLBACK\n\n1. Enable auto-rollback with all three triggers:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --auto-rollback-configuration enabled=true,triggers=DEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_ALARM,DEPLOYMENT_STOP_ON_REQUEST\n   ```\n2. If only `DEPLOYMENT_FAILURE` was missing from triggers, add it to the\n   existing triggers list — do not remove `DEPLOYMENT_STOP_ON_ALARM`.\n3. Verify rollback works by running a test deployment with a known-bad\n   revision and confirming auto-rollback triggers within the expected window.\n\n### For NO_ALARMS\n\n1. Identify application health metrics (error rate, latency, HTTP 5xx count,\n   custom health check).\n2. Create CloudWatch alarms for each metric with appropriate thresholds.\n3. Attach alarms to the deployment group:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --alarm-configuration enabled=true,ignorePollAlarmFailure=false,alarms=[{name=HighErrorRate}]\n   ```\n4. Set `ignorePollAlarmFailure` to `false` — never silently skip alarm\n   monitoring during deployments.\n\n### For CONFIG_GAP — AllAtATime or custom zero-healthy-hosts\n\n1. Switch to OneAtATime (safest) or HalfAtATime (compromise for large fleets):\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --deployment-config-name CodeDeployDefault.OneAtATime\n   ```\n2. For custom minimum-healthy-hosts of 0, create a safe deployment config:\n   ```bash\n   aws deploy create-deployment-config \\\n     --deployment-config-name SafeMinimumHealthy \\\n     --minimum-healthy-hosts type=HOST_COUNT,value=1\n   ```\n3. Then update the deployment group to use the new config name.\n\n### For CONFIG_GAP — blue\u002Fgreen termination\n\n1. Set termination wait time to at least 5 minutes:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --blue-green-deployment-configuration \\\n       terminateBlueInstancesOnDeploymentSuccess={action=TERMINATE,terminationWaitTimeInMinutes=5}\n   ```\n2. If `deploymentOption` is `WITHOUT_TRAFFIC_CONTROL`, switch to\n   `WITH_TRAFFIC_CONTROL` — this requires a load balancer configured on the\n   deployment group.\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend verifying that CloudWatch alarms used in `alarmConfiguration`\n   have appropriate thresholds and are not in `INSUFFICIENT_DATA` state during\n   deployments.\n3. Recommend including `DEPLOYMENT_STOP_ON_REQUEST` in triggers if not present\n   — it enables operator-initiated automated rollback mid-deployment.\n4. For blue\u002Fgreen, verify the baking window (`terminationWaitTimeInMinutes`)\n   is sufficient for the application's failure-detection latency.\n\n## Reference — deployment internals & non-obvious behaviors\n\nDeployment lifecycle and rollback mechanics, senior-engineer gotchas (alarm-transition blind spots, rollback-of-rollback, config caps, tag-filter AND\u002FOR semantics, bundle-type validation), compute-platform specifics, and API quirks: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent features — ECS blue\u002Fgreen, zonal deployment configs, rollback enhancements: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — operator-only behaviors, edge-case catalog, deployment internals and gotchas, recent features\n- [Worked examples](references\u002Fworked-examples.md) — blue\u002Fgreen 0-minute-termination CONFIG_GAP example\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks and remediation safety gate\n\n## Domain\n\nAWS CloudOps \u002F CodeDeploy Deployment Safety & Compliance.\n\n## AWS documentation\n\n- **AWS CodeDeploy User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeDeploy Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fsecurity.html\n- **CodeDeploy API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI — codedeploy (deploy) commands** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdeploy\u002F\n","# CodeDeploy Deployment Group Auditor\n\n## Quick start — 4-line decision tree\n\nEvaluate in order; **first match wins.**\n\n1. **No auto-rollback?** (`autoRollbackConfiguration.enabled: false` OR\n   `DEPLOYMENT_FAILURE` missing from triggers) → **NO_ROLLBACK**\n2. **No alarms?** (`alarmConfiguration.enabled: false` OR `alarms` empty)\n   → **NO_ALARMS**\n3. **Risky config?** (`AllAtATime`, zero minimum-healthy-hosts, blue\u002Fgreen\n   0-minute termination, `WITHOUT_TRAFFIC_CONTROL`) → **CONFIG_GAP**\n4. **All clear?** → **OK**\n\n## Mindset\n\nCodeDeploy is the safety gate between a new revision and production\ntraffic. The verdict reflects the **first** safety gate that fails,\nevaluated in priority order — rollback before alarms before config —\nbecause a deployment without automatic rollback is a manual recovery\nexercise regardless of alarm coverage. Rationale: rollback + alarms\npartially mitigate a risky config, but nothing mitigates a missing\nrollback. The full thresholds, edge cases, and operator-only gotchas\nare in the Reference at the end.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `autoRollbackConfiguration` absent or `enabled: false` | **NO_ROLLBACK** | Step 1 |\n| `enabled: true` but `triggers` missing `DEPLOYMENT_FAILURE` | **NO_ROLLBACK** | Step 1 |\n| `alarmConfiguration` absent or `enabled: false` | **NO_ALARMS** | Step 2 |\n| `enabled: true` but `alarms` list empty | **NO_ALARMS** | Step 2 |\n| `deploymentConfigName: CodeDeployDefault.AllAtATime` | **CONFIG_GAP** | Step 3 |\n| Custom config `minimumHealthyHosts` value 0 (HOST_COUNT) or 0% (FLEX_COUNT) | **CONFIG_GAP** | Step 3 |\n| `CodeDeployDefault.LambdaAllAtOnce` | **CONFIG_GAP** | Step 3 |\n| Blue\u002Fgreen with `terminationWaitTimeInMinutes: 0` | **CONFIG_GAP** | Step 4 |\n| `deploymentStyle.deploymentOption: WITHOUT_TRAFFIC_CONTROL` (blue\u002Fgreen) | **CONFIG_GAP** | Step 4 |\n| All dimensions pass | **OK** | Step 5 |\n\nEvaluation is **ordered**: the first matching gate produces the verdict.\nNO_ROLLBACK is evaluated before NO_ALARMS because a deployment without\nrollback is dangerous regardless of alarm coverage.\n\n## Pre-flight: deployment group metadata gate\n\nBefore classification, verify the deployment group JSON is from the correct\nAPI response shape (`get-deployment-group` or `batch-get-deployment-groups`).\nMisidentified inputs produce false positives.\n\n| Attribute | Effect on audit |\n|---|---|\n| `computePlatform` | `Server` (EC2), `Lambda`, or `ECS`. Determines valid deployment configs. Lambda uses `LambdaCanary*` \u002F `LambdaLinear*`; Server uses `OneAtATime` \u002F `HalfAtATime` \u002F `AllAtATime`; ECS uses blue\u002Fgreen with traffic control. |\n| `deploymentStyle.deploymentType` | `IN_PLACE` or `BLUE_GREEN`. Blue\u002Fgreen provisions a replacement fleet — termination config is audited (Step 4). In-place does not. |\n| `deploymentStyle.deploymentOption` | `WITH_TRAFFIC_CONTROL` or `WITHOUT_TRAFFIC_CONTROL`. Only meaningful for blue\u002Fgreen. `WITHOUT_TRAFFIC_CONTROL` bypasses gradual traffic shifting. |\n| `autoRollbackConfiguration` | The authoritative rollback control. Has `enabled` (boolean) and `triggers` (list of `DEPLOYMENT_FAILURE`, `DEPLOYMENT_STOP_ON_ALARM`, `DEPLOYMENT_STOP_ON_REQUEST`). |\n| `alarmConfiguration` | Has `enabled`, `ignorePollAlarmFailure`, and `alarms` (list of alarm-name objects). |\n| `targetRevision` | The app revision tracked by the deployment group. If absent, no known-good rollback target is pinned — note as WARNING. |\n\nLive-account pre-flight checks (IAM read\u002Fupdate permissions, service-role trust per compute platform, config snapshot): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**If the deployment group JSON is malformed** (invalid JSON, missing\n`deploymentGroupName`), output:\n\n```text\nDEPLOYMENT_GROUP: \u003Cname or \"unknown\">\nVERDICT: ERROR\nREASON: Deployment group document is not valid JSON or is missing required fields — cannot classify.\nREMEDIATION: Retrieve the canonical config with `aws deploy get-deployment-group --application-name \u003Capp> --deployment-group-name \u003Cdg> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, first match wins)\n\n### Step 0: Expert knowledge — operator-only behaviors that change classification\n\nAll seven operator-only behaviors (partial triggers, ignorePollAlarmFailure, AllAtATime+rollback, 0-minute termination, single-instance OneAtATime, legacy rollbackEnabled, WITHOUT_TRAFFIC_CONTROL): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 1: Auto-rollback evaluation (highest priority — first gate)\n\nCheck `autoRollbackConfiguration`:\n\n- **Absent or `enabled: false`** → **NO_ROLLBACK**. The deployment has no\n  automatic recovery path. A failed deployment leaves instances in a broken\n  state until an operator manually triggers rollback or redeploys.\n\n- **`enabled: true` but `triggers` missing `DEPLOYMENT_FAILURE`** →\n  **NO_ROLLBACK**. Without the `DEPLOYMENT_FAILURE` trigger, rollback only\n  fires on the specified triggers (alarm breach, manual stop request).\n  Application-level failures that do not trigger an alarm will not auto-rollback.\n\n- **`enabled: true` with `DEPLOYMENT_FAILURE` in triggers** → Pass this gate.\n  The ideal trigger set includes all three: `DEPLOYMENT_FAILURE`,\n  `DEPLOYMENT_STOP_ON_ALARM`, `DEPLOYMENT_STOP_ON_REQUEST`. If\n  `DEPLOYMENT_STOP_ON_REQUEST` is missing, note as a WARNING finding\n  (operators cannot trigger automated rollback mid-deployment) but do not\n  fail the gate — `DEPLOYMENT_FAILURE` is the minimum.\n\n### Step 2: Alarm configuration evaluation (second gate)\n\nCheck `alarmConfiguration`:\n\n- **Absent or `enabled: false`** → **NO_ALARMS**. Deployments proceed without\n  CloudWatch alarm monitoring. Application-level failures (error rate spikes,\n  latency regressions, custom health-check breaches) are invisible to\n  CodeDeploy — only instance-level health checks remain.\n\n- **`enabled: true` but `alarms` list is empty** → **NO_ALARMS**. Alarm\n  monitoring is nominally enabled but no alarms are configured — the safety\n  net has no threads.\n\n- **`enabled: true` with populated `alarms`** → Pass this gate. Also check\n  `ignorePollAlarmFailure`: if `true`, append a WARNING finding (alarm polling\n  failures are silently ignored — the safety net may disappear during\n  infrastructure events) but do not change the verdict.\n\n### Step 3: Deployment config evaluation (third gate)\n\nCheck `deploymentConfigName`:\n\n- **`CodeDeployDefault.AllAtATime`** → **CONFIG_GAP**. Deploys to every\n  instance simultaneously. Even with rollback, all instances are at risk\n  during the deployment window. Use `OneAtATime` or `HalfAtATime`.\n\n- **`CodeDeployDefault.LambdaAllAtOnce`** (Lambda compute platform) →\n  **CONFIG_GAP**. Shifts 100% of traffic to the new function version\n  immediately with no canary observation window.\n\n- **Custom config with `minimumHealthyHosts.type: HOST_COUNT` and\n  `value: 0`** → **CONFIG_GAP**. Zero healthy hosts required — the deployment\n  proceeds even if every instance is unhealthy.\n\n- **Custom config with `minimumHealthyHosts.type: FLEX_COUNT` and\n  `value: 0`** → **CONFIG_GAP**. Zero percent of hosts must remain healthy —\n  functionally identical to AllAtATime.\n\n- **`CodeDeployDefault.OneAtATime` or `CodeDeployDefault.HalfAtATime`** →\n  Pass this gate. These configs maintain healthy instances throughout.\n\n- **Lambda canary\u002Flinear configs** → Pass, but note configs with very short\n  bake times (e.g., `LambdaCanary10Percent0Minutes`) provide no observation\n  window — flag as WARNING if the time component is 0.\n\n### Step 4: Blue\u002Fgreen termination evaluation (fourth gate — BLUE_GREEN only)\n\nIf `deploymentStyle.deploymentType` is `BLUE_GREEN`:\n\n- **`blueGreenConfiguration.terminateBlueInstancesOnDeploymentSuccess.terminationWaitTimeInMinutes:\n  0`** → **CONFIG_GAP**. Immediate termination of blue instances after green\n  deployment success — no baking window to catch delayed green-fleet failures.\n\n- **`deploymentStyle.deploymentOption: WITHOUT_TRAFFIC_CONTROL`** →\n  **CONFIG_GAP**. Blue\u002Fgreen without gradual traffic shifting via the load\n  balancer. You get fleet-provisioning complexity without the instant\n  rollback safety of traffic-weight flipping.\n\n- **`terminationWaitTimeInMinutes >= 1` and `WITH_TRAFFIC_CONTROL`** →\n  Pass this gate. Recommended minimum is 5 minutes, but 1+ is acceptable for\n  fast-feedback environments.\n\nIf `deploymentStyle.deploymentType` is `IN_PLACE`, skip this step entirely.\n\n### Step 5: Aggregation\n\nIf all gates pass (Steps 1-4), the verdict is **OK**. The evaluation is\nordered — the first failing gate determines the verdict. This ordering\nreflects operational priority: a missing rollback is more dangerous than a\nmissing alarm, which is more dangerous than a risky config (because rollback\n+ alarms partially mitigate config risk).\n\n## Output format\n\n### Single deployment group\n\n```text\nDEPLOYMENT_GROUP: \u003Cname>\nVERDICT: NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK | ERROR\nREASON: \u003Cone sentence citing the failing gate and step number>\nFINDINGS:\n  - [NO_ROLLBACK|NO_ALARMS|CONFIG_GAP|WARNING|OK] \u003Cdescription (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n**Field order is fixed.** Emit exactly one VERDICT line. The first\nfinding tag in FINDINGS MUST match the verdict (except for OK and\nWARNING-only outputs). For an ERROR (unparseable input), use:\n`VERDICT: ERROR` + a REASON explaining the parse failure + a\nREMEDIATION pointing to the canonical `get-deployment-group` command.\n\n### Batch input (multiple deployment groups)\n\nWhen the input contains multiple deployment group documents (e.g.,\n`batch-get-deployment-groups` output, a CloudFormation stack with several\n`AWS::CodeDeploy::DeploymentGroup` resources, or a directory of JSON\nexports), emit **one verdict block per deployment group**, separated by a\nblank line. Preserve input order. Append a final summary line:\n\n```text\nSUMMARY: \u003CN> deployment groups — \u003CX> OK, \u003CY> CONFIG_GAP, \u003CZ> NO_ALARMS, \u003CW> NO_ROLLBACK, \u003CE> ERROR\n```\n\nIf any group fails to parse, emit its block as ERROR and continue with the\nnext group — do NOT abort the batch on a single malformed entry.\n\n### Worked example — AllAtATime with rollback enabled\n\n```text\nDEPLOYMENT_GROUP: allatatime-config-gap-dg\nVERDICT: CONFIG_GAP\nREASON: deploymentConfigName is CodeDeployDefault.AllAtATime — every instance\nis deployed simultaneously, putting the entire fleet at risk during the\ndeployment window (Step 3).\nFINDINGS:\n  - [CONFIG_GAP] deploymentConfigName is CodeDeployDefault.AllAtATime (Step 3)\n  - [OK] autoRollbackConfiguration enabled with DEPLOYMENT_FAILURE trigger (Step 1)\n  - [OK] alarmConfiguration enabled with 2 alarms (Step 2)\nREMEDIATION:\n  1. Switch to OneAtATime: aws deploy update-deployment-group\n     --application-name \u003Capp> --deployment-group-name allatatime-config-gap-dg\n     --deployment-config-name CodeDeployDefault.OneAtATime.\n  2. If OneAtATime is too slow for large fleets, use HalfAtATime as a\n     compromise — at most half the fleet is at risk simultaneously.\n```\n\n### Worked example — blue\u002Fgreen with 0-minute termination\n\nFull output block: [Worked examples](references\u002Fworked-examples.md).\n\n## Edge-case handling\n\nEdge cases (partially malformed config, ECS blue\u002Fgreen defaults, Lambda without target revision, leftover blueGreenConfiguration, empty target set): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a deployment group with `autoRollbackConfiguration` absent or\n  `enabled: false` as anything other than **NO_ROLLBACK**. Without auto-rollback,\n  a failed deployment is a manual recovery exercise — every minute of downtime\n  is operator-dependent.\n\n- NEVER treat `autoRollbackConfiguration.enabled: true` as sufficient without\n  checking `triggers` includes `DEPLOYMENT_FAILURE`. If that trigger is missing,\n  rollback will not fire on deployment failure — only on the listed triggers.\n  This is the most common silent misconfiguration in CodeDeploy.\n\n- NEVER classify a deployment group with `alarmConfiguration.enabled: false` as\n  OK. Even with perfect rollback, alarms catch application-level failures\n  (error rate, latency, health-check breach) that deployment-level health\n  checks miss. Without alarms, CodeDeploy only knows about instance-level\n  health — not whether the application is actually serving traffic correctly.\n\n- NEVER treat `CodeDeployDefault.AllAtATime` as acceptable when rollback is\n  enabled. AllAtATime takes down all instances simultaneously. Even with\n  rollback, the failure window = detection time + rollback time, during which\n  the entire fleet is offline. OneAtATime or HalfAtATime maintain healthy\n  instances throughout.\n\n- NEVER ignore `ignorePollAlarmFailure: true`. This flag silently disables\n  alarm monitoring when CloudWatch is unreachable — the exact scenario where\n  infrastructure events make alarm monitoring most critical. Always flag it as\n  a WARNING finding regardless of the verdict.\n\n- NEVER evaluate `rollbackEnabled` (legacy boolean) instead of\n  `autoRollbackConfiguration`. The legacy field is deprecated and does not\n  provide trigger-level control. A deployment with `rollbackEnabled: true` but\n  `autoRollbackConfiguration.enabled: false` does NOT have proper rollback.\n\n- NEVER classify `terminationWaitTimeInMinutes: 0` on a blue\u002Fgreen deployment\n  as OK. Immediate blue instance termination eliminates the fallback fleet\n  before delayed failures (memory leaks, connection pool exhaustion) can\n  surface. The minimum safe baking window is at least 1 minute, recommended 5.\n\n- NEVER treat `WITHOUT_TRAFFIC_CONTROL` blue\u002Fgreen as equivalent to\n  `WITH_TRAFFIC_CONTROL`. Without traffic control, there is no gradual traffic\n  shift — CodeDeploy deregisters blue instances and registers green instances\n  via ELB. Rollback requires a full re-deployment, not a traffic-weight flip.\n\n- NEVER assume OneAtATime guarantees zero-downtime on a single-instance\n  deployment group. With one instance, OneAtATime deploys to that instance —\n  there is no healthy instance to maintain. Check target breadth (EC2 tags,\n  ASG count) when the fleet is small.\n\n- NEVER recommend disabling auto-rollback as a remediation for false alarm\n  triggers. The correct fix is to tune alarm thresholds or add suppression\n  windows, not to remove the rollback safety net.\n\n- NEVER assume blue\u002Fgreen termination wait time defaults to a safe value\n  when `terminateBlueInstancesOnDeploymentSuccess` is absent. The API default\n  is 0 minutes — immediate termination. Always verify the explicit\n  `terminationWaitTimeInMinutes` value is at least 1 minute for production\n  blue\u002Fgreen deployments.\n\n- NEVER change deployment config name and enable rollback in the same\n  `update-deployment-group` call without confirming the operator is ready for\n  the behavioral change. Config changes take effect on the NEXT deployment —\n  the current deployment is unaffected.\n\n- NEVER assume a missing `terminateBlueInstancesOnDeploymentSuccess` block is\n  safe. The API default is `terminationWaitTimeInMinutes: 0` — immediate\n  termination. An absent block is equivalent to a 0-minute wait, NOT to a\n  safe default. Always treat an absent block as CONFIG_GAP for blue\u002Fgreen.\n\n- NEVER assume `DEPLOYMENT_STOP_ON_ALARM` will catch a pre-existing breach.\n  CodeDeploy only reacts to OK→ALARM transitions during the in-progress\n  deployment; alarms already in ALARM state at `create-deployment` time do\n  NOT halt the deployment. Recommend operators confirm alarms are in OK\n  state before triggering a deploy.\n\n- NEVER assume CloudWatch alarm names in `alarmConfiguration.alarms` exist\n  in the deployment group's region. CodeDeploy does not validate alarm\n  existence at config time — a cross-region alarm name silently never fires.\n  Confirm each alarm resolves in-region.\n\n- NEVER pass a partial triggers list to `update-deployment-group`. The\n  `--auto-rollback-configuration` flag REPLACES the triggers list (it is\n  not additive). Operators frequently lose `DEPLOYMENT_STOP_ON_ALARM` by\n  passing only `DEPLOYMENT_FAILURE`. Always re-pass the full intended set.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nConfirmation gate, config snapshot, privilege-escalation warning, and change-scheduling guidance: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n## Remediation guidance\n\n### For NO_ROLLBACK\n\n1. Enable auto-rollback with all three triggers:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --auto-rollback-configuration enabled=true,triggers=DEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_ALARM,DEPLOYMENT_STOP_ON_REQUEST\n   ```\n2. If only `DEPLOYMENT_FAILURE` was missing from triggers, add it to the\n   existing triggers list — do not remove `DEPLOYMENT_STOP_ON_ALARM`.\n3. Verify rollback works by running a test deployment with a known-bad\n   revision and confirming auto-rollback triggers within the expected window.\n\n### For NO_ALARMS\n\n1. Identify application health metrics (error rate, latency, HTTP 5xx count,\n   custom health check).\n2. Create CloudWatch alarms for each metric with appropriate thresholds.\n3. Attach alarms to the deployment group:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --alarm-configuration enabled=true,ignorePollAlarmFailure=false,alarms=[{name=HighErrorRate}]\n   ```\n4. Set `ignorePollAlarmFailure` to `false` — never silently skip alarm\n   monitoring during deployments.\n\n### For CONFIG_GAP — AllAtATime or custom zero-healthy-hosts\n\n1. Switch to OneAtATime (safest) or HalfAtATime (compromise for large fleets):\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --deployment-config-name CodeDeployDefault.OneAtATime\n   ```\n2. For custom minimum-healthy-hosts of 0, create a safe deployment config:\n   ```bash\n   aws deploy create-deployment-config \\\n     --deployment-config-name SafeMinimumHealthy \\\n     --minimum-healthy-hosts type=HOST_COUNT,value=1\n   ```\n3. Then update the deployment group to use the new config name.\n\n### For CONFIG_GAP — blue\u002Fgreen termination\n\n1. Set termination wait time to at least 5 minutes:\n   ```bash\n   aws deploy update-deployment-group \\\n     --application-name \u003Capp> \\\n     --deployment-group-name \u003Cdg> \\\n     --blue-green-deployment-configuration \\\n       terminateBlueInstancesOnDeploymentSuccess={action=TERMINATE,terminationWaitTimeInMinutes=5}\n   ```\n2. If `deploymentOption` is `WITHOUT_TRAFFIC_CONTROL`, switch to\n   `WITH_TRAFFIC_CONTROL` — this requires a load balancer configured on the\n   deployment group.\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend verifying that CloudWatch alarms used in `alarmConfiguration`\n   have appropriate thresholds and are not in `INSUFFICIENT_DATA` state during\n   deployments.\n3. Recommend including `DEPLOYMENT_STOP_ON_REQUEST` in triggers if not present\n   — it enables operator-initiated automated rollback mid-deployment.\n4. For blue\u002Fgreen, verify the baking window (`terminationWaitTimeInMinutes`)\n   is sufficient for the application's failure-detection latency.\n\n## Reference — deployment internals & non-obvious behaviors\n\nDeployment lifecycle and rollback mechanics, senior-engineer gotchas (alarm-transition blind spots, rollback-of-rollback, config caps, tag-filter AND\u002FOR semantics, bundle-type validation), compute-platform specifics, and API quirks: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent features — ECS blue\u002Fgreen, zonal deployment configs, rollback enhancements: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — operator-only behaviors, edge-case catalog, deployment internals and gotchas, recent features\n- [Worked examples](references\u002Fworked-examples.md) — blue\u002Fgreen 0-minute-termination CONFIG_GAP example\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks and remediation safety gate\n\n## Domain\n\nAWS CloudOps \u002F CodeDeploy Deployment Safety & Compliance.\n\n## AWS documentation\n\n- **AWS CodeDeploy User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeDeploy Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fsecurity.html\n- **CodeDeploy API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI — codedeploy (deploy) commands** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fdeploy\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":40},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"complexity":32,"entry_point":33,"when_to_use":34,"requires_llm":35,"verdict_shape":36,"invocation_schema":37,"supports_pipeline":35,"invocation_example":38,"activation_triggers":39},"codedeploy, devtools, deployment, rollback, alarms, blue-green, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","CodeDeploy, deployment group, auto-rollback, CloudWatch alarms, alarm configuration, deployment config, AllAtATime, OneAtATime, blue\u002Fgreen, blue green, termination wait, MinimumHealthyHosts, deployment strategy, rollback configuration, ignorePollAlarmFailure, Lambda canary, deployment safety, EC2 in-place, ECS blue green, DEPLOYMENT_FAILURE","high","false","Audit a CodeDeploy deployment group before production deployment. Trigger example: \"audit this CodeDeploy deployment group\", \"is auto-rollback enabled on \u003Cdg>?\", \"check CodeDeploy alarms\", \"AllAtATime deployment risk\", \"blue\u002Fgreen termination too fast\". Validates auto-rollback, alarm coverage, deployment-config risk, and blue\u002Fgreen termination posture; emits a deterministic verdict per group.","true","NO_ROLLBACK | NO_ALARMS | CONFIG_GAP | OK","Input: either (a) a CodeDeploy deployment group JSON document (from aws deploy get-deployment-group), optionally paired with deployment config metadata, OR (b) a deployment group name + application name for live-account audit. Output: deterministic DEPLOYMENT_GROUP\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per deployment group, where VERDICT is in {NO_ROLLBACK, NO_ALARMS, CONFIG_GAP, OK, ERROR}.","# Minimal valid input shape (offline audit)\n{\n  \"deploymentGroupName\": \"my-dg\",\n  \"applicationName\": \"my-app\",\n  \"computePlatform\": \"Server\",\n  \"deploymentConfigName\": \"CodeDeployDefault.OneAtATime\",\n  \"deploymentStyle\": {\"deploymentType\": \"IN_PLACE\", \"deploymentOption\": \"WITH_TRAFFIC_CONTROL\"},\n  \"autoRollbackConfiguration\": {\"enabled\": true, \"triggers\": [\"DEPLOYMENT_FAILURE\"]},\n  \"alarmConfiguration\": {\"enabled\": true, \"ignorePollAlarmFailure\": false,\n    \"alarms\": [{\"name\": \"HighErrorRate\"}]}\n}\n# Expected output (single line per field, fixed order):\n# DEPLOYMENT_GROUP: my-dg\n# VERDICT: OK\n# REASON: All four gates passed (Steps 1-4).\n# FINDINGS:\n#   - [OK] autoRollbackConfiguration enabled with DEPLOYMENT_FAILURE (Step 1)\n#   - [OK] alarmConfiguration enabled with 1 alarm (Step 2)\n# REMEDIATION: None required.","audit this CodeDeploy deployment group, is auto-rollback enabled, check CodeDeploy alarm configuration, AllAtATime deployment risk, blue\u002Fgreen termination too fast, deployment config too aggressive, CodeDeploy rollback configuration, deployment strategy audit","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline config classification. Live-account audits use aws deploy get-deployment-group and aws deploy batch-get-deployment-groups (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcodedeploy-deployment-group-auditor",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":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill codedeploy-deployment-group-auditor",{"tool":55,"command":56},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill codedeploy-deployment-group-auditor",{"tool":58,"command":59},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill codedeploy-deployment-group-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002FSKILL.md",true,[63,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",9078,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Feval\u002Ftest-cases.yaml",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"evals\u002Fbaselines\u002Fallatatime-config-gap.md",715,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Fallatatime-config-gap.md",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fbluegreen-immediate-termination.md",706,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Fbluegreen-immediate-termination.md",{"path":78,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fno-rollback-no-alarms.md",711,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Fno-rollback-no-alarms.md",{"path":82,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fproperly-configured-ok.md",599,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Fproperly-configured-ok.md",{"path":86,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Frollback-disabled-alarms-on.md",674,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Frollback-disabled-alarms-on.md",{"path":90,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Frollback-on-no-alarms.md",700,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fbaselines\u002Frollback-on-no-alarms.md",{"path":94,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",1826,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",5059,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fevals.json",{"path":102,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fallatatime-config-gap.md",685,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Fallatatime-config-gap.md",{"path":106,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fbluegreen-immediate-termination.md",897,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Fbluegreen-immediate-termination.md",{"path":110,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fno-rollback-no-alarms.md",617,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Fno-rollback-no-alarms.md",{"path":114,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fproperly-configured-ok.md",719,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Fproperly-configured-ok.md",{"path":118,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Frollback-disabled-alarms-on.md",629,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Frollback-disabled-alarms-on.md",{"path":122,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":123,"sourceHtmlUrl":124},"evals\u002Fprompts\u002Frollback-on-no-alarms.md",662,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fevals\u002Fprompts\u002Frollback-on-no-alarms.md",{"path":126,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":127,"sourceHtmlUrl":128},"examples\u002Fend-to-end.md",5445,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Fexamples\u002Fend-to-end.md",{"path":130,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fadvanced-patterns.md",11616,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":134,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fdiagnostic-commands.md",2619,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":138,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fworked-examples.md",1219,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\u002Freferences\u002Fworked-examples.md",{"path":142,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":143,"sourceHtmlUrl":144},"skill.usf.yaml",4092,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodedeploy-deployment-group-auditor\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",[],[]]