home / skills / jeremylongshore / claude-code-plugins-plus-skills / sns-topic-config

sns-topic-config skill

/skills/13-aws-skills/sns-topic-config

This skill helps you configure sns topic settings with step-by-step guidance, production-ready code, and validation aligned to AWS best practices.

npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill sns-topic-config

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.0 KB
---
name: "sns-topic-config"
description: |
  Configure sns topic config operations. Auto-activating skill for AWS Skills.
  Triggers on: sns topic config, sns topic config
  Part of the AWS Skills skill category. Use when configuring systems or services. Trigger with phrases like "sns topic config", "sns config", "sns".
allowed-tools: "Read, Write, Edit, Bash(aws:*)"
version: 1.0.0
license: MIT
author: "Jeremy Longshore <[email protected]>"
---

# Sns Topic Config

## Overview

This skill provides automated assistance for sns topic config tasks within the AWS Skills domain.

## When to Use

This skill activates automatically when you:
- Mention "sns topic config" in your request
- Ask about sns topic config patterns or best practices
- Need help with amazon web services skills covering compute, storage, networking, serverless, and aws-specific best practices.

## Instructions

1. Provides step-by-step guidance for sns topic config
2. Follows industry best practices and patterns
3. Generates production-ready code and configurations
4. Validates outputs against common standards

## Examples

**Example: Basic Usage**
Request: "Help me with sns topic config"
Result: Provides step-by-step guidance and generates appropriate configurations


## Prerequisites

- Relevant development environment configured
- Access to necessary tools and services
- Basic understanding of aws skills concepts


## Output

- Generated configurations and code
- Best practice recommendations
- Validation results


## Error Handling

| Error | Cause | Solution |
|-------|-------|----------|
| Configuration invalid | Missing required fields | Check documentation for required parameters |
| Tool not found | Dependency not installed | Install required tools per prerequisites |
| Permission denied | Insufficient access | Verify credentials and permissions |


## Resources

- Official documentation for related tools
- Best practices guides
- Community examples and tutorials

## Related Skills

Part of the **AWS Skills** skill category.
Tags: aws, lambda, s3, ec2, cloudformation

Overview

This skill automates configuration tasks for Amazon SNS topics and related settings. It guides you through creating, updating, validating, and applying SNS topic configurations following AWS best practices. The skill is auto-activating within the AWS Skills category when SNS configuration phrases are detected.

How this skill works

The skill inspects requested SNS topic operations, reads provided parameters (topic name, attributes, access policies, subscriptions), and generates production-ready configuration snippets or IaC templates. It validates required fields, checks common misconfigurations, and returns step-by-step instructions to apply changes securely. Where applicable, it suggests permission adjustments and subscription options to meet delivery and security requirements.

When to use it

  • You need to create or update an SNS topic with attributes, policies, or delivery retries.
  • You want IaC snippets (CloudFormation, SAM, or Terraform) for SNS topics and subscriptions.
  • You need to validate SNS topic configuration for permissions, encryption, or cross-account access.
  • You are troubleshooting subscription delivery or access-denied issues related to topics.
  • You want guided, production-ready best practice recommendations before deploying changes.

Best practices

  • Define and validate topic attributes explicitly: DisplayName, DeliveryPolicy, KmsMasterKeyId, and Policy.
  • Use least-privilege IAM policies and resource-based policies for cross-account access.
  • Enable encryption (KMS) for sensitive messages and rotate keys regularly.
  • Use retry and dead-letter configurations for durable and observable message delivery.
  • Prefer infrastructure-as-code templates and include tags, monitoring, and alarms.

Example use cases

  • Generate a CloudFormation template for an SNS topic with an encrypted KMS key and an SQS subscription.
  • Update a topic policy to allow a specific AWS account to publish while denying public access.
  • Validate a misconfigured subscription that returns access denied and provide remediation steps.
  • Produce Terraform resources for topic, subscription, and IAM roles used by publishers.
  • Create step-by-step CLI commands to create a topic, set attributes, and add a subscription.

FAQ

What inputs do you need to configure an SNS topic?

Provide topic name, desired attributes (encryption, delivery policy), subscription targets, and access policy details or target account IDs.

Can this produce CloudFormation or Terraform code?

Yes. The skill generates production-ready CloudFormation, SAM, or Terraform snippets tailored to your parameters and best practices.

How do you handle cross-account publishing?

I recommend a resource-based topic policy granting Publish to specific account principals and validating the policy for least-privilege.