Amazon SQS Policy Generator
Generate SQS queue policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Step 1
Configure queue defaults
Set the region and account ID used when generating sample SQS queue ARNs.
Step 2
Choose SQS actions
The action list is scoped to AWS Policy Generator's SQS Queue Policy actions.
Step 3
Configure queue policy statements
No SQS actions selected yet.
Search for an SQS action above to start generating a queue policy.
Build SQS queue policies from AWS action metadata
This generator uses AWS Policy Generator's SQS Queue Policy action list and enriches it with Amazon SQS Service Authorization Reference metadata so you can build queue policies with actions, principals, resources, and condition keys in one place.
How to use the SQS policy generator
- Configure the region and account ID used for generated sample queue ARNs.
- Search for one of the SQS Queue Policy actions exposed by AWS Policy Generator.
- Configure effect, queue resources, principals, and supported condition keys.
- Copy the generated JSON, Terraform, or CloudFormation queue policy.
SQS queue policies are resource policies
SQS queue policies include a Principal element because the policy lives on the queue and defines who can send, receive, delete, purge, tag, or manage messages and queue settings at the queue boundary.
Need a different policy type? Switch to the IAM policy generator, S3 bucket policy generator, SNS topic policy generator, or VPC endpoint policy generator.
Frequently asked questions
Should I use an SQS queue policy or an IAM identity policy?
Why does an SQS queue policy need a Principal?
Can SQS queue policies use service principals?
Which condition should I use for SNS to SQS access?
Can I use wildcard resources in an SQS queue policy?
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.
S3 Bucket Policy Generator
Generate S3 bucket policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Amazon SNS Policy Generator
Generate SNS topic 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.