sqs-dlq-policy-auditor
Audits AWS SQS queues for dead-letter-queue (DLQ) configuration gaps, public access via Principal:* queue policies, encryption-at-rest status (SSE-SQS / SSE-KMS), maxReceiveCount tuning, message-retention periods, and cross-account DLQ accessibility. Emits a deterministic verdict (NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK) per queue with enumerated findings and specific CLI remediation. Use when reviewing SQS queue configurations, checking for missing or misconfigured dead-letter queues, validating encryption posture, auditing queue policies for public exposure, or tuning redrive-policy parameters before production deployment.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- sqs-dlq-policy-auditor
- license
- Apache-2.0
- metadata
- { "tags": "sqs, app-integration, dead-letter-queue, redrive-policy, encryption, queue-policy, public-access, audit", "phase": "2", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "AppIntegration", "version": "0.1.0", "keywords": "SQS, dead-letter queue, DLQ, redrive policy, maxReceiveCount, queue policy, Principal:\"*\", public access, SSE-SQS, SSE-KMS, KmsMasterKeyId, SqsManagedSseEnabled, message retention, cross-account DLQ, FIFO queue, poison pill, RedriveAllowPolicy, VisibilityTimeout, SQS audit, queue security", "complexity": "high", "entry_point": "false", "when_to_use": "Reviewing an SQS queue configuration before production deployment, checking for a missing dead-letter queue, auditing a queue policy for public access, validating encryption-at-rest, tuning maxReceiveCount, inspecting DLQ retention, or hardening SQS posture across an account.", "requires_llm": "true", "verdict_shape": "NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK", "invocation_schema": "Input: either (a) an SQS queue attribute document (Policy, RedrivePolicy, KmsMasterKeyId, SqsManagedSseEnabled, MessageRetentionPeriod, VisibilityTimeout), optionally paired with DLQ attributes, OR (b) a queue URL/ARN for live-account audit. Output: deterministic QUEUE/VERDICT/REASON/ FINDINGS/REMEDIATION block per queue, where VERDICT is one of NO_DLQ, PUBLIC_ACCESS, NO_ENCRYPTION, CONFIG_GAP, OK.", "supports_pipeline": "true", "activation_triggers": "audit this SQS queue, is my SQS queue missing a DLQ, check SQS redrive policy, is my SQS queue public, SQS queue encryption, maxReceiveCount tuning, DLQ retention period, cross-account DLQ, poison pill SQS, harden SQS queue" }
- description
- Audits AWS SQS queues for dead-letter-queue (DLQ) configuration gaps, public access via Principal:* queue policies, encryption-at-rest status (SSE-SQS / SSE-KMS), maxReceiveCount tuning, message-retention periods, and cross-account DLQ accessibility. Emits a deterministic verdict (NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK) per queue with enumerated findings and specific CLI remediation. Use when reviewing SQS queue configurations, checking for missing or misconfigured dead-letter queues, validating encryption posture, auditing queue policies for public exposure, or tuning redrive-policy parameters before production deployment.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline attribute-document classification. Live-account audits use aws sqs get-queue-attributes, aws sqs list-queues, and aws sqs get-queue-url (AWS CLI v2, SSO or key-based credentials).
02 资源文件 19
- 参考文档eval/test-cases.yaml9.0 KB
- 参考文档evals/baselines/config-gap-maxreceive-one.md782 B
- 参考文档evals/baselines/no-dlq-configured.md666 B
- 参考文档evals/baselines/no-encryption-queue.md624 B
- 参考文档evals/baselines/ok-clean-config.md485 B
- 参考文档evals/baselines/public-access-no-condition.md820 B
- 参考文档evals/baselines/public-source-arn-still-ok.md840 B
- 参考文档evals/eval_config.yaml1.9 KB
- 参考文档evals/evals.json5.1 KB
- 参考文档evals/prompts/config-gap-maxreceive-one.md803 B
- 参考文档evals/prompts/no-dlq-configured.md521 B
- 参考文档evals/prompts/no-encryption-queue.md680 B
- 参考文档evals/prompts/ok-clean-config.md1.1 KB
- 参考文档evals/prompts/public-access-no-condition.md959 B
- 参考文档evals/prompts/public-source-arn-still-ok.md1.2 KB
- 参考文档examples/end-to-end.md5.8 KB
- 参考文档references/advanced-patterns.md7.6 KB
- 参考文档references/error-handling.md4.2 KB
- 参考文档skill.usf.yaml3.9 KB
03 SKILL.md 正文
SQS DLQ Policy Auditor
Mindset
One-line takeaway: the verdict is always the worst finding across
five dimensions, and three SQS behaviours catch even experienced engineers —
Principal: "*" in a queue policy is usually safe (S3/SNS notification
pattern), maxReceiveCount counts per delivery not per consumer, and
RedrivePolicy is a JSON-encoded string that must be parsed before
classification.
A dead-letter queue is the only safety net against poison-pill messages. A queue without a DLQ silently retries bad messages until they expire, burning through compute budget and starving healthy messages. Public queue policies expose message payloads to any AWS account. Missing encryption leaves message bodies in plaintext at rest.
Quick reference — verdict thresholds
| Condition | Verdict | Risk | Rule |
|---|---|---|---|
Principal: "*" + sqs:SendMessage/sqs:*/* + no strong condition |
PUBLIC_ACCESS | CRITICAL | Step 1 |
No RedrivePolicy attribute / missing deadLetterTargetArn |
NO_DLQ | HIGH | Step 2 |
Neither SqsManagedSseEnabled: true nor KmsMasterKeyId set |
NO_ENCRYPTION | HIGH | Step 3 |
maxReceiveCount <= 1 (too aggressive) |
CONFIG_GAP | MEDIUM | Step 4a |
maxReceiveCount > 1000 (poison-pill loop) |
CONFIG_GAP | MEDIUM | Step 4b |
DLQ MessageRetentionPeriod < 345600 (4 days) |
CONFIG_GAP | MEDIUM | Step 4c |
DLQ ARN in a different account + no RedriveAllowPolicy granting access |
CONFIG_GAP | MEDIUM | Step 4d |
| All dimensions pass | OK | LOW | Step 5 |
See the ordered steps below for edge cases (Principal:"*" with SourceArn, FIFO DLQ constraints, VisibilityTimeout interaction).
Pre-flight: queue metadata gate
Before evaluating the queue policy and redrive configuration, classify the queue itself. Several attributes short-circuit or modify the audit.
Multi-queue / account-wide sweep note (pagination): aws sqs list-queues
returns up to 1000 queue URLs per page. Use --next-token (from the prior
NextToken) to page through all queues; iterating only the first page
silently misses queues. For each URL, aws sqs get-queue-attributes --queue-url <url> --attribute-names All returns all attributes in one call
(no pagination needed for attributes).
| Attribute | Value | Effect on audit |
|---|---|---|
FifoQueue |
true |
FIFO queue. DLQ must also be FIFO. maxReceiveCount tuning is MORE critical — a poison pill in a message group blocks the entire group until moved to DLQ. |
FifoQueue |
false / absent |
Standard queue. Normal audit. |
ContentBasedDeduplication |
true (FIFO) |
Deduplication runs before receive count — a retried message with the same dedup ID does NOT increment the counter. Poison pills persist longer than expected. |
Policy |
absent / empty | No resource-based policy. Only IAM identity-based policies govern access. This is the SECURE default — do not flag as a gap. |
KmsMasterKeyId |
set | SSE-KMS encryption. Customer-managed or AWS-managed KMS key. Encryption is satisfied. |
SqsManagedSseEnabled |
true |
SSE-SQS encryption. Amazon SQS-managed encryption (free, FIPS-compliant). Encryption is satisfied. |
If the queue attribute document is malformed (the Policy field is not
valid JSON, or RedrivePolicy is not valid JSON when present), output:
QUEUE: <queue-url>
VERDICT: ERROR
REASON: Queue attribute document is malformed — <field> is not valid JSON.
REMEDIATION: Re-fetch with `aws sqs get-queue-attributes --queue-url <url> --attribute-names All --output json` and re-audit.
RedrivePolicy is a JSON-encoded string, not a native attribute.
aws sqs get-queue-attributes returns RedrivePolicy as a
JSON-encoded string (double-encoded in the CLI JSON output). You MUST
parse the inner JSON before reading deadLetterTargetArn and
maxReceiveCount. A classification that reads the raw string as a dict
produces false NO_DLQ verdicts — the field looks absent because it was never
parsed.
Process — Classification logic (apply in order, aggregate worst)
Step 0: Expert knowledge — non-obvious SQS behaviours that change classification
Full catalog (Principal:"*" usually safe, per-delivery counting, FIFO group blocking, SSE-SQS, RedriveAllowPolicy, VT window, ESM, v2 API, casing): references/advanced-patterns.md.
Step 1: Public access via queue policy (PUBLIC_ACCESS)
For each Effect: Allow statement in the queue policy, classify the
principal scope:
-
WILDCARD_PRINCIPAL —
Principal: "*",Principal: {"AWS": "*"}, or any construct resolving to all AWS principals. -
NAMED_PRINCIPAL —
Principal: {"AWS": "arn:aws:iam::ACCOUNT:role/..."}orPrincipal: {"Service": "s3.amazonaws.com"}.
A WILDCARD_PRINCIPAL statement is classified by its condition strength:
STRONG conditions (NOT public — access is genuinely scoped):
aws:SourceArn(ArnEquals/ArnLike) — request must originate from the named resource (S3 bucket, SNS topic). This is the standard S3/SNS- to-SQS pattern. The caller cannot forge this; it is set by the AWS service layer.aws:SourceAccount(StringEquals) — request must originate from the named account.aws:SourceAws(deprecated alias of SourceAccount).
WEAK / NO conditions (PUBLIC — flag as PUBLIC_ACCESS):
- No
Conditionblock at all. aws:SourceIp/aws:SourceIpcontaining0.0.0.0/0— IP-based restrictions are bypassable;0.0.0.0/0is the entire internet.aws:SourceVpce/aws:SourceVpc— VPC-scoped but the VPC endpoint is network-reachable from peered connections; treat as WEAK for public- exposure classification.aws:Referer,aws:UserAgent— trivially forgeable by any HTTP client.
Action sensitivity for WILDCARD_PRINCIPAL with weak/no condition:
| Action | Severity | Why |
|---|---|---|
sqs:SendMessage |
CRITICAL | Any account can inject messages — data poisoning, queue flooding, cost amplification. |
sqs:ReceiveMessage |
CRITICAL | Any account can drain the queue — silent data exfiltration of message payloads. |
sqs:DeleteMessage |
CRITICAL | Any account can delete messages — silent data loss. |
sqs:* / * |
CRITICAL | Full queue control — inject, drain, delete, reconfigure. |
sqs:GetQueueAttributes / sqs:GetQueueUrl |
MEDIUM | Metadata disclosure only (queue config, approximate message counts). Not PUBLIC_ACCESS verdict — note as advisory. |
If any WILDCARD_PRINCIPAL statement with a sensitive action (SendMessage, ReceiveMessage, DeleteMessage, sqs:*, *) and a WEAK/NO condition is found, the queue verdict is PUBLIC_ACCESS with CRITICAL risk.
Step 2: Dead-letter queue presence (NO_DLQ)
Evaluate the RedrivePolicy attribute (after JSON-parsing the string):
-
Absent / empty / malformed → NO_DLQ. No dead-letter queue is configured. Poison-pill messages retry until
MessageRetentionPeriodexpires (default 4 days). Every retry is a billable API call. With a highmaxReceiveCount(if somehow set without a DLQ — configuration drift), the retry storm can last days. -
Present but
deadLetterTargetArnmissing → NO_DLQ. The policy JSON exists but the DLQ target is absent — the redrive is non-functional. -
Present with
deadLetterTargetArn→ proceed to Step 4d (DLQ accessibility sub-check).
FIFO queue special case: if FifoQueue: true and the deadLetterTargetArn
points to a standard (non-FIFO) queue, the redrive is INVALID — SQS silently
rejects messages to a standard DLQ from a FIFO source. Flag as NO_DLQ with
note: "DLQ ARN points to a standard queue — FIFO source requires a FIFO DLQ."
Step 3: Encryption-at-rest (NO_ENCRYPTION)
Evaluate encryption from two attributes:
-
SqsManagedSseEnabled: true→ SSE-SQS is active. Encryption is satisfied. This is the free, AWS-managed option (AES-256-GCM, FIPS- validated). Do NOT flag. -
KmsMasterKeyIdset to a key ARN / key ID / alias → SSE-KMS is active. Encryption is satisfied. Note whether the key is AWS-managed (alias/aws/sqs) or customer-managed (for cost/rotation auditing — route to kms-key-policy-auditor for the key policy). -
Neither set → NO_ENCRYPTION. Message bodies are stored in plaintext at rest. Messages are always encrypted in transit (TLS), but the at-rest storage is unencrypted. Flag as HIGH risk.
Step 4: Configuration gaps (CONFIG_GAP sub-checks)
If no higher-severity verdict was triggered (PUBLIC_ACCESS, NO_DLQ, NO_ENCRYPTION), evaluate the following sub-checks. Each finding is enumerated; any non-empty finding set produces a CONFIG_GAP verdict.
Step 4a: maxReceiveCount too low
If maxReceiveCount (from the parsed RedrivePolicy) is <= 1:
-
maxReceiveCount: 1 → any transient failure (consumer crash, network blip, Lambda throttle, VisibilityTimeout too short) sends the message straight to the DLQ on the FIRST delivery attempt. This is almost always a misconfiguration — the message never gets a second chance. High false- positive DLQ rate.
-
maxReceiveCount: 2-3 with Lambda event source mapping → advisory. The Lambda service's batch window adds delay between retries, so 2-3 invocations may be insufficient for transient downstream failures.
Flag as CONFIG_GAP with MEDIUM risk. Recommended: set to 5-10 for standard queues, 5-15 for FIFO queues (message-group blocking makes retries cheaper).
Step 4b: maxReceiveCount too high
If maxReceiveCount > 1000:
- The message retries up to 1000+ times before reaching the DLQ. At a VisibilityTimeout of 30s, that is ~8+ hours of retry cycles. Poison-pill messages burn compute budget and starve healthy messages in the queue. For FIFO queues, the message group is stalled for the entire duration.
Flag as CONFIG_GAP with MEDIUM risk. Recommended: 5-100 for standard queues, 5-20 for FIFO queues.
Step 4c: DLQ message-retention period too short
If the DLQ's MessageRetentionPeriod < 345600 (4 days):
- Failed messages expire from the DLQ before operations teams can analyse and replay them. The DLQ is useless as a diagnostic tool if messages vanish before anyone looks. The default retention (4 days / 345600s) is already marginal for weekend coverage.
Flag as CONFIG_GAP with MEDIUM risk. Recommended: 1209600 (14 days, the maximum) for DLQs to ensure weekend/holiday coverage.
If DLQ attributes are not provided in the input, note: "DLQ retention period
not provided — fetch with aws sqs get-queue-attributes --queue-url <dlq-url> --attribute-names MessageRetentionPeriod to verify."
Step 4d: Cross-account DLQ accessibility
If the deadLetterTargetArn in the RedrivePolicy points to a queue in a
different AWS account (12-digit account ID differs from the source queue's
account):
-
The DLQ is cross-account. SQS supports this IF the DLQ's queue policy (or
RedriveAllowPolicy) grantssqs:SendMessageto the source queue's account. If no such grant is visible, the redrive is non-functional — messages attempting to move to the DLQ will be silently dropped. -
Verify the DLQ's
RedriveAllowPolicyincludes the source queue ARN underredrivePermission: "byQueue"orredrivePermission: "allowAll".
Flag as CONFIG_GAP with MEDIUM risk. Note: "Cross-account DLQ — verify DLQ queue policy grants SendMessage to source account."
Step 5: OK — aggregation
If no findings from Steps 1-4:
QUEUE: <queue-url>
VERDICT: OK
REASON: <queue-name> has a DLQ configured (maxReceiveCount=<N>), encryption-at-rest
enabled (<SSE-SQS|SSE-KMS>), no public queue-policy exposure, and retention
periods within recommended bounds.
RISK: LOW
REMEDIATION: None required.
Output format (per queue)
QUEUE: <queue-url or name>
VERDICT: PUBLIC_ACCESS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and step number>
RISK: CRITICAL | HIGH | MEDIUM | LOW
FINDINGS:
- [CRITICAL] <finding description (Step N)>
- [HIGH] <finding description (Step N)>
- [OK] <dimension that passed>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — public access with DLQ configured
QUEUE: https://sqs.us-east-1.amazonaws.com/111111111111/billing-events
VERDICT: PUBLIC_ACCESS
REASON: Queue policy Statement "OpenSend" grants sqs:SendMessage to
Principal:"*" with no restrictive condition — any AWS account can inject
messages into the billing queue (Step 1).
RISK: CRITICAL
FINDINGS:
- [CRITICAL] Principal:"*" + sqs:SendMessage with no condition (Step 1) — any account can poison the queue
- [OK] RedrivePolicy configured with maxReceiveCount=5 (Step 2)
- [OK] SSE-SQS encryption enabled (Step 3)
REMEDIATION:
1. Remove the "OpenSend" statement or add aws:SourceArn / aws:SourceAccount
to scope access to the trusted producer.
2. Back up the current queue policy before changes:
aws sqs get-queue-attributes --queue-url <url> --attribute-names Policy
--output json > /tmp/<queue>-policy-backup.json.
Edge-case handling
Edge-case catalog (SourceArn/SourceAccount strength, empty policy secure default, DLQ with own DLQ, FIFO standard DLQ, int vs string, worst statement): references/advanced-patterns.md.
Anti-Patterns — NEVER
-
NEVER classify
Principal: "*"with a STRONG condition (aws:SourceArn,aws:SourceAccount) as PUBLIC_ACCESS. This is the standard S3/SNS-to-SQS notification pattern. The condition is set by the AWS service layer and the caller cannot forge it. Flagging it as public is a false positive that causes unnecessary policy churn and erodes trust in the audit. -
NEVER classify a queue with
SqsManagedSseEnabled: trueas NO_ENCRYPTION. SSE-SQS provides AES-256-GCM encryption at rest, is FIPS-validated, and satisfies SOC2 / PCI-DSS / HIPAA at-rest encryption requirements. It is functionally equivalent to SSE-KMS for encryption purposes — the difference is key management (AWS-managed vs customer-managed), not encryption strength. -
NEVER recommend
maxReceiveCount: 1. A single transient failure (consumer crash, Lambda throttle, VisibilityTimeout too short, network blip) sends the message irretrievably to the DLQ. The minimum recommended value is 3 for standard queues, 5 for FIFO queues (where message-group blocking makes each retry more expensive). -
NEVER flag a missing
Policyattribute as a security gap. The absence of a resource-based queue policy means access is governed solely by IAM identity-based policies — this is the SECURE default. Only flag the PRESENCE of a permissive policy. -
NEVER recommend the legacy
RedriveAPI (deprecated 2022) for moving messages back from the DLQ. Useaws sqs start-message-move-task --source-arn <dlq-arn> --destination-arn <source-arn>(the current asynchronous redrive API). -
NEVER assume
RedrivePolicyis a native dict. It is a JSON-encoded string in the API response. Readingpolicy["deadLetterTargetArn"]directly on the unparsed string returnsNone/ throws — producing a false NO_DLQ verdict. Always JSON-parse the inner string first. -
NEVER treat
aws:SourceVpceas a STRONG condition for public-access classification. VPC endpoints can be reachable from peered VPCs, VPN connections, and Transit Gateway attachments. Unlikeaws:SourceArn(set by the AWS service layer), VPC endpoint identity is network-adjacent and more easily bypassed. Treat as WEAK. -
NEVER set
maxReceiveCountabove 1000 without explicit justification. At a 30-second VisibilityTimeout, 1000 retries = 8+ hours of poison-pill cycling. For FIFO queues, this means 8+ hours of message-group stall. -
NEVER recommend a DLQ
MessageRetentionPeriodbelow 4 days. Operations teams need time to analyse and replay failed messages. The SQS minimum is 60 seconds; the maximum is 1209600 seconds (14 days). Use 14 days for DLQs to ensure weekend and holiday coverage. -
NEVER ignore the FIFO DLQ type constraint. A FIFO queue's DLQ must also be FIFO. A standard DLQ silently fails to receive redriven messages from a FIFO source — the poison pill stays in the source queue forever.
-
NEVER assume the queue policy is the complete access picture. SQS access is governed by the INTERSECTION of IAM identity-based policies AND the resource-based queue policy (for cross-account) or EITHER (for same- account). A queue with no resource-based policy may still be accessible via IAM. The audit evaluates the resource-based policy for public exposure — it does not enumerate all IAM principals.
-
NEVER recommend SSE-KMS over SSE-SQS purely for "better security" without explaining the trade-off. SSE-KMS adds per-API KMS cost (~$0.03/10k requests + KMS key cost), potential throttle from KMS rate limits, and latency from the KMS decrypt call. SSE-SQS is sufficient unless you need customer-managed key control, CloudTrail decrypt logging, or key-level grant revocation.
Pre-flight safety checks (run before any remediation CLI)
-
MANDATORY CONFIRMATION GATE. Before any state-changing operation (SetQueueAttributes, RemovePermission, AddPermission, PurgeQueue, DeleteQueue, StartMessageMoveTask), the auditor MUST emit:
CONFIRM: About to <action> on queue <url>. This affects <consequence>. Proceed? (yes/no)Do NOT execute the CLI command until the operator confirms. -
Back up the current queue policy and attributes before modification. Queue policies are not versioned — there is no rollback without a backup.
aws sqs get-queue-attributes --queue-url <url> \ --attribute-names All --output json > /tmp/<queue>-attrs-backup-$(date +%s).json -
PurgeQueue is destructive and irreversible.
aws sqs purge-queuedeletes ALL messages in the queue instantly (up to the purge limit). It cannot be scoped to specific messages. NEVER recommend PurgeQueue as a remediation for poison-pill messages — use StartMessageMoveTask to move them to the DLQ instead. -
SetQueueAttributes replaces, not merges. Setting
PolicyviaSetQueueAttributesreplaces the ENTIRE queue policy. If the new policy omits a statement that a producer depends on, that producer silently loses access. Always diff the old and new policy before applying. -
For PUBLIC_ACCESS findings (CRITICAL): treat as incident-response. An attacker may have already injected or exfiltrated messages. After remediation, audit CloudTrail for
sqs:SendMessage/sqs:ReceiveMessageevents from unexpected principals during the exposure window. Messages that were exfiltrated should be considered compromised — rotate any credentials or tokens that were in message bodies. -
Prefer additive changes (add a Deny statement, add a Condition) over destructive changes (remove a statement). Additive changes are reversible and do not risk breaking existing producers/consumers.
Remediation guidance
Per-verdict remediation steps and fix commands (PUBLIC_ACCESS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP 4a-4d, OK): references/error-handling.md.
Recent AWS features (2024-2026)
Recent AWS features (paused queues, 14-day retention, SSE-SQS vs SSE-KMS, StartMessageMoveTask redrive): references/advanced-patterns.md.
References (load on demand)
- Advanced patterns — Step 0 expert knowledge, edge-case catalog, recent AWS features moved from SKILL.md
- Error handling — per-verdict remediation guidance and fix commands moved from SKILL.md
Domain
AWS CloudOps / App Integration — SQS Messaging Security & Reliability.
AWS documentation
- Amazon SQS Developer Guide — https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html
- SQS Security — https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-security-best-practices.html
- SQS API Reference — https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/
- SQS CLI Reference — https://docs.aws.amazon.com/cli/latest/reference/sqs/
- Dead-letter queue redrive — https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-dead-letter-queue-redrive.html
04 同仓库更多 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.
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.
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.
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.
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.
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.