AGENT SKILL

health-event-automator

Designs AWS Health event response automation across the three event type categories (issue, accountNotification, scheduledChange), EventBridge rules routing Health events to SNS, Lambda responders (Slack/Teams notify, Jira ticket create, DR failover trigger, Auto Scaling scale-out), AWS Health API affected-entity mapping, organizational view for org-level Health events across all member accounts, AWS User Notifications chat delivery, AWS Health Omics workflow alerts, and EventBridge Scheduler for scheduled-change lead-time actions. Emits AUTOMATED with the responder playbook or MANUAL_STEP_REQUIRED with the gap. Use when designing Health event automation, org-level health visibility, or scheduled-change remediation workflows.

License 许可
Apache-2.0
最近更新
2026-09-24
Stars
★ 4
Forks
0

01 前言 Front Matter

name
health-event-automator
license
Apache-2.0
metadata
{ "tags": "aws-health, eventbridge, sns, lambda, user-notifications, automate", "phase": "4", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Management", "version": "0.1.0", "keywords": "AWS Health, Health event, EventBridge rule, event type category, issue, accountNotification, scheduledChange, affected entity, organizational view, Health API, Health Omics, User Notifications, scheduled change, lead-time action, EventBridge Scheduler, SNS Lambda responder, Slack notification, Jira ticket, DR failover trigger, Auto Scaling scale-out", "task_type": "automate", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Designing Health event response automation, wiring EventBridge rules for AWS Health events (issue, accountNotification, scheduledChange), mapping affected entities, building organizational-view Health dashboards, automating Slack/Teams/Jira notifications, triggering DR failover or scale-out from Health events, scheduling lead-time actions for scheduled changes, or routing Health Omics workflow alerts.", "requires_llm": "true", "verdict_shape": "AUTOMATED | MANUAL_STEP_REQUIRED", "when_not_to_use": "General incident response without an AWS Health signal (use incident-response-automator — Health is one trigger source)., DR failover design itself (use dr-failover-automator — this skill triggers failover, it does not design the strategy)., Security finding triage (use guardduty / security-hub skills — Health events are operational, not security findings)., Cost anomaly response (use cost-anomaly-response-automator — Health events are not billing signals).", "lifecycle_status": "active", "invocation_schema": "Input: either (a) a Health automation requirement (\"route issue events for EC2 in org to Slack + create Jira, with DR failover on region outage\"), OR (b) an existing EventBridge Health rule / responder workflow to audit and harden. Output: deterministic Health block per requirement — EVENT_TYPES/AFFECTED_ENTITIES/RESPONDERS/ORG_VIEW/ SCHEDULED_CHANGES/VERIFICATION/VERDICT — where VERDICT is AUTOMATED (responder playbook complete with all gates passing) or MANUAL_STEP_REQUIRED (specific gap cited, e.g., no affected-entity enrichment, no org-level rule, lead-time action missing).", "supports_pipeline": "true", "activation_triggers": "AWS Health event automation, EventBridge rule for Health, Health affected entity, Health organizational view, scheduled change lead-time, Health event SNS Lambda, Slack notification for Health, Jira ticket from Health event, DR failover from Health, Auto Scaling scale-out on Health, AWS User Notifications, Health Omics alert, accountNotification automation, scheduledChange automation" }
description
Designs AWS Health event response automation across the three event type categories (issue, accountNotification, scheduledChange), EventBridge rules routing Health events to SNS, Lambda responders (Slack/Teams notify, Jira ticket create, DR failover trigger, Auto Scaling scale-out), AWS Health API affected-entity mapping, organizational view for org-level Health events across all member accounts, AWS User Notifications chat delivery, AWS Health Omics workflow alerts, and EventBridge Scheduler for scheduled-change lead-time actions. Emits AUTOMATED with the responder playbook or MANUAL_STEP_REQUIRED with the gap. Use when designing Health event automation, org-level health visibility, or scheduled-change remediation workflows.
compatibility
Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan authoring. Live deployment uses aws health describe-events / describe-affected-entities, aws health describe-aggregate-offers (org), aws events put-rule (Health event pattern), aws events put-targets (SNS/Lambda), aws scheduler create-schedule (scheduled-change lead-time), aws notifications contacts / channels (User Notifications), aws backup start-restore-job (DR trigger)...

02 资源文件 19

03 SKILL.md 正文

Health Event Automator

What this skill does

Designs automated AWS Health event response across the three event type categories — issue (ongoing operational problems), accountNotification (notifications like billing, abuse, credential exposure), and scheduledChange (upcoming AWS-driven changes like retirement, reboot, maintenance) — and the building blocks that compose each: EventBridge rules matching the Health event pattern, SNS topics + Lambda responders (Slack/Teams notify, Jira ticket create, DR failover trigger, Auto Scaling scale-out), Health API affected-entity enrichment, organizational-view rules for org-level events across all member accounts, EventBridge Scheduler for scheduled-change lead-time actions, and AWS User Notifications for chat delivery.

The verdict is binary: AUTOMATED when the playbook covers a chosen event category with mapped affected entities, a defined responder chain, org-level visibility (for orgs), lead-time action for scheduled changes (if any), and verification step; MANUAL_STEP_REQUIRED when any component is missing (e.g., no affected-entity enrichment, single-account-only rule in an org, responder chain has no dead-letter queue, scheduled change has no lead-time action).

Quick navigation

# Section Jump when
1 Pre-flight gate Starting any design — blocks unsafe specs
2 Event type categories issue / accountNotification / scheduledChange
3 EventBridge rule The Health event pattern + scope
4 Affected-entity mapping Enrich events with affected resources
5 SNS + Lambda responders Slack/Teams/Jira/DR/scale-out
6 Organizational view Multi-account org-wide Health events
7 Scheduled changes EventBridge Scheduler lead-time actions
8 User Notifications Managed chat / email delivery
9 Health Omics Omics workflow Health events
10 Step Functions orchestrator Multi-step responder state machine
11 STRICT output contract The exact Health block the skill emits
12 NEVER anti-patterns The hardcoded list of Health taboos
13 Expert heuristic Non-obvious behaviors that change the design
14 Recent AWS features User Notifications, Health Omics, Scheduler
15 Edge cases Public-event lag, region scoping, DLQ

Mindset

One-line takeaway: AWS Health is the upstream signal AWS emits about its own platform — every minute between the event firing and the right responder acting on it is a minute of customer impact. The art is routing each event category to the responder that knows what to do with it, with enough context (affected entities, region, account) that no human triage is required.

  • The event category determines the responder, not the other way around. An issue event for an EC2 host degradation triggers scale-out and DR evaluation. A scheduledChange for instance retirement triggers a lead-time action (replace before the deadline). An accountNotification for exposed credentials triggers key rotation. Design the routing per category.
  • Public Health events lag the Health API by up to 10 minutes. EventBridge fires on the public event stream. For the fastest detection, use the Health API describe-events on a 60-second poller in addition to EventBridge.
  • Affected entities are the bridge to action. A Health event without affected entities is a generic notice ("something is wrong in EC2"). With affected entities ("i-0abc123, i-0def456 in us-east-1a"), the responder can drain, replace, or failover the specific resources.

Pre-flight: Health spec gate (run before generation)

Attribute Required Effect on plan
event_categories YES Which categories to handle (issue, accountNotification, scheduledChange)
services Recommended Scope (EC2, RDS, S3, etc.) — ["*"] for all
regions Recommended Scope (["*"] for all, or specific regions)
accounts_scope YES Single-account OR organizational (delegated admin)
responder_targets YES Slack / Teams / Jira / DR failover / scale-out / custom
existing_workflow For audit mode When provided, run the layer gates

If the spec is incomplete, output:

EVENT_TYPES: <unknown>
AFFECTED_ENTITIES: <unknown>
RESPONDERS: <unknown>
ORG_VIEW: <unknown>
SCHEDULED_CHANGES: <unknown>
VERIFICATION: <unknown>
VERDICT: MANUAL_STEP_REQUIRED
REASON: Spec is missing required fields (<list>).
REQUIRED:
  - event_categories (subset of [issue, accountNotification, scheduledChange])
  - accounts_scope (single | org)
  - responder_targets (one or more of slack, teams, jira, dr, scale-out, custom)
REMEDIATION: Provide all required fields. Example: "route issue and
scheduledChange events for EC2 and RDS in org to Slack + Jira, with DR
failover on region outage" maps to event_categories=[issue, scheduledChange],
accounts_scope=org, services=[EC2, RDS], responder_targets=[slack, jira, dr].

Live-account pre-flight checks (skip for offline authoring):

  1. Verify Health API access: aws health describe-events (requires Business/Enterprise support).
  2. Verify EventBridge default bus receives Health events: aws events list-rules --event-bus-type.aws-service health.
  3. For org: verify delegated admin: aws organizations list-delegated-administrators --service-principal health.amazonaws.com.
  4. Verify SNS topic exists: aws sns list-topics.
  5. Verify User Notifications channel: aws notifications list-channels.

