AWS IAM Policy Simulator
Paste an IAM policy JSON, enter an action and resource ARN, and instantly see whether access is Allowed or Denied — with the exact matching statement and reason explained.
Frequently Asked Questions
How does AWS IAM policy evaluation work?▼
AWS evaluates IAM policies using a deny-overrides model: (1) Start with implicit DENY. (2) Evaluate all applicable policies. (3) If any policy has an explicit DENY matching the action+resource, access is denied regardless of any allows. (4) If any policy has an explicit ALLOW and no explicit deny exists, access is allowed. (5) Otherwise, implicit deny applies. This tool simulates steps 2-5 for a single policy document.
What is the difference between explicit deny and implicit deny?▼
Implicit deny is the default — if no policy explicitly allows an action, it is denied. Explicit deny is a statement with Effect: Deny that overrides any allow statements, even from other policies or roles. Explicit denies are used in Service Control Policies (SCPs) and permission boundaries to enforce hard limits that cannot be overridden by identity-based policies.
How does wildcard matching work in IAM?▼
IAM supports two wildcards: * (matches any combination of characters) and ? (matches any single character). For actions: s3:* matches all S3 actions, s3:Get* matches GetObject, GetBucketPolicy, etc. For resources: arn:aws:s3:::bucket/* matches all objects in a bucket. The wildcard * as the only resource matches everything.
What are ARNs (Amazon Resource Names)?▼
ARNs uniquely identify AWS resources. Format: arn:partition:service:region:account-id:resource. Examples: arn:aws:s3:::my-bucket (S3 bucket, no region/account needed), arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0 (EC2 instance), arn:aws:iam::123456789012:user/alice (IAM user). Use * as resource in policies to match all resources of a service.
What is the difference between identity-based and resource-based policies?▼
Identity-based policies attach to IAM users, groups, or roles and define what actions that identity can perform. Resource-based policies attach to AWS resources (S3 buckets, SQS queues, Lambda functions) and define who can access that resource. This simulator evaluates identity-based policies only. In real AWS, both types are evaluated together and access requires allows from both applicable policy types.
Related Products
on GumroadPremium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
AWS IAM Policy Validator
Validate AWS IAM policy JSON for security risks. Detects wildcard actions, privilege escalation paths, missing conditions, and structural errors.
Open free tool →
AWS CDK Infrastructure as Code Guide
Complete AWS CDK guide for TypeScript/Python IaC. Learn constructs (L1/L2/L3), stacks, CDK Pipelines, diff/deploy workflow, and comparison with Terraform and CloudFormation.
Open free tool →
AWS IAM Policy Generator
Visual AWS IAM policy JSON builder with action and resource selectors. Generate least-privilege IAM policies for S3, EC2, Lambda, DynamoDB, and more.
Open free tool →
More Free Tools
Related Articles
AWS CDK with TypeScript: Build Cloud Infrastructure as Code
Learn AWS CDK with TypeScript from scratch. Understand constructs, stacks, L1/L2/L3 levels, testing, and deployment patterns for production-grade cloud infrastructure.
Pulumi vs Terraform 2026: Which IaC Tool Should You Choose?
A deep comparison of Pulumi and Terraform for infrastructure as code in 2026. Covers syntax, state management, provider ecosystem, team adoption, and when to choose each tool.
Terraform Infrastructure as Code: Complete 2024 Guide
Master Terraform for infrastructure as code. Learn HCL syntax, providers, state management, modules, and best practices to automate your cloud infrastructure.
Zero Trust Security Architecture: Complete Implementation Guide for Developers
Learn how to implement Zero Trust security architecture in cloud-native applications. Covers IAM, micro-segmentation, OPA policy-as-code, mTLS with Istio, HashiCorp Vault, and SPIFFE/SPIRE with practical code examples.
Terraform vs Pulumi vs AWS CDK: Infrastructure as Code Comparison 2026
Complete comparison of Terraform, Pulumi, and AWS CDK for infrastructure as code in 2026. Covers language support, state management, learning curve, ecosystem, cloud support, pricing, and when to use each tool.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →