[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACSW3HDGF3V1Z90YS1V4AD":3,"skill-same:01M7ACSW3HDGF3V1Z90YS1V4AD":146},{"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":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7ACSW3HDGF3V1Z90YS1V4AD","sqs-queue-deployer",null,"Provisions AWS SQS queues with production-grade configuration: correct queue type (Standard vs FIFO), dead-letter queue with tuned maxReceiveCount, right- sized visibility timeout, message retention period, long polling, SSE-SQS or SSE-KMS encryption, least-privilege access policy, FIFO deduplication, high- throughput FIFO batching, and Lambda partial batch responses. Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a new SQS queue, deploying a queue to production, validating a queue configuration, wiring a DLQ, or generating deployment CLI commands and IaC templates. Triggers: create SQS queue, deploy queue, FIFO queue, dead-letter queue, redrive policy, visibility timeout, long polling, SSE-SQS, SSE-KMS, ContentBasedDeduplication, MessageGroupId, partial batch responses.","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\u002Fsqs-queue-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sqs-queue-deployer\ndescription: 'Provisions AWS SQS queues with production-grade configuration: correct queue type (Standard vs FIFO), dead-letter queue with tuned maxReceiveCount, right- sized visibility timeout, message retention period, long polling, SSE-SQS or SSE-KMS encryption, least-privilege access policy, FIFO deduplication, high- throughput FIFO batching, and Lambda partial batch responses. Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when creating a new SQS queue, deploying a queue to production, validating a queue configuration, wiring a DLQ, or generating deployment CLI commands and IaC templates. Triggers: create SQS queue, deploy queue, FIFO queue, dead-letter queue, redrive policy, visibility timeout, long polling, SSE-SQS, SSE-KMS, ContentBasedDeduplication, MessageGroupId, partial batch responses.'\nlicense: Apache-2.0\ncompatibility: 'Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with sqs, iam, kms, lambda, and sns access. Works with Terraform aws_sqs_queue resources, CloudFormation AWS::SQS::Queue, and SAM templates.'\nmetadata:\n  domain: aws-cloudops\n  complexity: medium\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: AppIntegration\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, sqs, cloudops, deploy, messaging, app-integration, dead-letter-queue, fifo, encryption, queue-policy\n  dependencies: aws-orchestrator\n  keywords: aws, sqs, cloudops, deploy, provisioning, messaging, app-integration, standard queue, fifo queue, dead-letter queue, DLQ, redrive policy, maxReceiveCount, visibility timeout, message retention, long polling, SSE-SQS, SSE-KMS, queue policy, ContentBasedDeduplication, MessageGroupId, high-throughput FIFO, partial batch responses\n  when_to_use: Invoke when the user wants to create a new SQS queue, deploy a queue to production, configure a dead-letter queue, validate a queue configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a deployment failure caused by missing prerequisites (DLQ type mismatch, KMS key, IAM permissions). Do NOT invoke for SQS security audits (use sqs-dlq-policy-auditor) or for SNS topic deployment (use sns-topic-deployer).\n---\n\n# SQS Queue Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon SQS queues with correct\nproduction defaults. The skill walks the operator through a 10-step\ndeployment procedure, explains why each default matters, and emits a\nREADY_TO_DEPLOY checklist verifying every configuration item. SQS is\ndeceptively simple — wrong defaults (missing DLQ, short visibility timeout,\nno long polling) silently cause data loss, duplicate processing, and cost\namplification.\n\n## Quick navigation\n\n| Section | What it covers | When to read |\n|---|---|---|\n| [Invocation contract](#invocation-contract-hard-requirement) | Mandatory output format labels | Every invocation |\n| [Reasoning framework](#reasoning-framework-why-deployment-order-matters) | Why deployment order matters | Understanding dependencies |\n| [Prerequisites](#prerequisites-verify-before-deployment) | What to verify before deploying | Before any CLI command |\n| [Step 1: Queue type](#step-1-queue-type-selection-standard-vs-fifo) | Standard vs FIFO decision tree | Choosing queue type |\n| [Step 2: Dead-letter queue](#step-2-dead-letter-queue-dlq) | DLQ creation, maxReceiveCount, type matching | Every production queue |\n| [Step 3: Visibility timeout](#step-3-visibility-timeout) | Lambda\u002Fconsumer timing, duplicate processing | Consumer config |\n| [Step 4: Retention + long polling](#step-4-message-retention--long-polling) | Retention period, ReceiveMessageWaitTimeSeconds | Cost + reliability |\n| [Step 5: Encryption](#step-5-encryption-sse-sqs-vs-sse-kms) | SSE-SQS vs SSE-KMS decision | Security config |\n| [Step 6: Access policy](#step-6-access-policy-least-privilege) | Who can send\u002Freceive, S3\u002FSNS patterns | Cross-service integration |\n| [Step 7: Redrive policy](#step-7-redrive-policy-link-source-to-dlq) | Linking source queue to DLQ | After DLQ creation |\n| [Step 8: FIFO specifics](#step-8-fifo-specifics-dedup--ordering) | Deduplication, MessageGroupId, high-throughput | FIFO queues only |\n| [Step 9: Lambda integration](#step-9-lambda-integration--partial-batch-responses) | Event source mapping, partial batch | Lambda consumers |\n| [Step 10: Verification](#step-10-verification) | Post-deployment checks | After deployment |\n| [NEVER (anti-patterns)](#never-things-to-never-do) | Common deployment mistakes | Avoid these |\n| [Output format](#output-format--mandatory-literal-labels) | Checklist report shape | Every invocation |\n\n## Activation keywords\n\ncreate SQS queue, deploy SQS queue, standard queue, FIFO queue, dead-letter\nqueue, DLQ, redrive policy, maxReceiveCount, visibility timeout, message\nretention, long polling, ReceiveMessageWaitTimeSeconds, SSE-SQS, SSE-KMS,\nSqsManagedSseEnabled, KmsMasterKeyId, queue policy, ContentBasedDeduplication,\nDeduplicationId, MessageGroupId, high-throughput FIFO, partial batch\nresponses, SQS event source mapping.\n\n## Invocation contract (hard requirement)\n\nWhen this skill is invoked with an SQS deployment request (queue name, queue\ntype, workload pattern, or a partial existing configuration), the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined in the \"Output format\"\nsection using the literal all-caps labels `QUEUE:`, `VERDICT:`, `CHECKLIST:`,\nand `VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the response.\nThis contract is what assertion-based evals and downstream deployment\npipelines rely on; deviating from the literal labels breaks automation\nsilently.\n\n## Reasoning framework (why deployment order matters)\n\nSQS deployment has **dependency and ordering constraints** that make the\nsequence non-trivial. Configuring items in the wrong order causes deployment\nfailures or silent runtime issues:\n\n1. **Queue type FIRST** — Standard vs FIFO is immutable after creation. The `.fifo` suffix is mandatory and cannot be added\u002Fremoved post-creation. Choosing wrong means deleting and recreating, losing all in-flight messages.\n2. **DLQ BEFORE source queue redrive policy** — the DLQ must exist before `RedrivePolicy` can reference its ARN. The DLQ must be the SAME type as the source — SQS silently drops redriven messages on type mismatch.\n3. **Visibility timeout BEFORE consumer deployment** — if shorter than consumer processing time, the message returns to the queue before processing completes. This causes duplicate processing — the #1 source of data-consistency bugs.\n4. **Encryption BEFORE access policy** — if SSE-KMS is enabled, every producer\u002Fconsumer needs `kms:Decrypt` + `kms:GenerateDataKey*` on the key. Deploying the access policy without verifying KMS permissions causes silent `KMSAccessDeniedException`.\n5. **Long polling ALWAYS** — `ReceiveMessageWaitTimeSeconds` 1-20 reduces empty receives (which cost money) and lowers latency. Default is 0 (short polling). This is a cost and reliability default, not optional.\n6. **Access policy LAST** — the resource-based queue policy may reference KMS key ARNs and DLQ ARNs, so configure it after everything else is in place.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Queue name** | Unique within account\u002Fregion. 80-char max (FIFO: `.fifo` counts). | `aws sqs list-queues --queue-name-prefix \u003Cprefix>` |\n| **Queue type decided** | Standard (at-least-once, unlimited TPS) vs FIFO (exactly-once, 300 TPS). Immutable. | Workload requirements |\n| **DLQ name (if DLQ)** | Must exist before redrive policy. Same type as source. | `aws sqs get-queue-url --queue-name \u003Cdlq-name>` |\n| **KMS key (if SSE-KMS)** | Customer-managed CMK with key policy granting producers\u002Fconsumers `kms:Decrypt` + `kms:GenerateDataKey*`. | `aws kms describe-key --key-id \u003Calias>` |\n| **IAM permissions** | Caller needs `sqs:CreateQueue`, `sqs:SetQueueAttributes`, `kms:ListAliases` (if SSE-KMS). | `aws sts get-caller-identity` |\n| **Consumer processing time (if Lambda)** | Visibility timeout must be >= consumer p99. Lambda event source mapping has its own override. | `aws lambda list-event-source-mappings --function-name \u003Cfn>` |\n| **S3\u002FSNS source ARNs (if cross-service)** | Access policy conditions reference the source ARN. | `aws s3api list-buckets` \u002F `aws sns list-topics` |\n\n## Deployment procedure (apply in order)\n\nFull copy-pasteable CLI commands for every step are in\n`references\u002Fdeployment-cli-commands.md`. Deep configuration theory\n(FIFO mechanics, visibility timeout interaction, Terraform equivalents)\nis in `references\u002Fqueue-configuration-guide.md`.\n\n### Step 1: Queue type selection (Standard vs FIFO)\n\nThe queue type is **immutable** — cannot be changed after creation.\n\n```\nDoes the workload require strict ordering?\n├── YES → Does it require exactly-once processing?\n│   ├── YES → FIFO queue (name MUST end in .fifo)\n│   │         300 TPS (standard) or 1500 TPS (high-throughput)\n│   └── NO  → Standard queue (at-least-once, may deliver out of order)\n└── NO  → Standard queue (unlimited TPS, plan for idempotent consumers)\n```\n\n| Attribute | Standard | FIFO |\n|---|---|---|\n| Delivery | At-least-once (duplicates possible) | Exactly-once (with dedup) |\n| Ordering | Best-effort | Per message group |\n| Throughput | Unlimited | 300 TPS (1500 TPS high-throughput) |\n| Name suffix | None | `.fifo` (mandatory) |\n| `MessageGroupId` | Not used | Required on every message |\n| Deduplication | N\u002FA | ContentBasedDeduplication OR explicit DeduplicationId (5-min window) |\n| DLQ type | Standard DLQ | FIFO DLQ (type MUST match) |\n| Cost (per million requests) | $0.40 | $0.50 |\n\n```bash\n# Standard queue\naws sqs create-queue --queue-name order-events --attributes file:\u002F\u002Fattributes.json\n\n# FIFO queue (name MUST end in .fifo)\naws sqs create-queue --queue-name order-events.fifo --attributes file:\u002F\u002Fattributes-fifo.json\n```\n\n### Step 2: Dead-letter queue (DLQ)\n\nA DLQ catches messages that fail processing after `maxReceiveCount`\ndelivery attempts. Without a DLQ, poison-pill messages retry until they\nexpire, burning compute and starving healthy messages.\n\n**DLQ creation rules:**\n1. **DLQ type MUST match source type** — Standard DLQ for Standard, FIFO DLQ for FIFO. SQS silently drops on mismatch — the #1 DLQ deployment bug.\n2. **DLQ retention should be MAXIMUM** (14 days \u002F 1209600s). Default 4 days is too short for weekend\u002Fholiday coverage.\n3. **DLQ should NOT have its own redrive policy** — creates infinite redrive chain. The DLQ is terminal.\n\n| Workload | Recommended maxReceiveCount | Rationale |\n|---|---|---|\n| Standard queue, transient failures common | 5-10 | Tolerate consumer crashes, Lambda throttles |\n| Standard queue, idempotent consumer | 3-5 | Failures are real, move to DLQ faster |\n| FIFO queue | 5-15 | Poison pill blocks entire message group — move faster |\n| Lambda event source mapping | 5-10 (NOT 1-2) | Batch window adds delay; too few = false DLQ entries |\n| High-throughput batch consumer | 10-20 | Multiple consumers contend; fewer effective retries |\n\n```bash\n# Standard DLQ (14-day retention)\naws sqs create-queue --queue-name order-events-dlq \\\n  --attributes MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n\n# FIFO DLQ (for FIFO source queue)\naws sqs create-queue --queue-name order-events-dlq.fifo \\\n  --attributes FifoQueue=true,MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n```\n\n### Step 3: Visibility timeout\n\nThe visibility timeout is the period a message is invisible to other\nconsumers after delivery. If the consumer does not process and delete the\nmessage within this window, it becomes visible again — causing **duplicate\nprocessing**.\n\n```\nWhat is the consumer?\n├── Lambda → VisibilityTimeout >= function p99 duration × 6\n│            ALSO set on event source mapping (overrides queue value)\n├── EC2\u002FECS worker → VisibilityTimeout >= worker p99 + 20% buffer\n├── Human-in-the-loop → VisibilityTimeout >= max task claim duration\n└── Unknown → Start with 30s, monitor ApproximateAgeOfOldestMessage\n```\n\n**maxReceiveCount x VisibilityTimeout = effective retry window.** A\nVisibilityTimeout of 30s with maxReceiveCount of 5 gives ~150 seconds\nbefore DLQ. If consumer p99 exceeds VisibilityTimeout, receive count\nincrements on every delivery even though the consumer did not fail — the\n#1 cause of false-positive DLQ entries.\n\n```bash\naws sqs set-queue-attributes \\\n  --queue-url \u003Cqueue-url> \\\n  --attributes VisibilityTimeout=60\n```\n\n### Step 4: Message retention + long polling\n\n| Workload | Recommended retention | Rationale |\n|---|---|---|\n| Real-time event processing | 4 days (345600) | Consumers always running; covers weekend outages |\n| Batch daily processing | 7 days (604800) | Weekend + 1 business day recovery |\n| DLQ | 14 days (1209600) | Maximum time for ops analysis and replay |\n| Low-throughput \u002F intermittent | 14 days (1209600) | Maximize recovery window |\n\n**Long polling** (`ReceiveMessageWaitTimeSeconds` 1-20) reduces empty\nreceives and lowers API cost. Short polling (0s) returns immediately even\nif no messages — each empty ReceiveMessage is billed. At 1 TPS poll rate,\nthat is 86,400 empty requests\u002Fday. With 10 consumers on 10 queues, ~$3\u002Fday\nwasted. Long polling with 20-second wait reduces empty requests by ~95%.\n\n```bash\naws sqs set-queue-attributes \\\n  --queue-url \u003Cqueue-url> \\\n  --attributes MessageRetentionPeriod=345600,ReceiveMessageWaitTimeSeconds=20\n```\n\n### Step 5: Encryption (SSE-SQS vs SSE-KMS)\n\n| Option | Key manager | Cost | Use when |\n|---|---|---|---|\n| **SSE-SQS** (`SqsManagedSseEnabled: true`) | SQS-managed (AWS) | Free | Default — satisfies SOC2, PCI-DSS, HIPAA |\n| **SSE-KMS** (`KmsMasterKeyId`) | Customer-managed CMK | ~$0.03\u002F10k reqs + key cost | Need CloudTrail decrypt logging, key rotation control, or grant revocation |\n| **None** | — | — | NEVER — plaintext at rest |\n\n**Decision:** SSE-SQS for 90% of workloads (free, FIPS-validated, no key\npolicy to manage). SSE-KMS only when you need customer-managed key control.\nEvery producer\u002Fconsumer role then needs `kms:Decrypt` + `kms:GenerateDataKey*`\non the key.\n\n```bash\n# SSE-SQS (recommended default)\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes SqsManagedSseEnabled=true\n\n# SSE-KMS (customer-managed key)\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes KmsMasterKeyId=alias\u002Fmy-sqs-key,KmsDataKeyReusePeriodSeconds=300\n```\n\n### Step 6: Access policy (least-privilege)\n\nThe SECURE default is **no resource-based policy** — access is governed\nsolely by IAM identity-based policies.\n\n| Scenario | Policy pattern |\n|---|---|\n| S3 bucket sends notifications to SQS | `Principal: \"*\" + Condition: aws:SourceArn: \u003Cbucket-arn>` |\n| SNS topic subscription to SQS | `Principal: \"*\" + Condition: aws:SourceArn: \u003Ctopic-arn>` |\n| Cross-account producer | `Principal: {\"AWS\": \"\u003Caccount-id>\"} + Action: sqs:SendMessage` |\n| Cross-account consumer | `Principal: {\"AWS\": \"\u003Caccount-id>\"} + Action: sqs:ReceiveMessage` |\n| Same-account only | NO resource-based policy needed — IAM is sufficient |\n\n**NEVER use `Principal: \"*\"` without a strong condition** (`aws:SourceArn`,\n`aws:SourceAccount`). A wildcard with no condition allows any AWS account\nto inject, drain, or delete messages.\n\n**S3-notification access policy (standard, safe pattern):**\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Principal\": \"*\",\n    \"Action\": \"sqs:SendMessage\",\n    \"Resource\": \"arn:aws:sqs:us-east-1:111111111111:order-events\",\n    \"Condition\": {\n      \"ArnEquals\": { \"aws:SourceArn\": \"arn:aws:s3:::my-upload-bucket\" }\n    }\n  }]\n}\n```\n\n### Step 7: Redrive policy (link source to DLQ)\n\nAfter the DLQ exists, link the source queue via the redrive policy.\nRequires the DLQ ARN from Step 2.\n\n- **maxReceiveCount** counts per delivery, not per consumer. With 10 consumers polling, maxReceiveCount of 5 means ~0.5 effective retries per consumer.\n- **FIFO type check:** if source is FIFO, verify DLQ ARN ends in `.fifo`. SQS silently drops on type mismatch.\n\n```bash\nDLQ_ARN=$(aws sqs get-queue-attributes --queue-url \"$DLQ_URL\" \\\n  --attribute-names QueueArn --query 'Attributes.QueueArn' --output text)\n\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes RedrivePolicy=\"{\\\"deadLetterTargetArn\\\":\\\"$DLQ_ARN\\\",\\\"maxReceiveCount\\\":\\\"5\\\"}\"\n```\n\n### Step 8: FIFO specifics (dedup + ordering)\n\n**ContentBasedDeduplication:**\n- `true` — SQS computes SHA-256 hash of message body, deduplicates within 5-min window. Set if messages have unique bodies.\n- `false` — publisher MUST send unique `MessageDeduplicationId` on every message. If both absent, SQS delivers duplicates.\n\n**MessageGroupId (required on every FIFO message):** Messages with the\nsame group ID are delivered in order. Different group IDs are processed\nin parallel (up to the throughput limit).\n\n**High-throughput FIFO (1500 TPS):** Enable via\n`FifoThroughputLimit=perMessageGroupId` and\n`DeduplicationScope=messageGroup`. These attributes are immutable after\ncreation — to switch, delete and recreate the queue.\n\n### Step 9: Lambda integration + partial batch responses\n\n**SQS partial batch responses** allow Lambda to report which messages in\na batch failed, so only those are retried (not the entire batch). Enable\nvia `--function-response-types ReportBatchItemFailures` on the event\nsource mapping.\n\nWithout partial batch responses, if ANY message in a batch of 10 fails,\nall 10 are retried — causing reprocessing of successfully handled messages.\n\n```bash\naws lambda create-event-source-mapping \\\n  --function-name order-processor \\\n  --event-source-arn arn:aws:sqs:us-east-1:111111111111:order-events \\\n  --batch-size 10 \\\n  --maximum-batching-window-in-seconds 5 \\\n  --visibility-timeout 60 \\\n  --function-response-types ReportBatchItemFailures\n```\n\n| Parameter | Default | Recommended | Why |\n|---|---|---|---|\n| `BatchSize` | 10 | 1-10 | Higher = more throughput, bigger blast radius on failure |\n| `MaximumBatchingWindowInSeconds` | 0 | 0-300 | Collects messages before invoking; higher = latency, lower cost |\n| `VisibilityTimeout` | Queue value | >= function timeout | Must outlast execution or messages reappear |\n\n### Step 10: Verification\n\nVerify all attributes, redrive policy, encryption, access policy, and\ntest send\u002Freceive. Full verification CLI sequence in\n`references\u002Fdeployment-cli-commands.md`.\n\n## Expert heuristic: visibility timeout race condition\n\n→ Moved to [references\u002Fqueue-configuration-guide.md](references\u002Fqueue-configuration-guide.md) — the 6× p99 rule, the Lambda ESM override, and post-deploy detection of the visibility-timeout race.\n\n## Workload-specific deployment matrix\n\n| Workload | Queue type | DLQ type | maxReceiveCount | VisibilityTimeout | Retention | Long polling | Encryption |\n|---|---|---|---|---|---|---|---|\n| **Event processing** (S3\u002FSNS to Lambda) | Standard | Standard | 5 | 60s | 4 days | 20s | SSE-SQS |\n| **Order processing** (strict ordering) | FIFO | FIFO | 5-15 | 120s | 7 days | 20s | SSE-SQS |\n| **High-throughput FIFO** (batch) | FIFO (HT) | FIFO | 10 | 300s | 7 days | 20s | SSE-SQS |\n| **Cross-account fan-out** | Standard | Standard | 5 | 30s | 4 days | 20s | SSE-KMS |\n| **DLQ** (terminal) | Same as source | N\u002FA | N\u002FA | N\u002FA | 14 days | 20s | SSE-SQS |\n| **Task queue** (human-in-loop) | Standard | Standard | 3 | 43200s | 14 days | 20s | SSE-SQS |\n\n## Latest SQS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest SQS features (2024-2026).\n\n## NEVER (things to never do)\n\n- NEVER create a FIFO queue without the `.fifo` suffix — SQS rejects the create call. The suffix is mandatory and immutable.\n- NEVER use a Standard DLQ for a FIFO source queue (or vice versa). SQS silently drops redriven messages on type mismatch. DLQ type MUST match source.\n- NEVER set `maxReceiveCount` to 1. A single transient failure sends the message irretrievably to the DLQ. Minimum: 3 (standard), 5 (FIFO).\n- NEVER deploy a production queue without a DLQ. Poison-pill messages retry until retention expires — burning compute and starving healthy messages.\n- NEVER use `Principal: \"*\"` in the access policy without a STRONG condition (`aws:SourceArn`, `aws:SourceAccount`). A wildcard with no condition allows any AWS account to inject, drain, or delete messages.\n- NEVER set visibility timeout shorter than consumer p99 processing time. The message returns before processing completes — #1 cause of duplicate processing.\n- NEVER use short polling (`ReceiveMessageWaitTimeSeconds=0`) in production. Each empty ReceiveMessage is billed. Set long polling to 1-20 seconds.\n- NEVER deploy a queue without encryption. SSE-SQS is free, FIPS-validated, satisfies SOC2\u002FPCI-DSS\u002FHIPAA.\n- NEVER recommend the legacy `Redrive` API (deprecated 2022). Use `aws sqs start-message-move-task`.\n- NEVER use `aws sqs purge-queue` as remediation for poison-pill messages. It deletes ALL messages and cannot be scoped. Use `StartMessageMoveTask`.\n\n## Pre-flight safety checks\n\n→ Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks and rollback capture commands.\n\n## Edge-case handling\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog (6 cases) moved verbatim.\n\n## Error-handling branches\n\n→ Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — API error → cause → fix table (7 branches).\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a queue deployment request, your ENTIRE response MUST be\nthe checklist block below. The labels are **case-sensitive all-caps\nkeywords** — write them EXACTLY as shown. Do NOT substitute `Verdict`,\n`**VERDICT**`, `### Verdict`, or any markdown variant. Do NOT write a\npreamble. Start with `QUEUE:` and stop after `VERIFICATION_COMMANDS:`.\n\n```text\nQUEUE: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]          Queue type — Standard | FIFO (.fifo suffix)\n  [✓]          Dead-letter queue — \u003Cdlq-name> (Standard|FIFO, \u003Cretention>-day retention)\n  [✓]          Redrive policy — maxReceiveCount=\u003CN>\n  [✓]          Visibility timeout — \u003CN>s (>= \u003Cconsumer> p99 of \u003CM>s)\n  [✓]          Message retention — \u003CN> days (\u003Cseconds>s)\n  [✓]          Long polling — ReceiveMessageWaitTimeSeconds=\u003CN>\n  [✓]          Encryption — SSE-SQS | SSE-KMS (\u003Ckey-arn>)\n  [OPTIONAL]   Access policy — \u003Cpattern>\n  [OPTIONAL]   FIFO dedup — ContentBasedDeduplication=\u003Ctrue|false>\n  [OPTIONAL]   High-throughput FIFO — N\u002FA | Enabled\n  [OPTIONAL]   Lambda partial batch responses — ReportBatchItemFailures\nVERIFICATION_COMMANDS:\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names All\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names RedrivePolicy\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names SqsManagedSseEnabled\n  aws sqs send-message --queue-url \u003Curl> --message-body '{\"test\": true}'\n  aws sqs receive-message --queue-url \u003Curl> --wait-time-seconds 5\n```\n\n**Status marker semantics:**\n- `[✓]` — configuration is applied and verified.\n- `[✗]` — configuration is NOT applied or is misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload type.\n- `[INPUT NEEDED]` — a prerequisite value is missing and the operator must provide it.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is missing\n(DLQ for production, correct DLQ type, KMS key for SSE-KMS), the verdict is\n`PREREQUISITES_MISSING` with each gap listed.\n\n## STRICT output contract\n\nThis section codifies the exact output shape the eval harness asserts\nagainst. Every invocation MUST produce output that matches this contract\nor the response is rejected.\n\n### FORBIDDEN output patterns\n\n1. **NEVER recommend a FIFO DLQ for a Standard queue** — DLQ type must match source. SQS silently drops on mismatch.\n2. **NEVER set visibility timeout \u003C expected processing time** — rule: visibility timeout >= 6x p99. Always show the math: \"60s (>= Lambda p99 of 8s)\".\n3. **NEVER omit the redrive policy when a DLQ is specified** — a DLQ with no `[✓] Redrive policy` row is incomplete; messages will never be redriven.\n4. **NEVER output READY_TO_DEPLOY without verifying long polling** (`ReceiveMessageWaitTimeSeconds` > 0). A value of 0 or missing entry is a hard failure.\n5. **NEVER substitute lowercase or markdown-styled labels** for the literal all-caps `QUEUE:`, `VERDICT:`, `CHECKLIST:`, `VERIFICATION_COMMANDS:`. Do NOT preface with prose.\n\n### Perfect example output\n\n```text\nQUEUE: order-events\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Queue type — Standard (at-least-once, unlimited TPS)\n  [✓]      Dead-letter queue — order-events-dlq (Standard, 14-day retention)\n  [✓]      Redrive policy — maxReceiveCount=5\n  [✓]      Visibility timeout — 60s (>= Lambda p99 of 8s)\n  [✓]      Message retention — 4 days (345600s)\n  [✓]      Long polling — ReceiveMessageWaitTimeSeconds=20\n  [✓]      Encryption — SSE-SQS (SqsManagedSseEnabled=true)\n  [✓]      Access policy — S3 notification pattern (Principal:* + aws:SourceArn)\n  [OPTIONAL] FIFO dedup — N\u002FA (Standard queue)\n  [OPTIONAL] High-throughput FIFO — N\u002FA (Standard queue)\n  [✓]      Lambda partial batch responses — ReportBatchItemFailures\nVERIFICATION_COMMANDS:\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names All\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names RedrivePolicy\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names SqsManagedSseEnabled\n  aws sqs send-message --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --message-body '{\"test\": true}'\n  aws sqs receive-message --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --wait-time-seconds 5\n```\n\n## References\n\n- `references\u002Fqueue-configuration-guide.md` — queue type internals, FIFO message-group ordering, deduplication hash mechanics, visibility timeout interaction with Lambda, high-throughput FIFO, partial batch response details, cross-account access, Terraform equivalents.\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable CLI sequence for all 10 deployment steps including DLQ creation, redrive, SSE-SQS\u002FSSE-KMS, access policies, FIFO dedup, high-throughput FIFO, Lambda event source mapping, verification, and CloudWatch alarms.\n\n## References (load on demand)\n\n- [references\u002Fqueue-configuration-guide.md](references\u002Fqueue-configuration-guide.md) — pre-existing; extended with the visibility-timeout race-condition expert heuristic moved from SKILL.md.\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — pre-existing; full copy-pasteable CLI sequence for all 10 deployment steps.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest SQS features (2024-2026) and the edge-case catalog moved from SKILL.md.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — API error → cause → fix branches (FIFO suffix, DLQ missing, KMS denied, QueueDeletedRecently, stuck messages, duplicates, throttles).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks (name availability, DLQ type, KMS key, rollback capture).\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Messaging Provisioning.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Dead-Letter Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html\n- **SQS Encryption** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-server-side-encryption.html\n- **SQS FIFO Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002FFIFO-queues.html\n- **SQS High-Throughput FIFO** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fhigh-throughput-fifo.html\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Lambda Event Source Mapping (SQS)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html\n- **SQS Partial Batch Responses** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html#services-sqs-batchfailurereporting\n","# SQS Queue Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon SQS queues with correct\nproduction defaults. The skill walks the operator through a 10-step\ndeployment procedure, explains why each default matters, and emits a\nREADY_TO_DEPLOY checklist verifying every configuration item. SQS is\ndeceptively simple — wrong defaults (missing DLQ, short visibility timeout,\nno long polling) silently cause data loss, duplicate processing, and cost\namplification.\n\n## Quick navigation\n\n| Section | What it covers | When to read |\n|---|---|---|\n| [Invocation contract](#invocation-contract-hard-requirement) | Mandatory output format labels | Every invocation |\n| [Reasoning framework](#reasoning-framework-why-deployment-order-matters) | Why deployment order matters | Understanding dependencies |\n| [Prerequisites](#prerequisites-verify-before-deployment) | What to verify before deploying | Before any CLI command |\n| [Step 1: Queue type](#step-1-queue-type-selection-standard-vs-fifo) | Standard vs FIFO decision tree | Choosing queue type |\n| [Step 2: Dead-letter queue](#step-2-dead-letter-queue-dlq) | DLQ creation, maxReceiveCount, type matching | Every production queue |\n| [Step 3: Visibility timeout](#step-3-visibility-timeout) | Lambda\u002Fconsumer timing, duplicate processing | Consumer config |\n| [Step 4: Retention + long polling](#step-4-message-retention--long-polling) | Retention period, ReceiveMessageWaitTimeSeconds | Cost + reliability |\n| [Step 5: Encryption](#step-5-encryption-sse-sqs-vs-sse-kms) | SSE-SQS vs SSE-KMS decision | Security config |\n| [Step 6: Access policy](#step-6-access-policy-least-privilege) | Who can send\u002Freceive, S3\u002FSNS patterns | Cross-service integration |\n| [Step 7: Redrive policy](#step-7-redrive-policy-link-source-to-dlq) | Linking source queue to DLQ | After DLQ creation |\n| [Step 8: FIFO specifics](#step-8-fifo-specifics-dedup--ordering) | Deduplication, MessageGroupId, high-throughput | FIFO queues only |\n| [Step 9: Lambda integration](#step-9-lambda-integration--partial-batch-responses) | Event source mapping, partial batch | Lambda consumers |\n| [Step 10: Verification](#step-10-verification) | Post-deployment checks | After deployment |\n| [NEVER (anti-patterns)](#never-things-to-never-do) | Common deployment mistakes | Avoid these |\n| [Output format](#output-format--mandatory-literal-labels) | Checklist report shape | Every invocation |\n\n## Activation keywords\n\ncreate SQS queue, deploy SQS queue, standard queue, FIFO queue, dead-letter\nqueue, DLQ, redrive policy, maxReceiveCount, visibility timeout, message\nretention, long polling, ReceiveMessageWaitTimeSeconds, SSE-SQS, SSE-KMS,\nSqsManagedSseEnabled, KmsMasterKeyId, queue policy, ContentBasedDeduplication,\nDeduplicationId, MessageGroupId, high-throughput FIFO, partial batch\nresponses, SQS event source mapping.\n\n## Invocation contract (hard requirement)\n\nWhen this skill is invoked with an SQS deployment request (queue name, queue\ntype, workload pattern, or a partial existing configuration), the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined in the \"Output format\"\nsection using the literal all-caps labels `QUEUE:`, `VERDICT:`, `CHECKLIST:`,\nand `VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the response.\nThis contract is what assertion-based evals and downstream deployment\npipelines rely on; deviating from the literal labels breaks automation\nsilently.\n\n## Reasoning framework (why deployment order matters)\n\nSQS deployment has **dependency and ordering constraints** that make the\nsequence non-trivial. Configuring items in the wrong order causes deployment\nfailures or silent runtime issues:\n\n1. **Queue type FIRST** — Standard vs FIFO is immutable after creation. The `.fifo` suffix is mandatory and cannot be added\u002Fremoved post-creation. Choosing wrong means deleting and recreating, losing all in-flight messages.\n2. **DLQ BEFORE source queue redrive policy** — the DLQ must exist before `RedrivePolicy` can reference its ARN. The DLQ must be the SAME type as the source — SQS silently drops redriven messages on type mismatch.\n3. **Visibility timeout BEFORE consumer deployment** — if shorter than consumer processing time, the message returns to the queue before processing completes. This causes duplicate processing — the #1 source of data-consistency bugs.\n4. **Encryption BEFORE access policy** — if SSE-KMS is enabled, every producer\u002Fconsumer needs `kms:Decrypt` + `kms:GenerateDataKey*` on the key. Deploying the access policy without verifying KMS permissions causes silent `KMSAccessDeniedException`.\n5. **Long polling ALWAYS** — `ReceiveMessageWaitTimeSeconds` 1-20 reduces empty receives (which cost money) and lowers latency. Default is 0 (short polling). This is a cost and reliability default, not optional.\n6. **Access policy LAST** — the resource-based queue policy may reference KMS key ARNs and DLQ ARNs, so configure it after everything else is in place.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Queue name** | Unique within account\u002Fregion. 80-char max (FIFO: `.fifo` counts). | `aws sqs list-queues --queue-name-prefix \u003Cprefix>` |\n| **Queue type decided** | Standard (at-least-once, unlimited TPS) vs FIFO (exactly-once, 300 TPS). Immutable. | Workload requirements |\n| **DLQ name (if DLQ)** | Must exist before redrive policy. Same type as source. | `aws sqs get-queue-url --queue-name \u003Cdlq-name>` |\n| **KMS key (if SSE-KMS)** | Customer-managed CMK with key policy granting producers\u002Fconsumers `kms:Decrypt` + `kms:GenerateDataKey*`. | `aws kms describe-key --key-id \u003Calias>` |\n| **IAM permissions** | Caller needs `sqs:CreateQueue`, `sqs:SetQueueAttributes`, `kms:ListAliases` (if SSE-KMS). | `aws sts get-caller-identity` |\n| **Consumer processing time (if Lambda)** | Visibility timeout must be >= consumer p99. Lambda event source mapping has its own override. | `aws lambda list-event-source-mappings --function-name \u003Cfn>` |\n| **S3\u002FSNS source ARNs (if cross-service)** | Access policy conditions reference the source ARN. | `aws s3api list-buckets` \u002F `aws sns list-topics` |\n\n## Deployment procedure (apply in order)\n\nFull copy-pasteable CLI commands for every step are in\n`references\u002Fdeployment-cli-commands.md`. Deep configuration theory\n(FIFO mechanics, visibility timeout interaction, Terraform equivalents)\nis in `references\u002Fqueue-configuration-guide.md`.\n\n### Step 1: Queue type selection (Standard vs FIFO)\n\nThe queue type is **immutable** — cannot be changed after creation.\n\n```\nDoes the workload require strict ordering?\n├── YES → Does it require exactly-once processing?\n│   ├── YES → FIFO queue (name MUST end in .fifo)\n│   │         300 TPS (standard) or 1500 TPS (high-throughput)\n│   └── NO  → Standard queue (at-least-once, may deliver out of order)\n└── NO  → Standard queue (unlimited TPS, plan for idempotent consumers)\n```\n\n| Attribute | Standard | FIFO |\n|---|---|---|\n| Delivery | At-least-once (duplicates possible) | Exactly-once (with dedup) |\n| Ordering | Best-effort | Per message group |\n| Throughput | Unlimited | 300 TPS (1500 TPS high-throughput) |\n| Name suffix | None | `.fifo` (mandatory) |\n| `MessageGroupId` | Not used | Required on every message |\n| Deduplication | N\u002FA | ContentBasedDeduplication OR explicit DeduplicationId (5-min window) |\n| DLQ type | Standard DLQ | FIFO DLQ (type MUST match) |\n| Cost (per million requests) | $0.40 | $0.50 |\n\n```bash\n# Standard queue\naws sqs create-queue --queue-name order-events --attributes file:\u002F\u002Fattributes.json\n\n# FIFO queue (name MUST end in .fifo)\naws sqs create-queue --queue-name order-events.fifo --attributes file:\u002F\u002Fattributes-fifo.json\n```\n\n### Step 2: Dead-letter queue (DLQ)\n\nA DLQ catches messages that fail processing after `maxReceiveCount`\ndelivery attempts. Without a DLQ, poison-pill messages retry until they\nexpire, burning compute and starving healthy messages.\n\n**DLQ creation rules:**\n1. **DLQ type MUST match source type** — Standard DLQ for Standard, FIFO DLQ for FIFO. SQS silently drops on mismatch — the #1 DLQ deployment bug.\n2. **DLQ retention should be MAXIMUM** (14 days \u002F 1209600s). Default 4 days is too short for weekend\u002Fholiday coverage.\n3. **DLQ should NOT have its own redrive policy** — creates infinite redrive chain. The DLQ is terminal.\n\n| Workload | Recommended maxReceiveCount | Rationale |\n|---|---|---|\n| Standard queue, transient failures common | 5-10 | Tolerate consumer crashes, Lambda throttles |\n| Standard queue, idempotent consumer | 3-5 | Failures are real, move to DLQ faster |\n| FIFO queue | 5-15 | Poison pill blocks entire message group — move faster |\n| Lambda event source mapping | 5-10 (NOT 1-2) | Batch window adds delay; too few = false DLQ entries |\n| High-throughput batch consumer | 10-20 | Multiple consumers contend; fewer effective retries |\n\n```bash\n# Standard DLQ (14-day retention)\naws sqs create-queue --queue-name order-events-dlq \\\n  --attributes MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n\n# FIFO DLQ (for FIFO source queue)\naws sqs create-queue --queue-name order-events-dlq.fifo \\\n  --attributes FifoQueue=true,MessageRetentionPeriod=1209600,SqsManagedSseEnabled=true\n```\n\n### Step 3: Visibility timeout\n\nThe visibility timeout is the period a message is invisible to other\nconsumers after delivery. If the consumer does not process and delete the\nmessage within this window, it becomes visible again — causing **duplicate\nprocessing**.\n\n```\nWhat is the consumer?\n├── Lambda → VisibilityTimeout >= function p99 duration × 6\n│            ALSO set on event source mapping (overrides queue value)\n├── EC2\u002FECS worker → VisibilityTimeout >= worker p99 + 20% buffer\n├── Human-in-the-loop → VisibilityTimeout >= max task claim duration\n└── Unknown → Start with 30s, monitor ApproximateAgeOfOldestMessage\n```\n\n**maxReceiveCount x VisibilityTimeout = effective retry window.** A\nVisibilityTimeout of 30s with maxReceiveCount of 5 gives ~150 seconds\nbefore DLQ. If consumer p99 exceeds VisibilityTimeout, receive count\nincrements on every delivery even though the consumer did not fail — the\n#1 cause of false-positive DLQ entries.\n\n```bash\naws sqs set-queue-attributes \\\n  --queue-url \u003Cqueue-url> \\\n  --attributes VisibilityTimeout=60\n```\n\n### Step 4: Message retention + long polling\n\n| Workload | Recommended retention | Rationale |\n|---|---|---|\n| Real-time event processing | 4 days (345600) | Consumers always running; covers weekend outages |\n| Batch daily processing | 7 days (604800) | Weekend + 1 business day recovery |\n| DLQ | 14 days (1209600) | Maximum time for ops analysis and replay |\n| Low-throughput \u002F intermittent | 14 days (1209600) | Maximize recovery window |\n\n**Long polling** (`ReceiveMessageWaitTimeSeconds` 1-20) reduces empty\nreceives and lowers API cost. Short polling (0s) returns immediately even\nif no messages — each empty ReceiveMessage is billed. At 1 TPS poll rate,\nthat is 86,400 empty requests\u002Fday. With 10 consumers on 10 queues, ~$3\u002Fday\nwasted. Long polling with 20-second wait reduces empty requests by ~95%.\n\n```bash\naws sqs set-queue-attributes \\\n  --queue-url \u003Cqueue-url> \\\n  --attributes MessageRetentionPeriod=345600,ReceiveMessageWaitTimeSeconds=20\n```\n\n### Step 5: Encryption (SSE-SQS vs SSE-KMS)\n\n| Option | Key manager | Cost | Use when |\n|---|---|---|---|\n| **SSE-SQS** (`SqsManagedSseEnabled: true`) | SQS-managed (AWS) | Free | Default — satisfies SOC2, PCI-DSS, HIPAA |\n| **SSE-KMS** (`KmsMasterKeyId`) | Customer-managed CMK | ~$0.03\u002F10k reqs + key cost | Need CloudTrail decrypt logging, key rotation control, or grant revocation |\n| **None** | — | — | NEVER — plaintext at rest |\n\n**Decision:** SSE-SQS for 90% of workloads (free, FIPS-validated, no key\npolicy to manage). SSE-KMS only when you need customer-managed key control.\nEvery producer\u002Fconsumer role then needs `kms:Decrypt` + `kms:GenerateDataKey*`\non the key.\n\n```bash\n# SSE-SQS (recommended default)\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes SqsManagedSseEnabled=true\n\n# SSE-KMS (customer-managed key)\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes KmsMasterKeyId=alias\u002Fmy-sqs-key,KmsDataKeyReusePeriodSeconds=300\n```\n\n### Step 6: Access policy (least-privilege)\n\nThe SECURE default is **no resource-based policy** — access is governed\nsolely by IAM identity-based policies.\n\n| Scenario | Policy pattern |\n|---|---|\n| S3 bucket sends notifications to SQS | `Principal: \"*\" + Condition: aws:SourceArn: \u003Cbucket-arn>` |\n| SNS topic subscription to SQS | `Principal: \"*\" + Condition: aws:SourceArn: \u003Ctopic-arn>` |\n| Cross-account producer | `Principal: {\"AWS\": \"\u003Caccount-id>\"} + Action: sqs:SendMessage` |\n| Cross-account consumer | `Principal: {\"AWS\": \"\u003Caccount-id>\"} + Action: sqs:ReceiveMessage` |\n| Same-account only | NO resource-based policy needed — IAM is sufficient |\n\n**NEVER use `Principal: \"*\"` without a strong condition** (`aws:SourceArn`,\n`aws:SourceAccount`). A wildcard with no condition allows any AWS account\nto inject, drain, or delete messages.\n\n**S3-notification access policy (standard, safe pattern):**\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Principal\": \"*\",\n    \"Action\": \"sqs:SendMessage\",\n    \"Resource\": \"arn:aws:sqs:us-east-1:111111111111:order-events\",\n    \"Condition\": {\n      \"ArnEquals\": { \"aws:SourceArn\": \"arn:aws:s3:::my-upload-bucket\" }\n    }\n  }]\n}\n```\n\n### Step 7: Redrive policy (link source to DLQ)\n\nAfter the DLQ exists, link the source queue via the redrive policy.\nRequires the DLQ ARN from Step 2.\n\n- **maxReceiveCount** counts per delivery, not per consumer. With 10 consumers polling, maxReceiveCount of 5 means ~0.5 effective retries per consumer.\n- **FIFO type check:** if source is FIFO, verify DLQ ARN ends in `.fifo`. SQS silently drops on type mismatch.\n\n```bash\nDLQ_ARN=$(aws sqs get-queue-attributes --queue-url \"$DLQ_URL\" \\\n  --attribute-names QueueArn --query 'Attributes.QueueArn' --output text)\n\naws sqs set-queue-attributes --queue-url \u003Cqueue-url> \\\n  --attributes RedrivePolicy=\"{\\\"deadLetterTargetArn\\\":\\\"$DLQ_ARN\\\",\\\"maxReceiveCount\\\":\\\"5\\\"}\"\n```\n\n### Step 8: FIFO specifics (dedup + ordering)\n\n**ContentBasedDeduplication:**\n- `true` — SQS computes SHA-256 hash of message body, deduplicates within 5-min window. Set if messages have unique bodies.\n- `false` — publisher MUST send unique `MessageDeduplicationId` on every message. If both absent, SQS delivers duplicates.\n\n**MessageGroupId (required on every FIFO message):** Messages with the\nsame group ID are delivered in order. Different group IDs are processed\nin parallel (up to the throughput limit).\n\n**High-throughput FIFO (1500 TPS):** Enable via\n`FifoThroughputLimit=perMessageGroupId` and\n`DeduplicationScope=messageGroup`. These attributes are immutable after\ncreation — to switch, delete and recreate the queue.\n\n### Step 9: Lambda integration + partial batch responses\n\n**SQS partial batch responses** allow Lambda to report which messages in\na batch failed, so only those are retried (not the entire batch). Enable\nvia `--function-response-types ReportBatchItemFailures` on the event\nsource mapping.\n\nWithout partial batch responses, if ANY message in a batch of 10 fails,\nall 10 are retried — causing reprocessing of successfully handled messages.\n\n```bash\naws lambda create-event-source-mapping \\\n  --function-name order-processor \\\n  --event-source-arn arn:aws:sqs:us-east-1:111111111111:order-events \\\n  --batch-size 10 \\\n  --maximum-batching-window-in-seconds 5 \\\n  --visibility-timeout 60 \\\n  --function-response-types ReportBatchItemFailures\n```\n\n| Parameter | Default | Recommended | Why |\n|---|---|---|---|\n| `BatchSize` | 10 | 1-10 | Higher = more throughput, bigger blast radius on failure |\n| `MaximumBatchingWindowInSeconds` | 0 | 0-300 | Collects messages before invoking; higher = latency, lower cost |\n| `VisibilityTimeout` | Queue value | >= function timeout | Must outlast execution or messages reappear |\n\n### Step 10: Verification\n\nVerify all attributes, redrive policy, encryption, access policy, and\ntest send\u002Freceive. Full verification CLI sequence in\n`references\u002Fdeployment-cli-commands.md`.\n\n## Expert heuristic: visibility timeout race condition\n\n→ Moved to [references\u002Fqueue-configuration-guide.md](references\u002Fqueue-configuration-guide.md) — the 6× p99 rule, the Lambda ESM override, and post-deploy detection of the visibility-timeout race.\n\n## Workload-specific deployment matrix\n\n| Workload | Queue type | DLQ type | maxReceiveCount | VisibilityTimeout | Retention | Long polling | Encryption |\n|---|---|---|---|---|---|---|---|\n| **Event processing** (S3\u002FSNS to Lambda) | Standard | Standard | 5 | 60s | 4 days | 20s | SSE-SQS |\n| **Order processing** (strict ordering) | FIFO | FIFO | 5-15 | 120s | 7 days | 20s | SSE-SQS |\n| **High-throughput FIFO** (batch) | FIFO (HT) | FIFO | 10 | 300s | 7 days | 20s | SSE-SQS |\n| **Cross-account fan-out** | Standard | Standard | 5 | 30s | 4 days | 20s | SSE-KMS |\n| **DLQ** (terminal) | Same as source | N\u002FA | N\u002FA | N\u002FA | 14 days | 20s | SSE-SQS |\n| **Task queue** (human-in-loop) | Standard | Standard | 3 | 43200s | 14 days | 20s | SSE-SQS |\n\n## Latest SQS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest SQS features (2024-2026).\n\n## NEVER (things to never do)\n\n- NEVER create a FIFO queue without the `.fifo` suffix — SQS rejects the create call. The suffix is mandatory and immutable.\n- NEVER use a Standard DLQ for a FIFO source queue (or vice versa). SQS silently drops redriven messages on type mismatch. DLQ type MUST match source.\n- NEVER set `maxReceiveCount` to 1. A single transient failure sends the message irretrievably to the DLQ. Minimum: 3 (standard), 5 (FIFO).\n- NEVER deploy a production queue without a DLQ. Poison-pill messages retry until retention expires — burning compute and starving healthy messages.\n- NEVER use `Principal: \"*\"` in the access policy without a STRONG condition (`aws:SourceArn`, `aws:SourceAccount`). A wildcard with no condition allows any AWS account to inject, drain, or delete messages.\n- NEVER set visibility timeout shorter than consumer p99 processing time. The message returns before processing completes — #1 cause of duplicate processing.\n- NEVER use short polling (`ReceiveMessageWaitTimeSeconds=0`) in production. Each empty ReceiveMessage is billed. Set long polling to 1-20 seconds.\n- NEVER deploy a queue without encryption. SSE-SQS is free, FIPS-validated, satisfies SOC2\u002FPCI-DSS\u002FHIPAA.\n- NEVER recommend the legacy `Redrive` API (deprecated 2022). Use `aws sqs start-message-move-task`.\n- NEVER use `aws sqs purge-queue` as remediation for poison-pill messages. It deletes ALL messages and cannot be scoped. Use `StartMessageMoveTask`.\n\n## Pre-flight safety checks\n\n→ Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks and rollback capture commands.\n\n## Edge-case handling\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog (6 cases) moved verbatim.\n\n## Error-handling branches\n\n→ Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — API error → cause → fix table (7 branches).\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a queue deployment request, your ENTIRE response MUST be\nthe checklist block below. The labels are **case-sensitive all-caps\nkeywords** — write them EXACTLY as shown. Do NOT substitute `Verdict`,\n`**VERDICT**`, `### Verdict`, or any markdown variant. Do NOT write a\npreamble. Start with `QUEUE:` and stop after `VERIFICATION_COMMANDS:`.\n\n```text\nQUEUE: \u003Cname>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]          Queue type — Standard | FIFO (.fifo suffix)\n  [✓]          Dead-letter queue — \u003Cdlq-name> (Standard|FIFO, \u003Cretention>-day retention)\n  [✓]          Redrive policy — maxReceiveCount=\u003CN>\n  [✓]          Visibility timeout — \u003CN>s (>= \u003Cconsumer> p99 of \u003CM>s)\n  [✓]          Message retention — \u003CN> days (\u003Cseconds>s)\n  [✓]          Long polling — ReceiveMessageWaitTimeSeconds=\u003CN>\n  [✓]          Encryption — SSE-SQS | SSE-KMS (\u003Ckey-arn>)\n  [OPTIONAL]   Access policy — \u003Cpattern>\n  [OPTIONAL]   FIFO dedup — ContentBasedDeduplication=\u003Ctrue|false>\n  [OPTIONAL]   High-throughput FIFO — N\u002FA | Enabled\n  [OPTIONAL]   Lambda partial batch responses — ReportBatchItemFailures\nVERIFICATION_COMMANDS:\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names All\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names RedrivePolicy\n  aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names SqsManagedSseEnabled\n  aws sqs send-message --queue-url \u003Curl> --message-body '{\"test\": true}'\n  aws sqs receive-message --queue-url \u003Curl> --wait-time-seconds 5\n```\n\n**Status marker semantics:**\n- `[✓]` — configuration is applied and verified.\n- `[✗]` — configuration is NOT applied or is misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload type.\n- `[INPUT NEEDED]` — a prerequisite value is missing and the operator must provide it.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite is missing\n(DLQ for production, correct DLQ type, KMS key for SSE-KMS), the verdict is\n`PREREQUISITES_MISSING` with each gap listed.\n\n## STRICT output contract\n\nThis section codifies the exact output shape the eval harness asserts\nagainst. Every invocation MUST produce output that matches this contract\nor the response is rejected.\n\n### FORBIDDEN output patterns\n\n1. **NEVER recommend a FIFO DLQ for a Standard queue** — DLQ type must match source. SQS silently drops on mismatch.\n2. **NEVER set visibility timeout \u003C expected processing time** — rule: visibility timeout >= 6x p99. Always show the math: \"60s (>= Lambda p99 of 8s)\".\n3. **NEVER omit the redrive policy when a DLQ is specified** — a DLQ with no `[✓] Redrive policy` row is incomplete; messages will never be redriven.\n4. **NEVER output READY_TO_DEPLOY without verifying long polling** (`ReceiveMessageWaitTimeSeconds` > 0). A value of 0 or missing entry is a hard failure.\n5. **NEVER substitute lowercase or markdown-styled labels** for the literal all-caps `QUEUE:`, `VERDICT:`, `CHECKLIST:`, `VERIFICATION_COMMANDS:`. Do NOT preface with prose.\n\n### Perfect example output\n\n```text\nQUEUE: order-events\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Queue type — Standard (at-least-once, unlimited TPS)\n  [✓]      Dead-letter queue — order-events-dlq (Standard, 14-day retention)\n  [✓]      Redrive policy — maxReceiveCount=5\n  [✓]      Visibility timeout — 60s (>= Lambda p99 of 8s)\n  [✓]      Message retention — 4 days (345600s)\n  [✓]      Long polling — ReceiveMessageWaitTimeSeconds=20\n  [✓]      Encryption — SSE-SQS (SqsManagedSseEnabled=true)\n  [✓]      Access policy — S3 notification pattern (Principal:* + aws:SourceArn)\n  [OPTIONAL] FIFO dedup — N\u002FA (Standard queue)\n  [OPTIONAL] High-throughput FIFO — N\u002FA (Standard queue)\n  [✓]      Lambda partial batch responses — ReportBatchItemFailures\nVERIFICATION_COMMANDS:\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names All\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names RedrivePolicy\n  aws sqs get-queue-attributes --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --attribute-names SqsManagedSseEnabled\n  aws sqs send-message --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --message-body '{\"test\": true}'\n  aws sqs receive-message --queue-url https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Forder-events --wait-time-seconds 5\n```\n\n## References\n\n- `references\u002Fqueue-configuration-guide.md` — queue type internals, FIFO message-group ordering, deduplication hash mechanics, visibility timeout interaction with Lambda, high-throughput FIFO, partial batch response details, cross-account access, Terraform equivalents.\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable CLI sequence for all 10 deployment steps including DLQ creation, redrive, SSE-SQS\u002FSSE-KMS, access policies, FIFO dedup, high-throughput FIFO, Lambda event source mapping, verification, and CloudWatch alarms.\n\n## References (load on demand)\n\n- [references\u002Fqueue-configuration-guide.md](references\u002Fqueue-configuration-guide.md) — pre-existing; extended with the visibility-timeout race-condition expert heuristic moved from SKILL.md.\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — pre-existing; full copy-pasteable CLI sequence for all 10 deployment steps.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — latest SQS features (2024-2026) and the edge-case catalog moved from SKILL.md.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — API error → cause → fix branches (FIFO suffix, DLQ missing, KMS denied, QueueDeletedRecently, stuck messages, duplicates, throttles).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks (name availability, DLQ type, KMS key, rollback capture).\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Messaging Provisioning.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Dead-Letter Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html\n- **SQS Encryption** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-server-side-encryption.html\n- **SQS FIFO Queues** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002FFIFO-queues.html\n- **SQS High-Throughput FIFO** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fhigh-throughput-fifo.html\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Lambda Event Source Mapping (SQS)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html\n- **SQS Partial Batch Responses** — https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html#services-sqs-batchfailurereporting\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, sqs, cloudops, deploy, messaging, app-integration, dead-letter-queue, fifo, encryption, queue-policy","1","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","aws, sqs, cloudops, deploy, provisioning, messaging, app-integration, standard queue, fifo queue, dead-letter queue, DLQ, redrive policy, maxReceiveCount, visibility timeout, message retention, long polling, SSE-SQS, SSE-KMS, queue policy, ContentBasedDeduplication, MessageGroupId, high-throughput FIFO, partial batch responses","deploy","medium","false","capability","Invoke when the user wants to create a new SQS queue, deploy a queue to production, configure a dead-letter queue, validate a queue configuration against best practices, generate deployment CLI commands or IaC templates, or troubleshoot a deployment failure caused by missing prerequisites (DLQ type mismatch, KMS key, IAM permissions). Do NOT invoke for SQS security audits (use sqs-dlq-policy-auditor) or for SNS topic deployment (use sns-topic-deployer).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Requires an LLM agent runtime (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with sqs, iam, kms, lambda, and sns access. Works with Terraform aws_sqs_queue resources, CloudFormation AWS::SQS::Queue, and SAM templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fsqs-queue-deployer",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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill sqs-queue-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill sqs-queue-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill sqs-queue-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5355,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fcross-account-sse-kms.md",1159,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fbaselines\u002Fcross-account-sse-kms.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Ffifo-dlq-type-mismatch.md",998,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fbaselines\u002Ffifo-dlq-type-mismatch.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fhigh-throughput-fifo.md",1260,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fbaselines\u002Fhigh-throughput-fifo.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fsse-kms-missing-key.md",1115,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fbaselines\u002Fsse-kms-missing-key.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fstandard-queue-with-dlq.md",874,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fbaselines\u002Fstandard-queue-with-dlq.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1637,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",11060,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcross-account-sse-kms.md",538,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fprompts\u002Fcross-account-sse-kms.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Ffifo-dlq-type-mismatch.md",413,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fprompts\u002Ffifo-dlq-type-mismatch.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fhigh-throughput-fifo.md",551,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fprompts\u002Fhigh-throughput-fifo.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fsse-kms-missing-key.md",412,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fprompts\u002Fsse-kms-missing-key.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fstandard-queue-with-dlq.md",563,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fevals\u002Fprompts\u002Fstandard-queue-with-dlq.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"example\u002FREADME.md",7686,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fexample\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",2316,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdeployment-cli-commands.md",7306,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Freferences\u002Fdeployment-cli-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdiagnostic-commands.md",719,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Ferror-handling.md",1148,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Freferences\u002Ferror-handling.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fqueue-configuration-guide.md",15725,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Freferences\u002Fqueue-configuration-guide.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4293,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-queue-deployer\u002Fskill.usf.yaml",[147,154,161,168,175,182],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"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":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"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":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"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":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"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":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"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":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"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",[],[]]