Writing an IAM policy JSON document from a blank page for a common, well-understood access pattern — read-only S3 access, a Lambda execution role, deny-all — is unnecessary busywork you can skip. IAM Policy Example Library is a set of ready-to-use, structurally valid policy templates for frequently needed access patterns, each shown as pretty-printed JSON you can copy straight into the IAM console or your infrastructure-as-code.
Every template uses obvious placeholder values — <your-bucket-name>, <account-id>, <region>, <your-table-name> and similar — in angle brackets specifically so they cannot be mistaken for real values and are easy to find-and-replace before use. These are meant as a fast, correct starting point to edit, not a drop-in final policy: swap in your own resource identifiers, and narrow the action list further if a template grants more than a given role actually needs.
The two examples with the broadest reach — full S3 admin on a bucket, and full IAM admin — carry an explicit warning callout, since both are common sources of accidental over-permissioning when copied without a second look. Scope those down wherever possible; this site’s Least-Privilege Policy Generator and Overly-Permissive Policy Checker tools can help with that next step.
This is a curated set of common starting points, not exhaustive coverage of every access pattern you might need — for anything more specific, adjust the closest template here or build a policy from scratch with the IAM Policy Generator tool.