AWS IAM Policy Tester
Test AWS IAM policy decisions against expected allow and deny cases with action search and resource ARNs.
IAM JSON policy
Simulation setup
Test cases
Test case
s3:ListBucket
Test case
s3:GetObject
Test IAM policy decisions before deployment
Paste an AWS IAM JSON policy, add test cases for specific IAM actions and resources, and compare the expected permission result with the simulator output. Use it to check identity policies and resource policies before a pull request, Terraform apply, or console change.
How to use the IAM policy tester
- Paste, upload, or load an example IAM JSON policy.
- Choose whether the policy should be evaluated as an identity policy or a resource policy.
- Set the principal ARN used for resource-policy principal matching.
- Add test cases with an IAM action, expected result, and resource ARN.
- Review whether each case is allowed, explicitly denied, implicitly denied, or blocked by an input error.
Policy testing workflow
Start with the AWS IAM policy generator when you need to build the JSON from action metadata. Use this tester to verify important allow and deny paths, then run the IAM policy validator to review syntax and best-practice findings or the IAM policy converter to turn the final JSON into Terraform, CloudFormation, or CDK snippets.
Frequently asked questions
Does this IAM policy tester call AWS?
What does Denied mean in expected results?
Does this model SCPs or permission boundaries?
Related tools
AWS IAM Policy Validator
Validate and test AWS IAM JSON policy documents with inline errors, warnings, and Access Analyzer-inspired security checks.
IAM Policy Converter
Convert AWS IAM JSON policy documents into Terraform, CloudFormation, CDK TypeScript, or CDK Python snippets.
AWS IAM Policy Generator
Generate AWS IAM policies from searchable action metadata and export ready-to-use 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.