Event type categories

Category What it means Example Default responder
issue Ongoing operational problem on an AWS resource EC2 host degradation, RDS cluster interruption Scale-out + DR evaluation + notify
accountNotification Notification about the account itself Billing threshold, abuse report, exposed access key Page security/finance owner + rotate key
scheduledChange Upcoming AWS-driven change EC2 instance retirement, RDS maintenance, deprecation Schedule lead-time action before deadline

EventBridge event pattern key:

{
  "source": ["aws.health"],
  "detail": {
    "eventTypeCategory": ["issue", "accountNotification", "scheduledChange"]
  }
}

The detail.eventTypeCategory is the primary routing lever. Sub-filter by service (detail.service) and region (region) for finer scoping.

EventBridge rule for Health events

Rule-creation CLI moved to references. → references/eventbridge-health-patterns.md § Rule creation commands

Scope options:

  • By service: "service": ["EC2", "RDS", "S3"]
  • By region: deploy the rule in each region of interest (Health events fire in the region of the affected resource).
  • By event code: "eventTypeCode": ["AWS_EC2_INSTANCE_DEGRADATION"]

Gotchas: Health events fire on the default EventBridge bus in the region of the affected resource. To aggregate centrally, forward from each region's default bus to a central bus in us-east-1 (or use the org organizational-view rule). Without a DLQ target, events that fail delivery are silently dropped.

Affected-entity mapping

A Health event has an eventArn. The list of affected resources (instance IDs, cluster ARNs, bucket names) comes from a second API call:

# Get the event first
aws health describe-events --filter 'eventStatusCodes=[open]' \
  --query 'events[0].arn' --output text

# Map affected entities
aws health describe-affected-entities \
  --filter 'eventArns=[arn:aws:health:us-east-1::event/EC2/AWS_EC2_INSTANCE_DEGRADATION/xxx]' \
  --query 'entities[*].entityValue' --output table

Enrichment pattern (Lambda responder):

Enrichment Lambda code moved to references. → references/responders-and-org-view.md § Affected-entity enrichment Lambda

Gotchas: The Health API endpoint is global (us-east-1) regardless of where the event fires. describe-affected-entities requires a Business or Enterprise support plan. The entityValue is region-scoped (e.g., i-0abc is unique within a region + account) — always include region in the enrichment payload.

SNS + Lambda responders

Responder Trigger Action
Slack/Teams notify All categories Post to webhook with event payload + affected entities
Jira ticket create issue, scheduledChange Create ticket with eventArn as correlation ID
DR failover trigger issue (region outage) Invoke dr-failover-orchestrator Step Functions
Auto Scaling scale-out issue (EC2 host degradation) Update ASG desired capacity, drain affected instances
Access key rotation accountNotification (exposed key) Deactivate + create replacement, notify owner
Patch lead-time scheduledChange (retirement) Schedule replacement via EventBridge Scheduler

Slack notification Lambda (excerpt):

Slack notification Lambda code moved to references. → references/responders-and-org-view.md § Slack notification Lambda

Dead-letter handling: Every EventBridge target needs a DLQ. Health events are low-volume (a few per day on a quiet account) but high-urgency — a silently-dropped event is a missed outage signal. Configure DeadLetterConfig on every target.

Organizational view (org-level Health)

For AWS Organizations, enable the organizational view feature so a delegated administrator account sees aggregated Health events across all member accounts.

Org-view enablement, delegation, and org-wide enumeration commands moved to references. → references/responders-and-org-view.md § Organizational-view setup commands

Gotchas: Org view rules fire ONLY in the delegated admin account's default bus. The delegated admin needs an IAM policy allowing health:Describe* and organizations:Describe*. Events from member accounts still appear on the member account's default bus too — pick one ingestion path to avoid double-processing.

Scheduled change lead-time actions

Scheduled-change events carry a scheduledEndTime — the deadline by which AWS will perform the action (or retire the resource). The pattern: schedule a lead-time responder (e.g., 7 days before) so the team can act first.

# Parse the scheduledEndTime, schedule a lead-time action 7 days prior
aws scheduler create-schedule \
  --name health-leadtime-instance-retirement \
  --schedule-expression "at(2026-08-25T03:00:00)" \
  --flexible-time-window '{"Mode": "OFF"}' \
  --target '{"Arn":"arn:aws:lambda:us-east-1:111111111111:function:replace-retired-instance","RoleArn":"arn:aws:iam::111111111111:role/SchedulerInvokeRole"}' \
  --start-date "2026-08-18T00:00:00" --end-date "2026-08-26T00:00:00"

