Skip to content

Menu

AWS IAM Policy Evaluator

Paste an AWS IAM identity policy and test an action, resource and condition keys. Shows explicit deny, allow or implicit deny per statement.

Runs entirely in your browserDevOpsFree, no sign-up
Loading tool
How one policy decidesEach statement is checked for action, resource and condition; a matching Deny wins, then a matching Allow, otherwise the request is implicitly denied.Action, resource ARN, context keysAction /NotActionResource /NotResourceConditionAny matching Deny?yes → explicit denyAny matching Allow?no → implicit denyAllowed
Each statement is checked for action, resource and condition; a matching Deny wins, then a matching Allow, otherwise the request is implicitly denied.

01What is AWS IAM Policy Evaluator?

Reading an IAM policy by eye works until it doesn't. A NotAction here, a NotIpAddress condition there, and suddenly nobody on the team agrees on whether a request goes through. AWS IAM Policy Evaluator answers one narrow question: would this identity-based policy allow this action on this resource? Paste the policy JSON, type an action such as s3:GetObject and a resource ARN, and optionally list request context keys as key=value lines. Use commas for keys with several values, like aws:TagKeys=team, owner. The tool walks every statement and reports whether its Action or NotAction matches, whether its Resource or NotResource matches, and whether its Condition block is true. It then applies the order AWS documents for a single policy. A matching Deny statement wins. Otherwise a matching Allow grants access. Otherwise the request is implicitly denied. Action names match case-insensitively and resource ARNs case-sensitively, with * and ? as wildcards. Conditions cover the String, Numeric, Date, Bool, BinaryEquals, IpAddress (IPv4 and IPv6 CIDR), ARN and Null operators, the IfExists suffix, and the ForAllValues and ForAnyValue set qualifiers. Missing keys follow the AWS docs. A positive operator is false, a negated one such as StringNotLike is true, IfExists is true, and ForAllValues is true. Several keys or operators in one block must all be true, while several values for one key are ORed. Condition key names are looked up without regard to case. Here is a worked example using the built-in S3 sample. The policy allows s3:Get* on the reports bucket, denies s3:* under reports/secret/, and denies everything when aws:SourceIp is outside 203.0.113.0/24. Reading reports/q1.csv from 203.0.113.7 comes back Allowed. Change the IP to 198.51.100.1 and the OfficeOnly statement applies, so the answer flips to explicit deny. Leave the context empty and you also get explicit deny, because NotIpAddress is a negated operator and a missing key makes it true. The limits matter. This checks one identity-based policy only. It does not evaluate service control policies, resource control policies, resource-based policies such as bucket policies, permissions boundaries or session policies, any of which can still deny a real request. Policy variables like ${aws:username} are compared literally, and the tool warns when it sees one. It also does not know which context keys AWS actually sends for a given action. Statements with a Principal get a note, since that element belongs in resource policies. Everything runs in your browser, and the policy is never uploaded.

Cloud and platform engineers, DevOps teams and security reviewers who write or audit AWS IAM policies. The tool runs entirely in your browser, so your data never leaves your device.

02How to use AWS IAM Policy Evaluator

  1. Paste an identity-based policy JSON into the policy box.
  2. Enter the action, for example s3:GetObject.
  3. Enter the resource ARN, or * for actions that take no resource.
  4. Add context keys one per line as key=value, using commas for multiple values.
  5. Read the decision and the per-statement trace to see which statement decided it.

03Worked examples

Input: S3 sample policy (Allow s3:Get* on reports, Deny s3:* on reports/secret/*, Deny * when NotIpAddress 203.0.113.0/24). Action s3:GetObject, resource arn:aws:s3:::reports/secret/keys.txt, aws:SourceIp=203.0.113.7
Result: Explicit deny ReadBucket (Allow): applies NoSecrets (Deny): applies OfficeOnly (Deny): does not apply, NotIpAddress aws:SourceIp: false
The NoSecrets Deny matches, so it overrides the Allow.
Input: Same policy, resource arn:aws:s3:::reports/q1.csv, aws:SourceIp=203.0.113.7
Result: Allowed ReadBucket (Allow): applies NoSecrets (Deny): does not apply OfficeOnly (Deny): does not apply, NotIpAddress aws:SourceIp: false
Inside the office CIDR and outside the secret prefix, so only the Allow applies.
Input: Same policy and resource, context left empty
Result: Explicit deny OfficeOnly (Deny): applies, NotIpAddress aws:SourceIp: true
A negated operator is true when the key is missing.
Input: Allow iam:CreateAccessKey on user/alice, plus Deny iam:* with BoolIfExists aws:MultiFactorAuthPresent=false. Context aws:MultiFactorAuthPresent=false
Result: Explicit deny ManageOwnKeys (Allow): applies RequireMfa (Deny): applies, BoolIfExists aws:MultiFactorAuthPresent: true
With aws:MultiFactorAuthPresent=true the same request is Allowed.
Input: Allow ec2:CreateTags with ForAllValues:StringEquals aws:TagKeys [team, env, cost-center] and Null aws:TagKeys false. Context aws:TagKeys=team, owner
Result: Implicit deny ForAllValues:StringEquals aws:TagKeys: false Null aws:TagKeys: true
owner is not in the approved list. With team, env the result is Allowed; with no tags the Null check fails.
Input: Allow with NotAction iam:* on Resource *. Action iam:CreateUser
Result: Implicit deny
NotAction excludes iam actions, and no other statement allows it.

04Common use cases

  • Checking why an Allow statement does not cover an action before you deploy a policy change
  • Confirming that a Deny statement really blocks a sensitive S3 prefix like reports/secret/
  • Testing NotAction and NotResource statements, which are easy to misread in review
  • Trying an IP allow list or MFA rule with sample context values before it locks someone out
  • Working out whether a ForAllValues tag-key rule accepts a request that carries no tags
  • Explaining explicit deny versus implicit deny to a teammate with a live trace
  • Reviewing a pull request that edits a policy, by running the old and new JSON against the same request

05Tips

  • A request with no matching statement is an implicit deny, not an error.
  • Negated operators like NotIpAddress are true when the key is missing, so an empty context can trigger a Deny you did not expect.
  • ForAllValues is true for a missing key. Pair it with a Null check, as the tag-key sample does, if tags must be present.
  • Action matching ignores case, but ARN matching does not, so check bucket and key names carefully.
  • Use the IAM policy simulator in the AWS console for a final check that includes boundaries, SCPs and resource policies.

06Related concepts

IAM policy, Explicit deny, Implicit deny, NotAction, Condition operators, ARN.

Frequently Asked Questions

What is AWS IAM Policy Evaluator?

AWS IAM Policy Evaluator is a free, browser-based developer tool on AIDToolStack. Paste an AWS IAM identity policy and test an action, resource and condition keys. Shows explicit deny, allow or implicit deny per statement. It requires no installation or sign-up and works entirely in your browser.

Is AWS IAM Policy Evaluator free to use?

Yes. No sign-up, no fees and no usage cap.

Does AWS IAM Policy Evaluator store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe