AWS IAM Policy Validator
Paste your AWS IAM policy JSON and instantly check for security risks: wildcard actions, overly broad resource scopes, privilege escalation paths, missing MFA conditions, and structural errors — without touching the AWS Console.
Frequently Asked Questions
What is an AWS IAM policy?▼
An IAM (Identity and Access Management) policy is a JSON document that defines permissions in AWS. It specifies what actions are allowed or denied, on which resources, and under what conditions. Policies are attached to IAM users, groups, or roles. There are two types: identity-based policies (attached to a principal) and resource-based policies (attached to a resource like an S3 bucket or KMS key). Every API call in AWS is evaluated against the applicable policies before being allowed.
Why is Action: '*' dangerous?▼
Action: '*' grants ALL permissions across ALL AWS services — this is equivalent to root access. If an IAM entity with Action: '*' is compromised, the attacker can create new admin users, delete data, spin up infrastructure, exfiltrate secrets, and more. Always replace Action: '*' with the specific actions your application actually needs. Use IAM Access Analyzer and CloudTrail to discover the minimum set of permissions actually used.
What are IAM privilege escalation attacks?▼
Privilege escalation occurs when an attacker uses existing limited permissions to grant themselves or another principal higher permissions. Common escalation paths: iam:CreateAccessKey (create new credentials for an existing admin user), iam:AttachUserPolicy (attach an existing admin policy to a controlled user), iam:UpdateLoginProfile (set a password on an admin account). AWS security researchers have documented over 20 escalation paths. Audit these actions carefully and require MFA conditions.
What is the principle of least privilege?▼
Least privilege means granting only the minimum permissions required to perform a task. Instead of ec2:* (all EC2 actions), grant only the specific operations needed — e.g. ec2:StartInstances and ec2:StopInstances. This limits the blast radius if credentials are compromised. Tools to help: IAM Access Analyzer generates least-privilege policies from CloudTrail logs, and the AWS Policy Simulator lets you test what permissions a policy actually grants.
What are IAM policy conditions?▼
Conditions add extra constraints to when a statement applies. Common examples: aws:MultiFactorAuthPresent (require MFA), aws:SourceIp (restrict by IP or CIDR range), aws:RequestedRegion (limit to specific AWS regions), aws:SecureTransport (require HTTPS), aws:CalledVia (restrict to actions called through specific services). Conditions are a powerful way to harden permissive policies — for example, allowing s3:* only from a specific VPC endpoint.
What is the difference between inline and managed IAM policies?▼
Managed policies are standalone policy documents that can be attached to multiple users, groups, or roles. AWS provides pre-built managed policies (like AmazonS3ReadOnlyAccess), or you can create customer managed policies. Inline policies are embedded directly into a single IAM entity and are deleted when that entity is deleted. Best practice: prefer customer managed policies over inline policies for reusability, version history, and easier auditing. Avoid AWS managed policies for production — they tend to be overly broad.
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 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 Cost Estimator
Estimate monthly AWS costs for EC2, RDS, S3, CloudFront, and Load Balancers. Interactive calculator with itemized breakdown.
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
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 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.
Terraform vs Pulumi 2026: Infrastructure as Code Comparison with Code Examples
Complete Terraform vs Pulumi comparison for 2026 — syntax, state management, multi-cloud support, testing, pricing, and when to choose each IaC tool.
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.
AWS CDK vs Terraform vs Pulumi: Infrastructure as Code Comparison 2026
Complete comparison of AWS CDK, Terraform, and Pulumi for infrastructure as code in 2026 — language support, state management, multi-cloud, community, and when to use each.
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 →