Amazon SNS topic inventory

Track notification topics and their subscriptions.

Description

This entry lists the SNS topic declared by AWS::SNS::Topic.

Potential impact

An untracked subscription can send notifications to a destination the owner has overlooked.

Remediation

Record the owner and purpose. Check the topic policy, who can publish, where subscriptions deliver messages and how stored message bodies are encrypted.

Examples

The example selects alias/aws/sns. Check that each publisher can use that key. A service that needs its own key-policy grant requires a customer managed key.

Before

yaml
Resources:
  SnsTopic:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: alarm-action

After

yaml
Resources:
  SnsTopic:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: alarm-action
      KmsMasterKeyId: alias/aws/sns

References