IAM Policy Generator
Build AWS IAM policy JSON from a list of statements.
Statement 1
Examples
Read-only S3 access
Effect: Allow
Actions: s3:GetObject, s3:ListBucket
Resource: arn:aws:s3:::my-bucket/*{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": "arn:aws:s3:::my-bucket/*" } ] }Two actions become an array, a single resource stays a string, and the policy uses the canonical version.
About this tool
The IAM Policy Generator turns a list of statements into a valid AWS IAM policy document. For each statement you choose Allow or Deny, list the actions (such as s3:GetObject or ec2:*), and list the resources they apply to (an ARN or *). An optional Sid names the statement.
The generator wraps everything in the standard { Version: 2012-10-17, Statement: [...] } shape, collapses a single action or resource to a string and keeps multiples as arrays, and warns when a statement is incomplete. Everything runs in your browser — nothing is uploaded.
How to use this tool
Add statements
For each, pick the effect, enter actions and resources (one per line), and an optional Sid.
Read the JSON
The preview shows the assembled policy; warnings flag empty actions or resources.
Copy into AWS
Paste the JSON into the IAM console, a Terraform aws_iam_policy document, or a CloudFormation template.
Use cases
Least-privilege roles
Draft tight Allow statements per service instead of using broad managed policies.
Infrastructure as code
Generate the policy JSON to drop into Terraform or CloudFormation.
Common mistakes
Mistake:Using * for the resource.
Fix:Scope resources to specific ARNs where possible — a wildcard resource widens the blast radius.
Mistake:Mixing service namespaces.
Fix:Actions are namespaced (s3:, ec2:); keep each statement to one service for clarity.
Frequently asked questions
Does this produce a valid IAM policy?
Yes. It wraps your statements in the standard Version 2012-10-17 document, collapses a single action or resource to a string and keeps multiples as arrays, and warns when a statement has no actions or resources.
Can I add multiple statements?
Yes. Add as many statements as you need, each with its own Sid, Allow/Deny effect, actions, and resources. They all appear in one Statement array.
Are my policy details sent anywhere?
No. The policy is assembled in your browser — nothing is uploaded, and you copy the JSON straight into the AWS console, Terraform, or CloudFormation.
Related guides
CloudFormation Template Generator: Starter AWS YAML in the Browser
Generate AWS CloudFormation YAML with S3, Lambda, IAM, EC2 and DynamoDB presets plus Parameters and Outputs — free and client-side.
S3 Bucket Policies: Who Can Do What to Which Objects
How an S3 bucket policy differs from IAM, the Principal/Action/Resource triple, and when to scope by key prefix or include the bucket ARN.
Writing IAM Policies by Hand (Without Shooting Yourself in the Foot)
The anatomy of an AWS IAM policy — Version, Statement, Effect, Action, Resource — and how to keep permissions tight and readable.
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML