Interview Prep/AWS/Route 53, CloudFront, API Gateway and Messaging

You subscribed an email address to an SNS topic, but nothing arrives when you publish.

BeginnerTroubleshootingRoute 53, CloudFront, API Gateway and Messaging
Answer

Likely causes → The subscription is still PendingConfirmation; the recipient never clicked the confirmation link (check spam). Another cause: a filter policy on the subscription does not match the message attributes.

Diagnose →

aws sns list-subscriptions-by-topic --topic-arn arn:aws:sns:us-east-1:111111111111:alerts \
  --query 'Subscriptions[].[Protocol,Endpoint,SubscriptionArn]'
aws sns get-subscription-attributes --subscription-arn <arn> --query 'Attributes.FilterPolicy'

Fix →

  1. Confirm the subscription, or delete it and subscribe again to resend the email
  2. Fix or remove the filter policy
  3. Publish a test message: aws sns publish --topic-arn <arn> --message test

Prevent → Prefer chat integrations (Amazon Q Developer in chat applications, formerly AWS Chatbot) or an SQS/Lambda fan-out over personal emails for operations alerts.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront, API Gateway and Messaging