Amazon SNS Policy Generator
Generate SNS topic policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Step 1
Configure topic defaults
Set the region and account ID used when generating sample SNS topic ARNs.
Step 2
Choose SNS actions
The action list is scoped to AWS Policy Generator's SNS Topic Policy actions.
Step 3
Configure topic policy statements
No SNS actions selected yet.
Search for an SNS action above to start generating a topic policy.
Build SNS topic policies from AWS action metadata
This generator uses AWS Policy Generator's SNS Topic Policy action list and enriches it with Amazon SNS Service Authorization Reference metadata so you can build topic policies with actions, principals, resources, and condition keys in one place.
How to use the SNS policy generator
- Configure the region and account ID used for generated sample topic ARNs.
- Search for one of the SNS Topic Policy actions exposed by AWS Policy Generator.
- Configure effect, topic resources, principals, and supported condition keys.
- Copy the generated JSON, Terraform, or CloudFormation topic policy.
SNS topic policies are resource policies
SNS topic policies include a Principal element because the policy lives on the topic and defines who can publish, subscribe, manage permissions, or perform other SNS actions against that resource.
Need a different policy type? Switch to the IAM policy generator, S3 bucket policy generator, SQS queue policy generator, or VPC endpoint policy generator.
Frequently asked questions
Should I use an SNS topic policy or an IAM identity policy?
Why does an SNS topic policy need a Principal?
Can SNS topic policies use service principals?
Can I use wildcard resources in an SNS topic policy?
Which condition keys should I use for SNS topic policies?
Can I use the generated output in Terraform or CloudFormation?
Related tools
Amazon VPC Endpoint policy generator
Generate VPC endpoint policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Amazon SQS Policy Generator
Generate SQS queue policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
S3 Bucket Policy Generator
Generate S3 bucket policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Next step
Want AWS engineering that feels this practical?
I build these tools to make AWS easier to manage. If this level of quality is what you want in your own cloud platform, Towards The Cloud can help with landing zones, infrastructure as code, security reviews, migrations, and cost optimization.