AWS SNS topic inventory

Document notification topics and their subscriptions.

Description

This entry lists an SNS topic declared in Terraform.

Potential impact

An untracked endpoint can keep receiving messages after a service changes hands.

Remediation

Record the topic owner and subscription endpoints. Check who can publish, how messages are encrypted and which tags identify the topic.

Examples

The example adds tags to aws_sns_topic.alerts. Check any IAM policies that use those tags to grant access.

Before

hcl
resource "aws_sns_topic" "alerts" {
  name = "alerts-topic"
}

After

hcl
resource "aws_sns_topic" "alerts" {
  name = "alerts-topic"

  tags = {
    Service     = "alerting"
    Environment = "production"
  }
}

References