Skip to main content

SNS

Status: experimental

The SNS plugin discovers and catalogs Amazon SNS topics across your AWS accounts. It captures topic configurations, subscription details, access policies, and AWS resource tags.

Prerequisites

AWS Permissions

The plugin requires the following IAM permissions:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sns:ListTopics",
"sns:GetTopicAttributes",
"sns:ListTagsForResource"
],
"Resource": "*"
}
]
}

Minimal Permissions

For basic topic discovery without tags:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["sns:ListTopics", "sns:GetTopicAttributes"],
"Resource": "*"
}
]
}

Example Configuration


credentials:
region: "us-east-1"
profile: "production"
role: "<role>"
tags:
- "aws"

Configuration

The following configuration options are available:

PropertyTypeRequiredDescription
awsAWSConfigfalse
credentialsAWSCredentialsfalseAWS credentials configuration
external_links[]ExternalLinkfalse
filterFilterfalseFilter patterns for AWS resources
global_documentation[]stringfalse
global_documentation_positionstringfalse
include_tags[]stringfalseList of AWS tags to include as metadata
mergeMergeConfigfalse
metadataMetadataConfigfalse
tagsTagsConfigfalse
tags_to_metadataboolfalseConvert AWS tags to Marmot metadata

Available Metadata

The following metadata fields are available:

FieldTypeDescription
display_namestringDisplay name of the topic
ownerstringAWS account ID that owns the topic
policystringAccess policy of the topic
subscriptions_confirmedstringNumber of confirmed subscriptions
subscriptions_pendingstringNumber of pending subscriptions
tagsmap[string]stringAWS resource tags
topic_arnstringThe ARN of the SNS topic