Tutorials Practical By Samson Tanimawo, PhD Published Jun 14, 2025 4 min read

First SNS Topic

Pub-sub.

Setup

AWS Console or CLI: create-topic with a name. Returns ARN.

Subscriptions: subscribe one or more endpoints. Email, SMS, Lambda, SQS, HTTP/S, mobile push.

Confirm subscriptions for HTTP/S endpoints. SNS sends a confirmation message; subscriber must confirm.

Publishing

PutMessage with topic ARN, subject, body. SNS fans out to all subscribers.

Message attributes for filtering. Subscribers receive only matching messages.

Multi-region replication: SNS to SQS in another region; cross-region fan-out.

Subscription filters

Per-subscription filter policy. JSON-pattern matching on message attributes.

Reduces unnecessary processing. Subscriber only invokes for relevant messages.

Common pattern: shared topic, per-team filters.

Operating

Per-topic monitoring: published message rate, delivery success per subscription.

Failed deliveries to dead-letter queue. Manual review or auto-retry.

Quarterly subscription audit: are subscriptions still needed?