AGENT SKILL

firehose-delivery-stream-auditor

Audits Amazon Kinesis Data Firehose (firehose) delivery streams for encryption-at-rest gaps (explicit NoEncryption, missing CMK, or absent EncryptionConfiguration defaulting to bucket policy), S3-destination BufferingHints quota violations, Lambda transformation backup/DLQ posture, CloudWatch error-logging silence (LoggingConfig disabled or absent — transformation failures become invisible), source-backup absence under dynamic partitioning (silent data-loss vector), and dynamic-partitioning structural integrity (metadata extraction wiring, ExtendedS3 requirement, RetryDuration=0 trap). Emits a deterministic first-fail-wins verdict (NO_ENCRYPTION | CONFIG_GAP | OK) per delivery stream with enumerated findings and CLI remediation. Use when reviewing Firehose delivery streams, validating SSE-KMS CMK coverage, auditing Lambda transformation resilience, checking dynamic-partitioning source backup, or hardening stream posture before production deployment.

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

01 前言 Front Matter

name
firehose-delivery-stream-auditor
license
Apache-2.0
metadata
{ "tags": "firehose, kinesis, analytics, encryption, kms, lambda-transform, dynamic-partitioning, s3-destination, audit", "phase": "2", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Analytics", "version": "0.1.0", "keywords": "Kinesis Data Firehose, delivery stream, firehose, SSE-KMS, SSE-S3, NoEncryption, KMSEncryptionConfig, BufferingHints, Lambda transformation, ProcessingConfiguration, LoggingConfig, CloudWatch error logging, S3BackupConfiguration, source backup, DynamicPartitioningConfiguration, MetadataExtraction, ExtendedS3DestinationConfiguration, S3DestinationConfiguration, data loss vector, silent failure, StartDeliveryStreamEncryption, firehose audit", "complexity": "high", "entry_point": "false", "when_to_use": "Reviewing a Firehose delivery stream before production deployment, checking for NoEncryption plaintext destinations, validating SSE-KMS CMK coverage on S3 destinations, auditing Lambda transformation resilience (buffer, DLQ, source backup), checking dynamic-partitioning source-backup posture, or hardening stream posture for compliance.", "requires_llm": "true", "verdict_shape": "NO_ENCRYPTION | CONFIG_GAP | OK", "invocation_schema": "Input: either (a) a Firehose delivery-stream configuration JSON (describe-delivery-stream output), optionally paired with related KMS key + S3 bucket metadata, OR (b) a delivery-stream name/ARN for live-account audit. Output: deterministic STREAM/VERDICT/REASON/ FINDINGS/REMEDIATION block per stream, where VERDICT ∈ {NO_ENCRYPTION, CONFIG_GAP, OK, ERROR}.", "supports_pipeline": "true", "activation_triggers": "audit this Firehose delivery stream, is my Firehose stream encrypted, check Firehose Lambda transformation, is dynamic partitioning configured correctly, Firehose source backup missing, CloudWatch error logging disabled Firehose, BufferingHints out of range, firehose data loss vector, firehose NoEncryption destination" }
description
Audits Amazon Kinesis Data Firehose (firehose) delivery streams for encryption-at-rest gaps (explicit NoEncryption, missing CMK, or absent EncryptionConfiguration defaulting to bucket policy), S3-destination BufferingHints quota violations, Lambda transformation backup/DLQ posture, CloudWatch error-logging silence (LoggingConfig disabled or absent — transformation failures become invisible), source-backup absence under dynamic partitioning (silent data-loss vector), and dynamic-partitioning structural integrity (metadata extraction wiring, ExtendedS3 requirement, RetryDuration=0 trap). Emits a deterministic first-fail-wins verdict (NO_ENCRYPTION | CONFIG_GAP | OK) per delivery stream with enumerated findings and CLI remediation. Use when reviewing Firehose delivery streams, validating SSE-KMS CMK coverage, auditing Lambda transformation resilience, checking dynamic-partitioning source backup, or hardening stream posture before production deployment.
compatibility
Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline configuration classification. Live-account audits use aws firehose describe-delivery-stream, list-delivery-streams, list-tags-for-delivery-stream, and aws kms describe-key (AWS CLI v2, SSO or key-based credentials).

02 资源文件 19

03 SKILL.md 正文

Kinesis Data Firehose Delivery Stream Auditor

Mindset

Mindset and silent-failure model moved to references/advanced-patterns.md.

Quick reference — first-fail-wins verdict

Condition (evaluate top-down) Verdict Step
ExtendedS3DestinationConfiguration.EncryptionConfiguration.NoEncryption: {} (explicit) NO_ENCRYPTION Step 1a
S3DestinationConfiguration (legacy) with no EncryptionConfiguration block AND bucket policy / account SCP does not enforce SSE NO_ENCRYPTION Step 1b
EncryptionConfiguration block absent on a destination that supports it (relies on implicit bucket default) CONFIG_GAP Step 1c
KMSEncryptionConfig.AWSKMSKeyArn set but the referenced CMK is in a different region from the stream CONFIG_GAP Step 1d
BufferingHints.SizeInMBs or IntervalInSeconds outside [1,128] / [60,900] CONFIG_GAP Step 2
ProcessingConfiguration.Enabled: true with Lambda processor + S3BackupMode: Disabled CONFIG_GAP Step 3
ProcessingConfiguration.Enabled: true with no Lambda BufferSizeInMBs (1-3) / BufferIntervalInSeconds (0-300) CONFIG_GAP Step 3
LoggingConfig.Enabled: false OR LoggingConfig absent on a stream with any processing enabled CONFIG_GAP Step 4
DynamicPartitioningConfiguration.Enabled: true AND no S3BackupConfiguration (or SourceBackupConfiguration) CONFIG_GAP Step 5a
DynamicPartitioningConfiguration.Enabled: true AND RetryDuration: 0 (or absent) CONFIG_GAP Step 5b
DP enabled with no MetadataExtraction processor in ProcessingConfiguration CONFIG_GAP Step 5c
DP enabled on a stream with S3DestinationConfiguration (legacy, not ExtendedS3*) CONFIG_GAP Step 5d
KMSEncryptionConfig set + valid BufferingHints + LoggingConfig enabled + (DP off OR DP+source backup) + (Lambda off OR Lambda+backup) OK Step 6

NO_ENCRYPTION strictly dominates CONFIG_GAP — encryption is a data-protection failure and is never co-reported with a config gap.

Pre-flight: stream metadata gate

Before evaluating destination configuration, classify the stream itself. Several attributes short-circuit the audit:

Attribute Value Effect
DeliveryStreamStatus CREATING / DELETING Stream is not delivering. Skip destination audit; emit VERDICT: OK, REASON: Stream not yet ACTIVE — no live data exposure. Do NOT flag a CREATING stream for missing CloudWatch logs (the log group is created post-ACTIVE).
DeliveryStreamStatus STARTING / STOPPING (encryption toggle) Mid-toggle state during StartDeliveryStreamEncryption / StopDeliveryStreamEncryption. Re-evaluate after the operation completes — the in-flight config is not the steady state.
DeliveryStreamType DirectPut Source is a producer writing directly. No Kinesis Data Stream upstream — source-backup checks apply to Firehose's own buffers, not a Kinesis stream.
DeliveryStreamType KinesisStreamAsSource A Kinesis Data Stream is the source. The upstream stream's retention (24h-365d) is a separate audit; Firehose does not re-buffer source data. Note for the operator, but not verdict-impacting.
Destination type HttpEndpoint / Redshift / Amazonopensearchservice / Splunk / AmazonOpenSearchServerless Non-S3 destinations have their own buffering/encryption semantics. The encryption audit (Step 1) still applies where the destination exposes S3BackupConfiguration (Redshift/Splunk/OpenSearch all stage in S3 first). Skip Steps 2 and 6 for the destination-native buffering, but DO evaluate S3 backup (Step 5) for the staging bucket.
DeliveryStreamEncryptionConfigurationConfig present (stream-level) Stream-level encryption (separate from destination EncryptionConfiguration) is for the Firehose queue itself, not the S3 destination. Rare; only DirectPut streams with Source are eligible. Do not confuse with destination-level encryption.

If the delivery-stream configuration JSON is malformed (invalid JSON, missing DestinationDestination block), output:

STREAM: <name>
VERDICT: ERROR
REASON: Delivery-stream configuration is not valid JSON or is missing the DestinationSet — cannot classify.
REMEDIATION: Retrieve the canonical config with `aws firehose describe-delivery-stream --delivery-stream-name <name> --output json` and re-audit.

Multi-stream / account-wide sweep note (pagination): aws firehose list-delivery-streams returns at most 10 streams per page by default (--limit max 10, not the AWS-wide 50 or 100). Use --exclusive-start-delivery-stream-name to iterate; silently truncating the list is the most common missed-stream bug. For each stream, describe-delivery-stream returns a single config document (no pagination), but list-tags-for-delivery-stream paginates separately at 50 per page.

Process — Classification logic (apply in order, first-fail-wins)

Step 0: Expert knowledge — non-obvious Firehose behaviors that change classification

Step 0 expert knowledge moved to references/advanced-patterns.md.

Step 1: Encryption evaluation (drives NO_ENCRYPTION verdict)

Inspect ExtendedS3DestinationConfiguration.EncryptionConfiguration (or S3DestinationConfiguration.EncryptionConfiguration on legacy streams, or S3BackupConfiguration.EncryptionConfiguration for staged destinations):

  • Step 1a — explicit NoEncryption: if the block is {NoEncryption: {}} → NO_ENCRYPTION. Data is written to S3 in plaintext (modulo bucket-default enforcement). This is the highest- precedence finding; emit and stop.

  • Step 1b — legacy S3DestinationConfiguration with no encryption config AND no bucket-default evidence: if the input is a legacy S3DestinationConfiguration with no EncryptionConfiguration AND no metadata showing the bucket enforces SSE → NO_ENCRYPTION. We cannot prove encryption; the legacy field provides no in-band guarantee. If the input explicitly states the bucket has SSE-S3 or SSE-KMS enforced via bucket policy, downgrade to CONFIG_GAP (the Firehose stream itself is unmanaged, but data is encrypted via the bucket layer).

  • Step 1c — absent EncryptionConfiguration on ExtendedS3: if ExtendedS3DestinationConfiguration is present but the EncryptionConfiguration sub-block is missing entirely → CONFIG_GAP. ExtendedS3 streams should declare encryption explicitly; absence means the stream inherits the bucket default, which is operationally invisible (you have to inspect two resources to know the posture). Do NOT classify as NO_ENCRYPTION — S3 itself applies SSE-S3 by default if no bucket policy enforces otherwise, so data is still encrypted at rest in the common case.

  • Step 1d — CMK cross-region or non-ARN: if KMSEncryptionConfig.AWSKMSKeyArn is set but the value is not a valid ARN, or the ARN's region differs from the stream's region → CONFIG_GAP. The stream will fail at delivery time. (A multi- region key ARN matching the stream region is fine.)

  • Step 1 — pass: if KMSEncryptionConfig.AWSKMSKeyArn is a valid same-region ARN → encryption dimension passes; proceed to Step 2.

NO_ENCRYPTION short-circuits — do not evaluate Steps 2-5 if Step 1a or 1b fires. Encryption is a data-protection control that dominates all configuration concerns.

Step 2: S3 destination buffering (BufferingHints)

For each S3 destination (ExtendedS3, legacy S3, backup, staging), inspect BufferingHints:

Field Valid range Default CONFIG_GAP trigger
SizeInMBs 1 - 128 5 outside range
IntervalInSeconds 60 - 900 300 outside range
  • Out-of-range values are quota violations (ValidationException at creation) — but Terraform/CloudFormation drift or a hand-edited config can produce them. Flag as CONFIG_GAP.
  • Missing BufferingHints block entirely → use defaults; NOT a finding.
  • SizeInMBs: 128 with IntervalInSeconds: 60 is valid but creates large files quickly — recommend (not flag) tuning for the downstream query engine (Athena, Glue).

Step 3: Lambda transformation posture

If ProcessingConfiguration.Enabled: true and the Processors list contains a processor with Type: Lambda:

  • Lambda buffer parameters: the Lambda processor must specify BufferSizeInMBs (range 0.2-3 MiB, but the API only accepts whole MBs in [1, 3]) and BufferIntervalInSeconds (range 60-900). Missing or out-of-range → CONFIG_GAP.
  • Source backup: if S3BackupMode is Disabled (or absent) when Lambda transformation is enabled → CONFIG_GAP. A Lambda function that silently drops or malforms records has no recovery path without the source backup. S3BackupMode: FailedDataOnly does NOT catch Lambda-side silent corruption — only Firehose-detected failures. Recommend Enabled.
  • Lambda function DLQ: Firehose does not require a Lambda DLQ (Firehose itself retries), but if the function has no DLQ and no destination-on-failure, asynchronous invocation failures are lost. Recommend (do not flag) configuring DeadLetterConfig on the function.

If ProcessingConfiguration.Enabled: false or no Lambda processor → skip Step 3.

Step 4: CloudWatch error logging

Inspect LoggingConfig (top-level on DeliveryStreamConfiguration, not per-destination):

  • LoggingConfig.Enabled: false AND any processing (Lambda, dynamic partitioning, format conversion) is enabled → CONFIG_GAP. Transformation failures are silent.
  • LoggingConfig absent on a stream created after 2023-11-01 (when LoggingConfig became default-on for new streams) → CONFIG_GAP. Indicates a non-standard creation path.
  • LoggingConfig.Enabled: true but LogGroupName is empty or does not match arn:aws:logs:... conventions → CONFIG_GAP.
  • Pass condition: Enabled: true + valid LogGroupName.

For streams with no processing enabled (no Lambda, no DP, no format conversion), LoggingConfig absence is NOT a finding — there are no transformation errors to log.

Step 5: Source backup under dynamic partitioning

If ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.Enabled: true:

  • Step 5a — source backup required: the stream MUST have ExtendedS3DestinationConfiguration.S3BackupConfiguration populated (or a top-level SourceBackupConfiguration on newer API versions). DP can fail per-record (JQ parse error) and Firehose will discard the record on retry exhaustion. Without source backup, this is silent data loss. Missing → CONFIG_GAP.

  • Step 5b — RetryDuration: DynamicPartitioningConfiguration.RetryDuration in seconds, range 0-300. If RetryDuration: 0 (or absent with DP enabled) → CONFIG_GAP. Zero retry means any extraction failure is immediately fatal.

  • Step 5c — MetadataExtraction processor: DP requires a MetadataExtraction processor in ProcessingConfiguration.Processors with Parameters containing JsonParsingEngine (JQ-1.6) and MetaDataExtractionQuery (the JQ expression). Missing or malformed → CONFIG_GAP. DP without extraction logic is structurally impossible (API rejects it at creation) — its presence indicates a stale or fabricated input.

  • Step 5d — ExtendedS3 requirement: DP is incompatible with the legacy S3DestinationConfiguration. If the input shows DP enabled on a legacy destination → CONFIG_GAP (and note the input is suspect).

If DP is disabled or absent → skip Step 5 entirely.

Step 6: Aggregation

Apply first-fail-wins ordering:

if Step 1a or 1b fires:  verdict = NO_ENCRYPTION
elif any of Step 1c, 1d, 2, 3, 4, 5 fires:  verdict = CONFIG_GAP
else:  verdict = OK

NO_ENCRYPTION is reported alone (it dominates). For CONFIG_GAP, list all fired findings in FINDINGS — do not stop at the first, because multiple gaps compound (e.g., a stream with no LoggingConfig AND no source backup has two independent data-loss vectors).

For OK, briefly note which dimensions passed to give the operator confidence the audit was complete.

Output format (per delivery stream)

STREAM: <delivery-stream-name>
VERDICT: NO_ENCRYPTION | CONFIG_GAP | OK
REASON: <1-2 sentences citing the fired step and the worst finding>
FINDINGS:
  - [<SEVERITY>] <finding description (Step N)>
  - [<SEVERITY>] <finding description (Step N)>
REMEDIATION: <specific CLI per finding, or "None required" if OK>

Severity is informational (CRITICAL / HIGH / MEDIUM / LOW) and does not change the verdict. It helps the operator prioritise when multiple findings fire. Suggested mapping: NO_ENCRYPTION=CRITICAL; missing source backup under DP=HIGH; LoggingConfig disabled=HIGH; buffering quota violation=MEDIUM; everything else=LOW.

Worked example — DP without source backup, CMK set

STREAM: events-stream-prod
VERDICT: CONFIG_GAP
REASON: Dynamic partitioning is enabled but S3BackupConfiguration is
absent — any JQ extraction failure causes silent record loss (Step 5a).
LoggingConfig is also absent, so the failures would be invisible.
FINDINGS:
  - [HIGH] DP enabled with no S3BackupConfiguration — silent data-loss vector (Step 5a)
  - [HIGH] LoggingConfig absent with processing enabled — transformation errors invisible (Step 4)
  - [LOW] RetryDuration not set on DynamicPartitioningConfiguration (defaults to 300, verify intent) (Step 5b)
REMEDIATION:
  1. Add S3BackupConfiguration to the ExtendedS3 destination:
     aws firehose update-destination --delivery-stream-name events-stream-prod \
       --current-delivery-stream-version-id <version> \
       --destination-id destinationId-000000000001 \
       --extended-s3-update '{ "S3BackupConfiguration": { "RoleARN": "...", "BucketARN": "...", "Prefix": "backup/", "BufferingHints": {"SizeInMBs": 5, "IntervalInSeconds": 300} } }'
  2. Enable CloudWatch error logging:
     aws firehose update-destination ... --extended-s3-update (LoggingConfig is top-level: use aws firehose update-destination with the appropriate top-level field if your CLI version supports it, otherwise recreate the stream).

Edge-case handling

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

Anti-Patterns — NEVER

  • NEVER classify NoEncryption: {} as anything other than NO_ENCRYPTION. It is an explicit, deliberate opt-out of at-rest encryption — the only API path to plaintext Firehose delivery. "But the bucket has SSE-KMS enforced" is not a defense; Firehose writes will fail at delivery time, which is an availability problem on top of a security problem.

  • NEVER treat an absent EncryptionConfiguration block on ExtendedS3DestinationConfiguration as NO_ENCRYPTION. ExtendedS3 streams fall back to the S3 bucket default, which is almost always SSE-S3 AES256. The finding is CONFIG_GAP (encryption is not declaratively managed at the Firehose layer) — calling it NO_ENCRYPTION is a false positive that causes alert fatigue.

  • NEVER flag BufferingHints defaults (5 MiB / 300s) as a config gap. They are sensible AWS-shipped defaults. Only flag out-of-range values or (in REMEDIATION, not FINDINGS) pathological combinations like SizeInMBs: 128 + IntervalInSeconds: 60.

  • NEVER assume S3BackupMode: FailedDataOnly provides resilient backup. It captures only records Firehose itself flags as failed — Lambda functions returning 200 with malformed output are treated as success and the corrupted output is delivered without backup. For transformation-critical streams, Enabled (all data) is the only safe mode.

  • NEVER classify a missing LoggingConfig on a stream with NO processing enabled as a config gap. There are no transformation errors to log — the finding is a false positive that produces noise.

  • NEVER recommend disabling dynamic partitioning as remediation for a missing source backup. DP is the workload's reason for existing (event-routed S3 layouts). The remediation is to ADD source backup, not to remove the partitioning capability.

  • NEVER call StartDeliveryStreamEncryption / StopDeliveryStreamEncryption without first verifying DeliveryStreamStatus: ACTIVE. Calling either during a CREATING or already-STARTING state returns ValidationException and provides no rollback path.

  • NEVER conflate stream-level DeliveryStreamEncryptionConfiguration (queue-level encryption, DirectPut-only) with destination-level EncryptionConfiguration. They are independent controls with independent audit dimensions.

  • NEVER treat a CMK referenced by alias (alias/prod-firehose) as valid. The AWSKMSKeyArn field requires a fully-qualified ARN. Aliases are silently accepted at creation and fail at first delivery. Flag as CONFIG_GAP.

  • NEVER rely on CloudWatch metrics (AWS/Firehose) to detect transformation failures. Metrics show DeliveryToS3.Success as long as Firehose successfully writes SOMETHING to S3 — silently-dropped records do not move the metric. The LoggingConfig log group is the only authoritative source.

  • NEVER assume update-destination is reversible. It is not — there is no rollback. The previous config is overwritten atomically. Always capture describe-delivery-stream output before any update for forensic reconstruction.

  • NEVER flag a legacy S3DestinationConfiguration stream as CONFIG_GAP purely for being legacy. Legacy streams predate ExtendedS3 and are fully supported. Flag only if the legacy stream attempts to use DP or per-record processing (which ExtendedS3 is required for).

  • NEVER recommend a multi-region CMK (mrk-) without confirming the stream's region has a replica. A multi-region key ARN resolves to a specific replica; the stream binds to that replica at creation.

Pre-flight safety checks (run before any remediation CLI)

  • MANDATORY CONFIRMATION GATE. Before any state-changing operation (update-destination, StartDeliveryStreamEncryption, StopDeliveryStreamEncryption, DeleteDeliveryStream), emit: CONFIRM: About to <action> on stream <name> in account <account>. This affects <consequence>. Proceed? (yes/no). Do NOT execute until the operator confirms.
  • Capture current config before any update. aws firehose describe-delivery-stream --delivery-stream-name <name> --output json > /tmp/<name>-backup-$(date +%s).json. update-destination is not reversible — the only rollback is a captured snapshot.
  • Verify DeliveryStreamStatus: ACTIVE before any update. Updates to non-ACTIVE streams return ValidationException.
  • Verify the operator's role can call firehose:UpdateDestination. Most read-only auditor roles CANNOT. Surface this BEFORE proposing the CLI command — a failed AccessDenied mid-remediation leaves the stream in an inconsistent state if the operator then attempts partial remediation manually.
  • For DP source-backup additions: verify the backup bucket exists and the Firehose role has s3:PutObject on the backup prefix BEFORE running update-destination. A misconfigured backup bucket causes the update to succeed but every subsequent delivery to fail.
  • For CMK rotation / replacement: the new CMK's key policy must grant the Firehose service principal kms:GenerateDataKey + kms:Decrypt BEFORE the update-destination call. Otherwise the first delivery post-update fails with KMSNotAccessible.
  • For DeleteDeliveryStream --allow-force-delete: this is irreversible and drops in-flight buffered data. Require explicit operator sign-off AND a captured describe-delivery-stream backup.
  • Prefer additive updates (add S3BackupConfiguration, enable LoggingConfig) over destructive updates (remove a processor, change the bucket). Additive updates cannot break the existing delivery path.

Remediation guidance

Ordering principle: prefer additive over destructive. Add source backup before changing the primary destination. Enable LoggingConfig before changing transformation logic — otherwise the change is unobservable.

Per-verdict remediation fixes moved to references/error-handling.md.

Deep reference: Firehose destination-shape matrix

Destination-shape matrix moved to references/advanced-patterns.md.

Recent AWS features (2024-2026)

Recent AWS features moved to references/advanced-patterns.md.

References (load on demand)

Domain

AWS CloudOps / Kinesis Data Firehose Analytics & Data-Protection.

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