First SNS Topic

Pub-sub.

Setup

The first SNS topic moves fan-out from theory to production. Create the topic, subscribe endpoints, confirm the HTTP/S ones; the topic ARN is what every downstream config references.

Publishing

Publishing is where the fan-out happens. Subject, body, attributes; the attributes are what make filtering possible later, so populate them at publish time even if no filter exists yet.

Subscription filters

Filters turn one shared topic into N targeted feeds. Subscribers only invoke for relevant messages, which keeps Lambda cost down and SQS queues lean.

Operating

SNS is mostly fire-and-forget, but operating it well still requires monitoring delivery success and pruning unused subscriptions. Without operational discipline, dead subscribers accumulate and DLQs fill silently.