{"name":"configure-aws-messaging-and-streaming","description":"Chooses an AWS messaging or streaming service and applies the delivery, dead-letter, and secret rules. Use when the user wants SQS, SNS, EventBridge, Kinesis, Firehose, or MSK between application components. Customer email, SMS, and WhatsApp are a different task.","category":"backend","tags":["aws","messaging","queues"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/configure-aws-messaging-and-streaming","api_url":"https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming","raw_url":"https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/raw","body":"# Configure AWS messaging and streaming\n\nMessaging hands a payload to a worker, then deletes it. Streaming keeps an ordered log so other readers can replay it. Customer messages to a person are a third group. Do not mix the three.\n\nCheck quotas, versions, and alarm numbers on the current AWS docs. If you are not sure, say so. A made-up limit is worse than an unchecked one.\n\n## When to use\n- The user must pick SQS, SNS, EventBridge, Amazon MQ, Kinesis, Firehose, Flink, or MSK.\n- A queue, topic, or stream already exists and delivery, a dead-letter queue, or a secret is wrong.\n- The user asks which AWS service sends email, SMS, or WhatsApp to a customer.\n\n## When not to use\n- The user wants you to configure SES, SMS, or WhatsApp. Name the service, then stop. Do not invent that channel's setup.\n- The user wants CloudWatch queries or alarms for a service that is already failing. Use configure-aws-observability.\n- The user wants a Redis cache. Use add-upstash-redis.\n\n## Pick the service\nMessaging, one consumer or a fan-out, then the message is gone:\n\n- SQS for a work queue. Standard is at-least-once. FIFO is per group. Use it when workers compete for tasks.\n- SNS when every subscriber must get a copy. Subscribers can be SQS, Lambda, or HTTPS.\n- EventBridge when the route depends on the event body, or the event comes from another account or a SaaS app.\n- Amazon MQ only to keep an existing JMS, AMQP, or MQTT app. Do not start a new app there.\n\nStreaming, retained and replayable:\n\n- Kinesis Data Streams for AWS-native readers that need order inside a shard.\n- Firehose when the job is delivery to storage or analytics and you do not want to manage shards.\n- Managed Service for Apache Flink when you need windows, joins, or other stateful stream math.\n- MSK when the app already speaks Kafka. Keep the Kafka client. Do not rewrite it as SQS.\n\n## People, not services\nEmail to a customer is Amazon SES. SMS, MMS, RCS, and voice are AWS End User Messaging SMS. WhatsApp is AWS End User Messaging Social. Mobile push is AWS End User Messaging Push. Say which one owns the channel. Then stop. This skill does not configure those channels.\n\n## Steps\n1. Say whether the payload is a task, a replayable log, or a message to a person. Stop if it is a person.\n2. Pick one service from the lists above. Say the one you did not pick, in one line.\n3. For a new SQS queue, set long polling. `ReceiveMessageWaitTimeSeconds` should be 20. The default is short polling.\n4. Put a dead-letter queue on the source that can fail. The queue policy must allow `sqs:SendMessage` for that service principal. Scope it with `aws:SourceArn`. Attaching the queue without the policy drops messages with no error you will notice.\n5. EventBridge needs `events.amazonaws.com` on that policy, and the source ARN is the rule. SNS needs `sns.amazonaws.com`, and the source ARN is the topic. Add `aws:SourceAccount` as well.\n6. Request SQS system attributes by name. `AWSTraceHeader`, `SenderId`, and `SentTimestamp` are not user message attributes. `MessageAttributeNames` does not return them.\n7. For SNS that lands in S3 through Firehose, leave `AppendDelimiterToRecord` off. SNS already writes the newline. Turning the processor on makes a blank line between records.\n8. Store broker passwords and Kafka SASL credentials in Secrets Manager. Do not put them in a connection string, a JAAS file, a committed env file, or chat. An MSK SASL secret needs the `AmazonMSK_` prefix and a customer-managed key.\n9. Quote a quota only after you open the current doc. Otherwise say the number is unchecked.\n\n## Gotchas\n- A queue policy that trusts a service principal with no `aws:SourceArn` lets another account's rule or topic send messages. That is the confused deputy.\n- FIFO ordering is per message group. It is not global. Standard queues do not promise order.\n- A streaming reader that only stores an offset can replay. A messaging consumer that deleted the message cannot.\n- Do not paste a secret into the chat to \"test the connection\".\n\n## Portability\nWorks with the AWS SDK in any language, or the AWS CLI. Another cloud's queue is a different product. If you are using RabbitMQ that you still run yourself, Amazon MQ is only the lift-and-shift path. A new app should not start there.\n\n## Example prompt\n\"We need a work queue between the API and a worker. Use SQS with long polling and a dead-letter queue. The queue policy must allow the rule with aws:SourceArn. Do not put the secret in the repo.\"\n\n## Done when\n- The choice is messaging, streaming, or a customer channel, and the service matches that choice.\n- A dead-letter queue has a policy with the service principal and `aws:SourceArn`.\n- Production SQS uses long polling.\n- Passwords and SASL secrets are in Secrets Manager, not in git or chat.\n- Any number you quoted was checked, or you said it was not.\n\n---\nModified from \"aws-messaging-and-streaming\" in aws/agent-toolkit-for-aws (Apache-2.0). Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. See LICENSE.txt and NOTICE.txt.","files":["LICENSE.txt","NOTICE.txt"],"license":"Apache-2.0","license_name":"Apache License 2.0","license_url":"https://www.apache.org/licenses/LICENSE-2.0","attribution":"Based on work by Amazon Web Services (aws/agent-toolkit-for-aws) (Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved., Apache License 2.0), https://github.com/aws/agent-toolkit-for-aws/blob/04afec8286a31958b9e5c5308f8fbf0e98818933/skills/core-skills/aws-messaging-and-streaming/SKILL.md; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/raw' -o ~/'.claude/skills/configure-aws-messaging-and-streaming/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/LICENSE.txt' -o ~/'.claude/skills/configure-aws-messaging-and-streaming/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/NOTICE.txt' -o ~/'.claude/skills/configure-aws-messaging-and-streaming/NOTICE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/raw' -o '.cursor/skills/configure-aws-messaging-and-streaming/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/LICENSE.txt' -o '.cursor/skills/configure-aws-messaging-and-streaming/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/NOTICE.txt' -o '.cursor/skills/configure-aws-messaging-and-streaming/NOTICE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/raw' -o '.agents/skills/configure-aws-messaging-and-streaming/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/LICENSE.txt' -o '.agents/skills/configure-aws-messaging-and-streaming/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-aws-messaging-and-streaming/files/NOTICE.txt' -o '.agents/skills/configure-aws-messaging-and-streaming/NOTICE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}