[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8F2BW9PPYSVJCHR5641WZ":3,"skill-same:01M7A8F2BW9PPYSVJCHR5641WZ":140},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7A8F2BW9PPYSVJCHR5641WZ","firehose-delivery-stream-auditor",null,"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\u002FDLQ 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.","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\u002Ffirehose-delivery-stream-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: firehose-delivery-stream-auditor\ndescription: 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\u002FDLQ 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.\nlicense: Apache-2.0\ncompatibility: 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).\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: Analytics\n  verdict_shape: NO_ENCRYPTION | CONFIG_GAP | OK\n  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.\n  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\n  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\u002FARN for live-account audit. Output: deterministic STREAM\u002FVERDICT\u002FREASON\u002F FINDINGS\u002FREMEDIATION block per stream, where VERDICT ∈ {NO_ENCRYPTION, CONFIG_GAP, OK, ERROR}.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  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\n  tags: firehose, kinesis, analytics, encryption, kms, lambda-transform, dynamic-partitioning, s3-destination, audit\n---\n\n# Kinesis Data Firehose Delivery Stream Auditor\n\n## Mindset\n\nMindset and silent-failure model moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick reference — first-fail-wins verdict\n\n| Condition (evaluate top-down) | Verdict | Step |\n|---|---|---|\n| `ExtendedS3DestinationConfiguration.EncryptionConfiguration.NoEncryption: {}` (explicit) | **NO_ENCRYPTION** | Step 1a |\n| `S3DestinationConfiguration` (legacy) with no `EncryptionConfiguration` block AND bucket policy \u002F account SCP does not enforce SSE | **NO_ENCRYPTION** | Step 1b |\n| `EncryptionConfiguration` block absent on a destination that supports it (relies on implicit bucket default) | **CONFIG_GAP** | Step 1c |\n| `KMSEncryptionConfig.AWSKMSKeyArn` set but the referenced CMK is in a different region from the stream | **CONFIG_GAP** | Step 1d |\n| `BufferingHints.SizeInMBs` or `IntervalInSeconds` outside `[1,128]` \u002F `[60,900]` | **CONFIG_GAP** | Step 2 |\n| `ProcessingConfiguration.Enabled: true` with Lambda processor + `S3BackupMode: Disabled` | **CONFIG_GAP** | Step 3 |\n| `ProcessingConfiguration.Enabled: true` with no Lambda `BufferSizeInMBs` (1-3) \u002F `BufferIntervalInSeconds` (0-300) | **CONFIG_GAP** | Step 3 |\n| `LoggingConfig.Enabled: false` OR `LoggingConfig` absent on a stream with any processing enabled | **CONFIG_GAP** | Step 4 |\n| `DynamicPartitioningConfiguration.Enabled: true` AND no `S3BackupConfiguration` (or `SourceBackupConfiguration`) | **CONFIG_GAP** | Step 5a |\n| `DynamicPartitioningConfiguration.Enabled: true` AND `RetryDuration: 0` (or absent) | **CONFIG_GAP** | Step 5b |\n| DP enabled with no `MetadataExtraction` processor in `ProcessingConfiguration` | **CONFIG_GAP** | Step 5c |\n| DP enabled on a stream with `S3DestinationConfiguration` (legacy, not `ExtendedS3*`) | **CONFIG_GAP** | Step 5d |\n| `KMSEncryptionConfig` set + valid `BufferingHints` + LoggingConfig enabled + (DP off OR DP+source backup) + (Lambda off OR Lambda+backup) | **OK** | Step 6 |\n\nNO_ENCRYPTION strictly dominates CONFIG_GAP — encryption is a\ndata-protection failure and is never co-reported with a config gap.\n\n## Pre-flight: stream metadata gate\n\nBefore evaluating destination configuration, classify the stream itself.\nSeveral attributes short-circuit the audit:\n\n| Attribute | Value | Effect |\n|---|---|---|\n| `DeliveryStreamStatus` | `CREATING` \u002F `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). |\n| `DeliveryStreamStatus` | `STARTING` \u002F `STOPPING` (encryption toggle) | Mid-toggle state during `StartDeliveryStreamEncryption` \u002F `StopDeliveryStreamEncryption`. Re-evaluate after the operation completes — the in-flight config is not the steady state. |\n| `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. |\n| `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. |\n| Destination type | `HttpEndpoint` \u002F `Redshift` \u002F `Amazonopensearchservice` \u002F `Splunk` \u002F `AmazonOpenSearchServerless` | Non-S3 destinations have their own buffering\u002Fencryption semantics. The encryption audit (Step 1) still applies where the destination exposes `S3BackupConfiguration` (Redshift\u002FSplunk\u002FOpenSearch 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. |\n| `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. |\n\n**If the delivery-stream configuration JSON is malformed** (invalid\nJSON, missing `DestinationDestination` block), output:\n\n```text\nSTREAM: \u003Cname>\nVERDICT: ERROR\nREASON: Delivery-stream configuration is not valid JSON or is missing the DestinationSet — cannot classify.\nREMEDIATION: Retrieve the canonical config with `aws firehose describe-delivery-stream --delivery-stream-name \u003Cname> --output json` and re-audit.\n```\n\n**Multi-stream \u002F account-wide sweep note (pagination):** `aws firehose\nlist-delivery-streams` returns at most 10 streams per page by default\n(`--limit` max 10, **not** the AWS-wide 50 or 100). Use\n`--exclusive-start-delivery-stream-name` to iterate; silently truncating\nthe list is the most common missed-stream bug. For each stream,\n`describe-delivery-stream` returns a single config document (no\npagination), but `list-tags-for-delivery-stream` paginates separately at\n50 per page.\n\n## Process — Classification logic (apply in order, first-fail-wins)\n\n### Step 0: Expert knowledge — non-obvious Firehose behaviors that change classification\n\nStep 0 expert knowledge moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Encryption evaluation (drives NO_ENCRYPTION verdict)\n\nInspect `ExtendedS3DestinationConfiguration.EncryptionConfiguration`\n(or `S3DestinationConfiguration.EncryptionConfiguration` on legacy\nstreams, or `S3BackupConfiguration.EncryptionConfiguration` for\nstaged destinations):\n\n- **Step 1a — explicit NoEncryption:** if the block is\n  `{NoEncryption: {}}` → **NO_ENCRYPTION**. Data is written to S3 in\n  plaintext (modulo bucket-default enforcement). This is the highest-\n  precedence finding; emit and stop.\n\n- **Step 1b — legacy S3DestinationConfiguration with no encryption\n  config AND no bucket-default evidence:** if the input is a legacy\n  `S3DestinationConfiguration` with no `EncryptionConfiguration` AND\n  no metadata showing the bucket enforces SSE → **NO_ENCRYPTION**. We\n  cannot prove encryption; the legacy field provides no in-band\n  guarantee. If the input explicitly states the bucket has SSE-S3 or\n  SSE-KMS enforced via bucket policy, downgrade to CONFIG_GAP (the\n  Firehose stream itself is unmanaged, but data is encrypted via the\n  bucket layer).\n\n- **Step 1c — absent EncryptionConfiguration on ExtendedS3:** if\n  `ExtendedS3DestinationConfiguration` is present but the\n  `EncryptionConfiguration` sub-block is missing entirely →\n  **CONFIG_GAP**. ExtendedS3 streams should declare encryption\n  explicitly; absence means the stream inherits the bucket default,\n  which is operationally invisible (you have to inspect two resources\n  to know the posture). Do NOT classify as NO_ENCRYPTION — S3 itself\n  applies SSE-S3 by default if no bucket policy enforces otherwise,\n  so data is still encrypted at rest in the common case.\n\n- **Step 1d — CMK cross-region or non-ARN:** if\n  `KMSEncryptionConfig.AWSKMSKeyArn` is set but the value is not a\n  valid ARN, or the ARN's region differs from the stream's region →\n  **CONFIG_GAP**. The stream will fail at delivery time. (A multi-\n  region key ARN matching the stream region is fine.)\n\n- **Step 1 — pass:** if `KMSEncryptionConfig.AWSKMSKeyArn` is a valid\n  same-region ARN → encryption dimension passes; proceed to Step 2.\n\n**NO_ENCRYPTION short-circuits** — do not evaluate Steps 2-5 if Step\n1a or 1b fires. Encryption is a data-protection control that dominates\nall configuration concerns.\n\n### Step 2: S3 destination buffering (BufferingHints)\n\nFor each S3 destination (ExtendedS3, legacy S3, backup, staging),\ninspect `BufferingHints`:\n\n| Field | Valid range | Default | CONFIG_GAP trigger |\n|---|---|---|---|\n| `SizeInMBs` | `1` - `128` | `5` | outside range |\n| `IntervalInSeconds` | `60` - `900` | `300` | outside range |\n\n- Out-of-range values are quota violations (`ValidationException` at\n  creation) — but Terraform\u002FCloudFormation drift or a hand-edited config\n  can produce them. Flag as CONFIG_GAP.\n- Missing `BufferingHints` block entirely → use defaults; NOT a finding.\n- `SizeInMBs: 128` with `IntervalInSeconds: 60` is valid but creates\n  large files quickly — recommend (not flag) tuning for the downstream\n  query engine (Athena, Glue).\n\n### Step 3: Lambda transformation posture\n\nIf `ProcessingConfiguration.Enabled: true` and the `Processors` list\ncontains a processor with `Type: Lambda`:\n\n- **Lambda buffer parameters:** the Lambda processor must specify\n  `BufferSizeInMBs` (range 0.2-3 MiB, but the API only accepts whole\n  MBs in [`1`, `3`]) and `BufferIntervalInSeconds` (range 60-900).\n  Missing or out-of-range → **CONFIG_GAP**.\n- **Source backup:** if `S3BackupMode` is `Disabled` (or absent) when\n  Lambda transformation is enabled → **CONFIG_GAP**. A Lambda function\n  that silently drops or malforms records has no recovery path without\n  the source backup. `S3BackupMode: FailedDataOnly` does NOT catch\n  Lambda-side silent corruption — only Firehose-detected failures.\n  Recommend `Enabled`.\n- **Lambda function DLQ:** Firehose does not require a Lambda DLQ\n  (Firehose itself retries), but if the function has no DLQ and no\n  destination-on-failure, asynchronous invocation failures are lost.\n  Recommend (do not flag) configuring `DeadLetterConfig` on the\n  function.\n\nIf `ProcessingConfiguration.Enabled: false` or no Lambda processor →\nskip Step 3.\n\n### Step 4: CloudWatch error logging\n\nInspect `LoggingConfig` (top-level on\n`DeliveryStreamConfiguration`, not per-destination):\n\n- `LoggingConfig.Enabled: false` AND any processing (Lambda, dynamic\n  partitioning, format conversion) is enabled → **CONFIG_GAP**.\n  Transformation failures are silent.\n- `LoggingConfig` absent on a stream created after 2023-11-01 (when\n  LoggingConfig became default-on for new streams) → **CONFIG_GAP**.\n  Indicates a non-standard creation path.\n- `LoggingConfig.Enabled: true` but `LogGroupName` is empty or does\n  not match `arn:aws:logs:...` conventions → **CONFIG_GAP**.\n- Pass condition: `Enabled: true` + valid `LogGroupName`.\n\nFor streams with no processing enabled (no Lambda, no DP, no format\nconversion), LoggingConfig absence is NOT a finding — there are no\ntransformation errors to log.\n\n### Step 5: Source backup under dynamic partitioning\n\nIf `ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.Enabled: true`:\n\n- **Step 5a — source backup required:** the stream MUST have\n  `ExtendedS3DestinationConfiguration.S3BackupConfiguration`\n  populated (or a top-level `SourceBackupConfiguration` on newer API\n  versions). DP can fail per-record (JQ parse error) and Firehose\n  will discard the record on retry exhaustion. Without source backup,\n  this is silent data loss. Missing → **CONFIG_GAP**.\n\n- **Step 5b — RetryDuration:** `DynamicPartitioningConfiguration.RetryDuration`\n  in seconds, range `0`-`300`. If `RetryDuration: 0` (or absent with\n  DP enabled) → **CONFIG_GAP**. Zero retry means any extraction\n  failure is immediately fatal.\n\n- **Step 5c — MetadataExtraction processor:** DP requires a\n  `MetadataExtraction` processor in `ProcessingConfiguration.Processors`\n  with `Parameters` containing `JsonParsingEngine` (`JQ-1.6`) and\n  `MetaDataExtractionQuery` (the JQ expression). Missing or malformed\n  → **CONFIG_GAP**. DP without extraction logic is structurally\n  impossible (API rejects it at creation) — its presence indicates a\n  stale or fabricated input.\n\n- **Step 5d — ExtendedS3 requirement:** DP is incompatible with the\n  legacy `S3DestinationConfiguration`. If the input shows DP enabled\n  on a legacy destination → **CONFIG_GAP** (and note the input is\n  suspect).\n\nIf DP is disabled or absent → skip Step 5 entirely.\n\n### Step 6: Aggregation\n\nApply first-fail-wins ordering:\n\n```text\nif Step 1a or 1b fires:  verdict = NO_ENCRYPTION\nelif any of Step 1c, 1d, 2, 3, 4, 5 fires:  verdict = CONFIG_GAP\nelse:  verdict = OK\n```\n\nNO_ENCRYPTION is reported alone (it dominates). For CONFIG_GAP, list\nall fired findings in FINDINGS — do not stop at the first, because\nmultiple gaps compound (e.g., a stream with no LoggingConfig AND no\nsource backup has two independent data-loss vectors).\n\nFor OK, briefly note which dimensions passed to give the operator\nconfidence the audit was complete.\n\n## Output format (per delivery stream)\n\n```text\nSTREAM: \u003Cdelivery-stream-name>\nVERDICT: NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the fired step and the worst finding>\nFINDINGS:\n  - [\u003CSEVERITY>] \u003Cfinding description (Step N)>\n  - [\u003CSEVERITY>] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific CLI per finding, or \"None required\" if OK>\n```\n\nSeverity is informational (CRITICAL \u002F HIGH \u002F MEDIUM \u002F LOW) and does\nnot change the verdict. It helps the operator prioritise when multiple\nfindings fire. Suggested mapping: NO_ENCRYPTION=CRITICAL; missing\nsource backup under DP=HIGH; LoggingConfig disabled=HIGH; buffering\nquota violation=MEDIUM; everything else=LOW.\n\n### Worked example — DP without source backup, CMK set\n\n```text\nSTREAM: events-stream-prod\nVERDICT: CONFIG_GAP\nREASON: Dynamic partitioning is enabled but S3BackupConfiguration is\nabsent — any JQ extraction failure causes silent record loss (Step 5a).\nLoggingConfig is also absent, so the failures would be invisible.\nFINDINGS:\n  - [HIGH] DP enabled with no S3BackupConfiguration — silent data-loss vector (Step 5a)\n  - [HIGH] LoggingConfig absent with processing enabled — transformation errors invisible (Step 4)\n  - [LOW] RetryDuration not set on DynamicPartitioningConfiguration (defaults to 300, verify intent) (Step 5b)\nREMEDIATION:\n  1. Add S3BackupConfiguration to the ExtendedS3 destination:\n     aws firehose update-destination --delivery-stream-name events-stream-prod \\\n       --current-delivery-stream-version-id \u003Cversion> \\\n       --destination-id destinationId-000000000001 \\\n       --extended-s3-update '{ \"S3BackupConfiguration\": { \"RoleARN\": \"...\", \"BucketARN\": \"...\", \"Prefix\": \"backup\u002F\", \"BufferingHints\": {\"SizeInMBs\": 5, \"IntervalInSeconds\": 300} } }'\n  2. Enable CloudWatch error logging:\n     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).\n```\n\n## Edge-case handling\n\nEdge-case catalog moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `NoEncryption: {}` as anything other than NO_ENCRYPTION.\n  It is an explicit, deliberate opt-out of at-rest encryption — the\n  only API path to plaintext Firehose delivery. \"But the bucket has\n  SSE-KMS enforced\" is not a defense; Firehose writes will fail at\n  delivery time, which is an availability problem on top of a security\n  problem.\n\n- NEVER treat an absent `EncryptionConfiguration` block on\n  `ExtendedS3DestinationConfiguration` as NO_ENCRYPTION. ExtendedS3\n  streams fall back to the S3 bucket default, which is almost always\n  SSE-S3 AES256. The finding is CONFIG_GAP (encryption is not\n  declaratively managed at the Firehose layer) — calling it\n  NO_ENCRYPTION is a false positive that causes alert fatigue.\n\n- NEVER flag `BufferingHints` defaults (5 MiB \u002F 300s) as a config gap.\n  They are sensible AWS-shipped defaults. Only flag out-of-range\n  values or (in REMEDIATION, not FINDINGS) pathological combinations\n  like `SizeInMBs: 128` + `IntervalInSeconds: 60`.\n\n- NEVER assume `S3BackupMode: FailedDataOnly` provides resilient backup.\n  It captures only records Firehose itself flags as failed — Lambda\n  functions returning 200 with malformed output are treated as success\n  and the corrupted output is delivered without backup. For\n  transformation-critical streams, `Enabled` (all data) is the only\n  safe mode.\n\n- NEVER classify a missing `LoggingConfig` on a stream with NO\n  processing enabled as a config gap. There are no transformation\n  errors to log — the finding is a false positive that produces noise.\n\n- NEVER recommend disabling dynamic partitioning as remediation for a\n  missing source backup. DP is the workload's reason for existing\n  (event-routed S3 layouts). The remediation is to ADD source backup,\n  not to remove the partitioning capability.\n\n- NEVER call `StartDeliveryStreamEncryption` \u002F\n  `StopDeliveryStreamEncryption` without first verifying\n  `DeliveryStreamStatus: ACTIVE`. Calling either during a CREATING or\n  already-STARTING state returns `ValidationException` and provides no\n  rollback path.\n\n- NEVER conflate stream-level `DeliveryStreamEncryptionConfiguration`\n  (queue-level encryption, DirectPut-only) with destination-level\n  `EncryptionConfiguration`. They are independent controls with\n  independent audit dimensions.\n\n- NEVER treat a CMK referenced by alias (`alias\u002Fprod-firehose`) as\n  valid. The `AWSKMSKeyArn` field requires a fully-qualified ARN.\n  Aliases are silently accepted at creation and fail at first\n  delivery. Flag as CONFIG_GAP.\n\n- NEVER rely on CloudWatch metrics (`AWS\u002FFirehose`) to detect\n  transformation failures. Metrics show `DeliveryToS3.Success` as long\n  as Firehose successfully writes SOMETHING to S3 — silently-dropped\n  records do not move the metric. The LoggingConfig log group is the\n  only authoritative source.\n\n- NEVER assume `update-destination` is reversible. It is not — there\n  is no rollback. The previous config is overwritten atomically.\n  Always capture `describe-delivery-stream` output before any update\n  for forensic reconstruction.\n\n- NEVER flag a legacy `S3DestinationConfiguration` stream as CONFIG_GAP\n  purely for being legacy. Legacy streams predate ExtendedS3 and are\n  fully supported. Flag only if the legacy stream attempts to use DP\n  or per-record processing (which ExtendedS3 is required for).\n\n- NEVER recommend a multi-region CMK (`mrk-`) without confirming the\n  stream's region has a replica. A multi-region key ARN resolves to a\n  specific replica; the stream binds to that replica at creation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`update-destination`, `StartDeliveryStreamEncryption`,\n  `StopDeliveryStreamEncryption`, `DeleteDeliveryStream`), emit:\n  `CONFIRM: About to \u003Caction> on stream \u003Cname> in account \u003Caccount>.\n  This affects \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT execute\n  until the operator confirms.\n- **Capture current config before any update.**\n  `aws firehose describe-delivery-stream --delivery-stream-name \u003Cname> --output json > \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n  `update-destination` is not reversible — the only rollback is a\n  captured snapshot.\n- **Verify `DeliveryStreamStatus: ACTIVE`** before any update. Updates\n  to non-ACTIVE streams return `ValidationException`.\n- **Verify the operator's role can call `firehose:UpdateDestination`.**\n  Most read-only auditor roles CANNOT. Surface this BEFORE proposing\n  the CLI command — a failed `AccessDenied` mid-remediation leaves\n  the stream in an inconsistent state if the operator then attempts\n  partial remediation manually.\n- **For DP source-backup additions:** verify the backup bucket exists\n  and the Firehose role has `s3:PutObject` on the backup prefix\n  BEFORE running `update-destination`. A misconfigured backup bucket\n  causes the update to succeed but every subsequent delivery to fail.\n- **For CMK rotation \u002F replacement:** the new CMK's key policy must\n  grant the Firehose service principal\n  `kms:GenerateDataKey` + `kms:Decrypt` BEFORE the\n  `update-destination` call. Otherwise the first delivery post-update\n  fails with `KMSNotAccessible`.\n- **For `DeleteDeliveryStream --allow-force-delete`:** this is\n  irreversible and drops in-flight buffered data. Require explicit\n  operator sign-off AND a captured `describe-delivery-stream` backup.\n- Prefer additive updates (add `S3BackupConfiguration`,\n  enable `LoggingConfig`) over destructive updates (remove a\n  processor, change the bucket). Additive updates cannot break the\n  existing delivery path.\n\n## Remediation guidance\n\n**Ordering principle:** prefer additive over destructive. Add source\nbackup before changing the primary destination. Enable LoggingConfig\nbefore changing transformation logic — otherwise the change is\nunobservable.\n\nPer-verdict remediation fixes moved to\n[references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## Deep reference: Firehose destination-shape matrix\n\nDestination-shape matrix moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — mindset, Step 0 expert knowledge, edge-case catalog, destination-shape matrix, recent AWS features (moved from this file)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — per-verdict remediation guidance with CLI fixes (moved from this file)\n\n## Domain\n\nAWS CloudOps \u002F Kinesis Data Firehose Analytics & Data-Protection.\n\n## AWS documentation\n\n- **Amazon Kinesis Data Firehose Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002Fdev\u002Fwhat-is-this-service.html\n- **Firehose Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002Fdev\u002Fsecurity.html\n- **Firehose API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002FAPIReference\u002F\n- **Firehose CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffirehose\u002F\n","# Kinesis Data Firehose Delivery Stream Auditor\n\n## Mindset\n\nMindset and silent-failure model moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick reference — first-fail-wins verdict\n\n| Condition (evaluate top-down) | Verdict | Step |\n|---|---|---|\n| `ExtendedS3DestinationConfiguration.EncryptionConfiguration.NoEncryption: {}` (explicit) | **NO_ENCRYPTION** | Step 1a |\n| `S3DestinationConfiguration` (legacy) with no `EncryptionConfiguration` block AND bucket policy \u002F account SCP does not enforce SSE | **NO_ENCRYPTION** | Step 1b |\n| `EncryptionConfiguration` block absent on a destination that supports it (relies on implicit bucket default) | **CONFIG_GAP** | Step 1c |\n| `KMSEncryptionConfig.AWSKMSKeyArn` set but the referenced CMK is in a different region from the stream | **CONFIG_GAP** | Step 1d |\n| `BufferingHints.SizeInMBs` or `IntervalInSeconds` outside `[1,128]` \u002F `[60,900]` | **CONFIG_GAP** | Step 2 |\n| `ProcessingConfiguration.Enabled: true` with Lambda processor + `S3BackupMode: Disabled` | **CONFIG_GAP** | Step 3 |\n| `ProcessingConfiguration.Enabled: true` with no Lambda `BufferSizeInMBs` (1-3) \u002F `BufferIntervalInSeconds` (0-300) | **CONFIG_GAP** | Step 3 |\n| `LoggingConfig.Enabled: false` OR `LoggingConfig` absent on a stream with any processing enabled | **CONFIG_GAP** | Step 4 |\n| `DynamicPartitioningConfiguration.Enabled: true` AND no `S3BackupConfiguration` (or `SourceBackupConfiguration`) | **CONFIG_GAP** | Step 5a |\n| `DynamicPartitioningConfiguration.Enabled: true` AND `RetryDuration: 0` (or absent) | **CONFIG_GAP** | Step 5b |\n| DP enabled with no `MetadataExtraction` processor in `ProcessingConfiguration` | **CONFIG_GAP** | Step 5c |\n| DP enabled on a stream with `S3DestinationConfiguration` (legacy, not `ExtendedS3*`) | **CONFIG_GAP** | Step 5d |\n| `KMSEncryptionConfig` set + valid `BufferingHints` + LoggingConfig enabled + (DP off OR DP+source backup) + (Lambda off OR Lambda+backup) | **OK** | Step 6 |\n\nNO_ENCRYPTION strictly dominates CONFIG_GAP — encryption is a\ndata-protection failure and is never co-reported with a config gap.\n\n## Pre-flight: stream metadata gate\n\nBefore evaluating destination configuration, classify the stream itself.\nSeveral attributes short-circuit the audit:\n\n| Attribute | Value | Effect |\n|---|---|---|\n| `DeliveryStreamStatus` | `CREATING` \u002F `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). |\n| `DeliveryStreamStatus` | `STARTING` \u002F `STOPPING` (encryption toggle) | Mid-toggle state during `StartDeliveryStreamEncryption` \u002F `StopDeliveryStreamEncryption`. Re-evaluate after the operation completes — the in-flight config is not the steady state. |\n| `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. |\n| `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. |\n| Destination type | `HttpEndpoint` \u002F `Redshift` \u002F `Amazonopensearchservice` \u002F `Splunk` \u002F `AmazonOpenSearchServerless` | Non-S3 destinations have their own buffering\u002Fencryption semantics. The encryption audit (Step 1) still applies where the destination exposes `S3BackupConfiguration` (Redshift\u002FSplunk\u002FOpenSearch 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. |\n| `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. |\n\n**If the delivery-stream configuration JSON is malformed** (invalid\nJSON, missing `DestinationDestination` block), output:\n\n```text\nSTREAM: \u003Cname>\nVERDICT: ERROR\nREASON: Delivery-stream configuration is not valid JSON or is missing the DestinationSet — cannot classify.\nREMEDIATION: Retrieve the canonical config with `aws firehose describe-delivery-stream --delivery-stream-name \u003Cname> --output json` and re-audit.\n```\n\n**Multi-stream \u002F account-wide sweep note (pagination):** `aws firehose\nlist-delivery-streams` returns at most 10 streams per page by default\n(`--limit` max 10, **not** the AWS-wide 50 or 100). Use\n`--exclusive-start-delivery-stream-name` to iterate; silently truncating\nthe list is the most common missed-stream bug. For each stream,\n`describe-delivery-stream` returns a single config document (no\npagination), but `list-tags-for-delivery-stream` paginates separately at\n50 per page.\n\n## Process — Classification logic (apply in order, first-fail-wins)\n\n### Step 0: Expert knowledge — non-obvious Firehose behaviors that change classification\n\nStep 0 expert knowledge moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Encryption evaluation (drives NO_ENCRYPTION verdict)\n\nInspect `ExtendedS3DestinationConfiguration.EncryptionConfiguration`\n(or `S3DestinationConfiguration.EncryptionConfiguration` on legacy\nstreams, or `S3BackupConfiguration.EncryptionConfiguration` for\nstaged destinations):\n\n- **Step 1a — explicit NoEncryption:** if the block is\n  `{NoEncryption: {}}` → **NO_ENCRYPTION**. Data is written to S3 in\n  plaintext (modulo bucket-default enforcement). This is the highest-\n  precedence finding; emit and stop.\n\n- **Step 1b — legacy S3DestinationConfiguration with no encryption\n  config AND no bucket-default evidence:** if the input is a legacy\n  `S3DestinationConfiguration` with no `EncryptionConfiguration` AND\n  no metadata showing the bucket enforces SSE → **NO_ENCRYPTION**. We\n  cannot prove encryption; the legacy field provides no in-band\n  guarantee. If the input explicitly states the bucket has SSE-S3 or\n  SSE-KMS enforced via bucket policy, downgrade to CONFIG_GAP (the\n  Firehose stream itself is unmanaged, but data is encrypted via the\n  bucket layer).\n\n- **Step 1c — absent EncryptionConfiguration on ExtendedS3:** if\n  `ExtendedS3DestinationConfiguration` is present but the\n  `EncryptionConfiguration` sub-block is missing entirely →\n  **CONFIG_GAP**. ExtendedS3 streams should declare encryption\n  explicitly; absence means the stream inherits the bucket default,\n  which is operationally invisible (you have to inspect two resources\n  to know the posture). Do NOT classify as NO_ENCRYPTION — S3 itself\n  applies SSE-S3 by default if no bucket policy enforces otherwise,\n  so data is still encrypted at rest in the common case.\n\n- **Step 1d — CMK cross-region or non-ARN:** if\n  `KMSEncryptionConfig.AWSKMSKeyArn` is set but the value is not a\n  valid ARN, or the ARN's region differs from the stream's region →\n  **CONFIG_GAP**. The stream will fail at delivery time. (A multi-\n  region key ARN matching the stream region is fine.)\n\n- **Step 1 — pass:** if `KMSEncryptionConfig.AWSKMSKeyArn` is a valid\n  same-region ARN → encryption dimension passes; proceed to Step 2.\n\n**NO_ENCRYPTION short-circuits** — do not evaluate Steps 2-5 if Step\n1a or 1b fires. Encryption is a data-protection control that dominates\nall configuration concerns.\n\n### Step 2: S3 destination buffering (BufferingHints)\n\nFor each S3 destination (ExtendedS3, legacy S3, backup, staging),\ninspect `BufferingHints`:\n\n| Field | Valid range | Default | CONFIG_GAP trigger |\n|---|---|---|---|\n| `SizeInMBs` | `1` - `128` | `5` | outside range |\n| `IntervalInSeconds` | `60` - `900` | `300` | outside range |\n\n- Out-of-range values are quota violations (`ValidationException` at\n  creation) — but Terraform\u002FCloudFormation drift or a hand-edited config\n  can produce them. Flag as CONFIG_GAP.\n- Missing `BufferingHints` block entirely → use defaults; NOT a finding.\n- `SizeInMBs: 128` with `IntervalInSeconds: 60` is valid but creates\n  large files quickly — recommend (not flag) tuning for the downstream\n  query engine (Athena, Glue).\n\n### Step 3: Lambda transformation posture\n\nIf `ProcessingConfiguration.Enabled: true` and the `Processors` list\ncontains a processor with `Type: Lambda`:\n\n- **Lambda buffer parameters:** the Lambda processor must specify\n  `BufferSizeInMBs` (range 0.2-3 MiB, but the API only accepts whole\n  MBs in [`1`, `3`]) and `BufferIntervalInSeconds` (range 60-900).\n  Missing or out-of-range → **CONFIG_GAP**.\n- **Source backup:** if `S3BackupMode` is `Disabled` (or absent) when\n  Lambda transformation is enabled → **CONFIG_GAP**. A Lambda function\n  that silently drops or malforms records has no recovery path without\n  the source backup. `S3BackupMode: FailedDataOnly` does NOT catch\n  Lambda-side silent corruption — only Firehose-detected failures.\n  Recommend `Enabled`.\n- **Lambda function DLQ:** Firehose does not require a Lambda DLQ\n  (Firehose itself retries), but if the function has no DLQ and no\n  destination-on-failure, asynchronous invocation failures are lost.\n  Recommend (do not flag) configuring `DeadLetterConfig` on the\n  function.\n\nIf `ProcessingConfiguration.Enabled: false` or no Lambda processor →\nskip Step 3.\n\n### Step 4: CloudWatch error logging\n\nInspect `LoggingConfig` (top-level on\n`DeliveryStreamConfiguration`, not per-destination):\n\n- `LoggingConfig.Enabled: false` AND any processing (Lambda, dynamic\n  partitioning, format conversion) is enabled → **CONFIG_GAP**.\n  Transformation failures are silent.\n- `LoggingConfig` absent on a stream created after 2023-11-01 (when\n  LoggingConfig became default-on for new streams) → **CONFIG_GAP**.\n  Indicates a non-standard creation path.\n- `LoggingConfig.Enabled: true` but `LogGroupName` is empty or does\n  not match `arn:aws:logs:...` conventions → **CONFIG_GAP**.\n- Pass condition: `Enabled: true` + valid `LogGroupName`.\n\nFor streams with no processing enabled (no Lambda, no DP, no format\nconversion), LoggingConfig absence is NOT a finding — there are no\ntransformation errors to log.\n\n### Step 5: Source backup under dynamic partitioning\n\nIf `ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.Enabled: true`:\n\n- **Step 5a — source backup required:** the stream MUST have\n  `ExtendedS3DestinationConfiguration.S3BackupConfiguration`\n  populated (or a top-level `SourceBackupConfiguration` on newer API\n  versions). DP can fail per-record (JQ parse error) and Firehose\n  will discard the record on retry exhaustion. Without source backup,\n  this is silent data loss. Missing → **CONFIG_GAP**.\n\n- **Step 5b — RetryDuration:** `DynamicPartitioningConfiguration.RetryDuration`\n  in seconds, range `0`-`300`. If `RetryDuration: 0` (or absent with\n  DP enabled) → **CONFIG_GAP**. Zero retry means any extraction\n  failure is immediately fatal.\n\n- **Step 5c — MetadataExtraction processor:** DP requires a\n  `MetadataExtraction` processor in `ProcessingConfiguration.Processors`\n  with `Parameters` containing `JsonParsingEngine` (`JQ-1.6`) and\n  `MetaDataExtractionQuery` (the JQ expression). Missing or malformed\n  → **CONFIG_GAP**. DP without extraction logic is structurally\n  impossible (API rejects it at creation) — its presence indicates a\n  stale or fabricated input.\n\n- **Step 5d — ExtendedS3 requirement:** DP is incompatible with the\n  legacy `S3DestinationConfiguration`. If the input shows DP enabled\n  on a legacy destination → **CONFIG_GAP** (and note the input is\n  suspect).\n\nIf DP is disabled or absent → skip Step 5 entirely.\n\n### Step 6: Aggregation\n\nApply first-fail-wins ordering:\n\n```text\nif Step 1a or 1b fires:  verdict = NO_ENCRYPTION\nelif any of Step 1c, 1d, 2, 3, 4, 5 fires:  verdict = CONFIG_GAP\nelse:  verdict = OK\n```\n\nNO_ENCRYPTION is reported alone (it dominates). For CONFIG_GAP, list\nall fired findings in FINDINGS — do not stop at the first, because\nmultiple gaps compound (e.g., a stream with no LoggingConfig AND no\nsource backup has two independent data-loss vectors).\n\nFor OK, briefly note which dimensions passed to give the operator\nconfidence the audit was complete.\n\n## Output format (per delivery stream)\n\n```text\nSTREAM: \u003Cdelivery-stream-name>\nVERDICT: NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the fired step and the worst finding>\nFINDINGS:\n  - [\u003CSEVERITY>] \u003Cfinding description (Step N)>\n  - [\u003CSEVERITY>] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific CLI per finding, or \"None required\" if OK>\n```\n\nSeverity is informational (CRITICAL \u002F HIGH \u002F MEDIUM \u002F LOW) and does\nnot change the verdict. It helps the operator prioritise when multiple\nfindings fire. Suggested mapping: NO_ENCRYPTION=CRITICAL; missing\nsource backup under DP=HIGH; LoggingConfig disabled=HIGH; buffering\nquota violation=MEDIUM; everything else=LOW.\n\n### Worked example — DP without source backup, CMK set\n\n```text\nSTREAM: events-stream-prod\nVERDICT: CONFIG_GAP\nREASON: Dynamic partitioning is enabled but S3BackupConfiguration is\nabsent — any JQ extraction failure causes silent record loss (Step 5a).\nLoggingConfig is also absent, so the failures would be invisible.\nFINDINGS:\n  - [HIGH] DP enabled with no S3BackupConfiguration — silent data-loss vector (Step 5a)\n  - [HIGH] LoggingConfig absent with processing enabled — transformation errors invisible (Step 4)\n  - [LOW] RetryDuration not set on DynamicPartitioningConfiguration (defaults to 300, verify intent) (Step 5b)\nREMEDIATION:\n  1. Add S3BackupConfiguration to the ExtendedS3 destination:\n     aws firehose update-destination --delivery-stream-name events-stream-prod \\\n       --current-delivery-stream-version-id \u003Cversion> \\\n       --destination-id destinationId-000000000001 \\\n       --extended-s3-update '{ \"S3BackupConfiguration\": { \"RoleARN\": \"...\", \"BucketARN\": \"...\", \"Prefix\": \"backup\u002F\", \"BufferingHints\": {\"SizeInMBs\": 5, \"IntervalInSeconds\": 300} } }'\n  2. Enable CloudWatch error logging:\n     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).\n```\n\n## Edge-case handling\n\nEdge-case catalog moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `NoEncryption: {}` as anything other than NO_ENCRYPTION.\n  It is an explicit, deliberate opt-out of at-rest encryption — the\n  only API path to plaintext Firehose delivery. \"But the bucket has\n  SSE-KMS enforced\" is not a defense; Firehose writes will fail at\n  delivery time, which is an availability problem on top of a security\n  problem.\n\n- NEVER treat an absent `EncryptionConfiguration` block on\n  `ExtendedS3DestinationConfiguration` as NO_ENCRYPTION. ExtendedS3\n  streams fall back to the S3 bucket default, which is almost always\n  SSE-S3 AES256. The finding is CONFIG_GAP (encryption is not\n  declaratively managed at the Firehose layer) — calling it\n  NO_ENCRYPTION is a false positive that causes alert fatigue.\n\n- NEVER flag `BufferingHints` defaults (5 MiB \u002F 300s) as a config gap.\n  They are sensible AWS-shipped defaults. Only flag out-of-range\n  values or (in REMEDIATION, not FINDINGS) pathological combinations\n  like `SizeInMBs: 128` + `IntervalInSeconds: 60`.\n\n- NEVER assume `S3BackupMode: FailedDataOnly` provides resilient backup.\n  It captures only records Firehose itself flags as failed — Lambda\n  functions returning 200 with malformed output are treated as success\n  and the corrupted output is delivered without backup. For\n  transformation-critical streams, `Enabled` (all data) is the only\n  safe mode.\n\n- NEVER classify a missing `LoggingConfig` on a stream with NO\n  processing enabled as a config gap. There are no transformation\n  errors to log — the finding is a false positive that produces noise.\n\n- NEVER recommend disabling dynamic partitioning as remediation for a\n  missing source backup. DP is the workload's reason for existing\n  (event-routed S3 layouts). The remediation is to ADD source backup,\n  not to remove the partitioning capability.\n\n- NEVER call `StartDeliveryStreamEncryption` \u002F\n  `StopDeliveryStreamEncryption` without first verifying\n  `DeliveryStreamStatus: ACTIVE`. Calling either during a CREATING or\n  already-STARTING state returns `ValidationException` and provides no\n  rollback path.\n\n- NEVER conflate stream-level `DeliveryStreamEncryptionConfiguration`\n  (queue-level encryption, DirectPut-only) with destination-level\n  `EncryptionConfiguration`. They are independent controls with\n  independent audit dimensions.\n\n- NEVER treat a CMK referenced by alias (`alias\u002Fprod-firehose`) as\n  valid. The `AWSKMSKeyArn` field requires a fully-qualified ARN.\n  Aliases are silently accepted at creation and fail at first\n  delivery. Flag as CONFIG_GAP.\n\n- NEVER rely on CloudWatch metrics (`AWS\u002FFirehose`) to detect\n  transformation failures. Metrics show `DeliveryToS3.Success` as long\n  as Firehose successfully writes SOMETHING to S3 — silently-dropped\n  records do not move the metric. The LoggingConfig log group is the\n  only authoritative source.\n\n- NEVER assume `update-destination` is reversible. It is not — there\n  is no rollback. The previous config is overwritten atomically.\n  Always capture `describe-delivery-stream` output before any update\n  for forensic reconstruction.\n\n- NEVER flag a legacy `S3DestinationConfiguration` stream as CONFIG_GAP\n  purely for being legacy. Legacy streams predate ExtendedS3 and are\n  fully supported. Flag only if the legacy stream attempts to use DP\n  or per-record processing (which ExtendedS3 is required for).\n\n- NEVER recommend a multi-region CMK (`mrk-`) without confirming the\n  stream's region has a replica. A multi-region key ARN resolves to a\n  specific replica; the stream binds to that replica at creation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`update-destination`, `StartDeliveryStreamEncryption`,\n  `StopDeliveryStreamEncryption`, `DeleteDeliveryStream`), emit:\n  `CONFIRM: About to \u003Caction> on stream \u003Cname> in account \u003Caccount>.\n  This affects \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT execute\n  until the operator confirms.\n- **Capture current config before any update.**\n  `aws firehose describe-delivery-stream --delivery-stream-name \u003Cname> --output json > \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n  `update-destination` is not reversible — the only rollback is a\n  captured snapshot.\n- **Verify `DeliveryStreamStatus: ACTIVE`** before any update. Updates\n  to non-ACTIVE streams return `ValidationException`.\n- **Verify the operator's role can call `firehose:UpdateDestination`.**\n  Most read-only auditor roles CANNOT. Surface this BEFORE proposing\n  the CLI command — a failed `AccessDenied` mid-remediation leaves\n  the stream in an inconsistent state if the operator then attempts\n  partial remediation manually.\n- **For DP source-backup additions:** verify the backup bucket exists\n  and the Firehose role has `s3:PutObject` on the backup prefix\n  BEFORE running `update-destination`. A misconfigured backup bucket\n  causes the update to succeed but every subsequent delivery to fail.\n- **For CMK rotation \u002F replacement:** the new CMK's key policy must\n  grant the Firehose service principal\n  `kms:GenerateDataKey` + `kms:Decrypt` BEFORE the\n  `update-destination` call. Otherwise the first delivery post-update\n  fails with `KMSNotAccessible`.\n- **For `DeleteDeliveryStream --allow-force-delete`:** this is\n  irreversible and drops in-flight buffered data. Require explicit\n  operator sign-off AND a captured `describe-delivery-stream` backup.\n- Prefer additive updates (add `S3BackupConfiguration`,\n  enable `LoggingConfig`) over destructive updates (remove a\n  processor, change the bucket). Additive updates cannot break the\n  existing delivery path.\n\n## Remediation guidance\n\n**Ordering principle:** prefer additive over destructive. Add source\nbackup before changing the primary destination. Enable LoggingConfig\nbefore changing transformation logic — otherwise the change is\nunobservable.\n\nPer-verdict remediation fixes moved to\n[references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## Deep reference: Firehose destination-shape matrix\n\nDestination-shape matrix moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — mindset, Step 0 expert knowledge, edge-case catalog, destination-shape matrix, recent AWS features (moved from this file)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — per-verdict remediation guidance with CLI fixes (moved from this file)\n\n## Domain\n\nAWS CloudOps \u002F Kinesis Data Firehose Analytics & Data-Protection.\n\n## AWS documentation\n\n- **Amazon Kinesis Data Firehose Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002Fdev\u002Fwhat-is-this-service.html\n- **Firehose Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002Fdev\u002Fsecurity.html\n- **Firehose API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffirehose\u002Flatest\u002FAPIReference\u002F\n- **Firehose CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffirehose\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":39},{"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,"activation_triggers":38},"firehose, kinesis, analytics, encryption, kms, lambda-transform, dynamic-partitioning, s3-destination, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","Analytics","0.1.0","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","high","false","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.","true","NO_ENCRYPTION | CONFIG_GAP | OK","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\u002FARN for live-account audit. Output: deterministic STREAM\u002FVERDICT\u002FREASON\u002F FINDINGS\u002FREMEDIATION block per stream, where VERDICT ∈ {NO_ENCRYPTION, CONFIG_GAP, OK, ERROR}.","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","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).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Ffirehose-delivery-stream-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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill firehose-delivery-stream-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill firehose-delivery-stream-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill firehose-delivery-stream-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",12689,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fbuffering-hints-out-of-range.md",484,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fbuffering-hints-out-of-range.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fcw-logging-disabled-with-lambda.md",502,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fcw-logging-disabled-with-lambda.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fdp-missing-source-backup.md",553,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fdp-missing-source-backup.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fmissing-cmk-default-sse-s3.md",534,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fmissing-cmk-default-sse-s3.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fno-encryption-explicit-disable.md",652,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fno-encryption-explicit-disable.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fok-cmk-lambda-dp-backup.md",469,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fbaselines\u002Fok-cmk-lambda-dp-backup.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1970,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4917,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fbuffering-hints-out-of-range.md",1008,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fbuffering-hints-out-of-range.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fcw-logging-disabled-with-lambda.md",1705,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fcw-logging-disabled-with-lambda.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fdp-missing-source-backup.md",1514,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fdp-missing-source-backup.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fmissing-cmk-default-sse-s3.md",847,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fmissing-cmk-default-sse-s3.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fno-encryption-explicit-disable.md",914,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fno-encryption-explicit-disable.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fok-cmk-lambda-dp-backup.md",1917,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fevals\u002Fprompts\u002Fok-cmk-lambda-dp-backup.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",7062,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",11933,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Ferror-handling.md",5169,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Freferences\u002Ferror-handling.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"skill.usf.yaml",4387,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffirehose-delivery-stream-auditor\u002Fskill.usf.yaml",[141,148,155,162,169,176],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"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":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"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":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"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":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"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":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"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":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"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",[],[]]