Cloud
IAM Policy Formatter & Reviewer
Format an IAM policy in canonical key order and flag over-broad grants and privilege-escalation actions.
Policy document
Formatted
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListBucket",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::my-bucket"
},
{
"Sid": "ReadObjects",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::my-bucket/*"
}
]
}Keys are ordered the way AWS documents them — Version, then Statement, then Sid, Effect, Principal, Action, Resource, Condition — which keeps policies readable and diffs meaningful.
Review
- Info
No over-broad grants found in this policy.
These are static checks on the document text. They cannot tell whether a broad grant is justified for your use, and they do not evaluate SCPs, permission boundaries or resource policies that may narrow the effective permissions.