Lead-time defaults:

Change type Default lead time Action
Instance retirement 7 days before Replace via launch template + drain
RDS maintenance 1 day before Verify standby is current, plan failover window
API deprecation 30 days before Migrate code path
Certificate rotation 7 days before Verify renewal completed

Gotchas: scheduledEndTime can shift — AWS sometimes extends the window. Re-fetch the event before the lead-time action fires. EventBridge Scheduler has a 1-year max schedule; long deprecations need a recurring schedule or a different mechanism.

AWS User Notifications (chat delivery)

AWS User Notifications (2024-2025) is a managed service that delivers Health events (and other AWS notifications) to chat (Slack, Chime, Teams) and email without custom Lambda code.

# Create a notification channel (Slack)
aws notifications create-channel \
  --name health-slack \
  --type SLACK \
  --configuration '{"workspaceId":"T0001","channelId":"C123456"}'

# Create a notification configuration matching Health events
aws notifications create-notification-configuration \
  --name health-events \
  --source 'aws.health' \
  --channel-arns 'arn:aws:notifications:us-east-1:111111111111:channel/health-slack'

Trade-off: User Notifications is turnkey but limited in transformation (affected-entity enrichment, custom routing by service). For complex routing or responders (DR trigger, scale-out), EventBridge + Lambda remains the default. A common pattern: User Notifications for chat delivery + EventBridge + Lambda for action responders.

AWS Health Omics workflow alerts

AWS Health Omics (2024-2025) emits Health events for workflow run failures, aborted runs, and resource quota issues. The event pattern:

{
  "source": ["aws.health"],
  "detail": {
    "service": ["OMICS"],
    "eventTypeCategory": ["issue"]
  }
}

Omics-specific gotchas: workflow runs are long-lived (hours) — the Health event may fire well after the user-facing failure. Pair with Omics CloudWatch metrics for synchronous alerting.

Step Functions responder orchestration

For multi-step responders (e.g., issue → enrich entities → evaluate impact → trigger DR or scale-out → notify), use Step Functions:

Step Functions orchestration state machine moved to references. → references/responders-and-org-view.md § Step Functions responder orchestration

Gotchas: Always evaluate impact before triggering DR failover — not every Health issue is a region outage. The ImpactChoice state is the human-in-the-loop safety net: a misrouted low event should never trigger a failover.

Output format (STRICT output contract)

EVENT_TYPES:
  - [PASS|FAIL] issue rule configured
  - [PASS|FAIL] accountNotification rule configured
  - [PASS|FAIL] scheduledChange rule configured
AFFECTED_ENTITIES:
  - [PASS|FAIL] describe-affected-entities enrichment step
  - [PASS|FAIL] entityValue scoped to region + account in payload
RESPONDERS:
  - [PASS|FAIL] Notify (Slack/Teams/User Notifications) target
  - [PASS|FAIL] Ticketing (Jira) target with eventArn correlation
  - [PASS|FAIL] DR failover trigger gated behind impact evaluation
  - [PASS|FAIL] Scale-out responder with capacity headroom check
  - [PASS|FAIL] Dead-letter queue on every EventBridge target
ORG_VIEW:
  - [PASS|FAIL] Organizational view enabled (or N/A: single-account)
  - [PASS|FAIL] Delegated administrator configured (or N/A)
SCHEDULED_CHANGES:
  - [PASS|FAIL] Lead-time action via EventBridge Scheduler (or N/A: no scheduledChange)
  - [PASS|FAIL] scheduledEndTime re-fetched before action fires
VERIFICATION:
  - [PASS|FAIL] Event replay tested (synthetic Health event)
  - [PASS|FAIL] Health API poller as backup for EventBridge lag (recommended)
  - [PASS|FAIL] Responder idempotency verified (eventArn dedup)
VERDICT: AUTOMATED | MANUAL_STEP_REQUIRED
FINDINGS:
  - [INFO|WARN|HIGH|CRITICAL] <observation>
REMEDIATION:
  1. <step 1>
  2. <step 2>

Worked example — AUTOMATED issue + scheduledChange

EVENT_TYPES:
  - [PASS] issue rule: aws.health / EC2 + RDS / us-east-1, us-west-2
  - [PASS] accountNotification rule: aws.health / all services / global
  - [PASS] scheduledChange rule: aws.health / EC2 / all regions
AFFECTED_ENTITIES:
  - [PASS] Lambda health-enrich-entities calls describe-affected-entities
  - [PASS] Payload includes entityValue, awsAccountId, region
RESPONDERS:
  - [PASS] Slack notify via Lambda webhook (with DLQ)
  - [PASS] Jira create via Lambda with eventArn in description
  - [PASS] DR failover trigger gated behind ImpactChoice (region_outage only)
  - [PASS] Scale-out: update-auto-scaling-group + capacity check
  - [PASS] DLQ: sqs health-dlq attached to every target
ORG_VIEW:
  - [PASS] enable-health-service-access-for-organization run
  - [PASS] Delegated admin: 222222222222 (audit account)
SCHEDULED_CHANGES:
  - [PASS] Lead-time action: EventBridge Scheduler at scheduledEndTime - 7d
  - [PASS] Re-fetch event before firing lead-time action
VERIFICATION:
  - [PASS] Synthetic event replay: 2026-07-20, end-to-end 12s
  - [PASS] Poller: EventBridge rule + 60s describe-events fallback
  - [PASS] Idempotency: Step Functions dedup on eventArn
VERDICT: AUTOMATED
FINDINGS:
  - [INFO] Health events fire on default bus in affected resource's region
  - [WARN] User Notifications channel lag: ~30s vs EventBridge ~5s
REMEDIATION:
  1. Consider User Notifications as backup only for chat delivery

Worked example — MANUAL_STEP_REQUIRED (no org view, no DLQ)

Full MANUAL_STEP_REQUIRED worked example moved to references. → references/worked-examples.md § Worked example — MANUAL_STEP_REQUIRED (no org view, no DLQ)

NEVER (these things)

  • NEVER trigger DR failover directly from an issue event without an impact evaluation step. A single-host degradation is not a regional outage. Wire the issue event to an ImpactChoice state in Step Functions; only region_outage severity triggers the DR orchestrator. Ungated triggers cause false-positive failovers.

  • NEVER ship an EventBridge rule without a dead-letter queue. Health events are low-volume and high-urgency — a Lambda cold-start failure, SNS throttle, or transient IAM error silently drops the event. Always attach DeadLetterConfig to every target.

  • NEVER rely on EventBridge alone for time-sensitive detection. Public Health events can lag the Health API by up to 10 minutes. For tier-0 workloads, run a describe-events poller on a 60-second cadence as a fallback alongside EventBridge.

  • NEVER skip affected-entity enrichment. A Health event without entities is "something is wrong in EC2" — useless to responders. Always call describe-affected-entities and include the resource IDs in the payload. The Health API requires a Business/Enterprise support plan.

  • NEVER assume a single-region rule catches all events. Health events fire on the default bus in the affected resource's region. A rule in us-east-1 does not catch an event for a resource in eu-west-1. Deploy the rule in every active region, or use organizational view (delegated admin bus).

Expert heuristic callouts

Expert heuristic callouts moved to references. → references/advanced-patterns.md § Expert heuristic callouts

Pre-flight safety checks

  • MANDATORY CONFIRMATION GATE. Before any state-changing responder (autoscaling update-auto-scaling-group, stepfunctions start-execution for DR, iam update-access-key), emit: CONFIRM: About to <action> triggered by Health event <eventArn>. Proceed? (yes/no) and wait for explicit yes.
  • Impact-gate the DR trigger. The DR orchestrator must be reachable only from an ImpactChoice that evaluates region_outage. Never wire DR directly from an issue event.
  • Verify the DLQ is drained. aws sqs get-queue-attributes — a growing DLQ means silently-dropped Health events.
  • Verify org view is enabled. aws health describe-health-service-status in the delegated admin account.
  • Verify responder idempotency. Replaying the same eventArn should not create a second Jira ticket or trigger a second failover. Dedup on eventArn in the responder state.

Edge-case handling

Edge-case handling catalog moved to references. → references/advanced-patterns.md § Edge-case handling

Recent AWS features (2024-2026)

2024-2026 feature notes moved to references. → references/advanced-patterns.md § Recent AWS features (2024-2026)

References (load on demand)

Consult these only when the corresponding topic comes up:

Domain

AWS CloudOps / Health Event Response Automation.

AWS documentation

04 同仓库更多 Skills

jhkchan
jhkchan/aws-agent-skills

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 / method / 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 / 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 / EKS / 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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 / 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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/API Gateway/CloudFront, or configuring CAPTCHA/Challenge 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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/bypass 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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.

★ 4