Skip to content
Least Privilege Principle

Policy generation

Policy generation is the creation of an IAM policy from observed activity. IAM Access Analyzer reads AWS CloudTrail logs for a date range and builds a template of the permissions the entity actually used. AWS says the generated template covers actions and services found in the CloudTrail events it analyzed.

All terms ยท Open the calculator

An example, sourced

AWS documentation says Access Analyzer reviews your CloudTrail logs and generates a policy template that contains the permissions the entity used in your specified date range.

Why it matters here

It supplies a starting point for a smaller policy. The result still needs review, since it reflects only the activity in the window.

Sources

  1. https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html, read 16 Nov 2026

Last reviewed 16 Nov 2026.