IAM Policy Lint: Terraform plan IAM policy diff for AWS pull requests
Open a saved Terraform plan JSON, see which AWS IAM policy statements changed, and copy a pull-request note that holds only counts.
Open IAM Policy Lint →See it work



Before you start


What it does
IAM Policy Lint compares the AWS IAM policy documents in one saved Terraform plan and shows the statements added and removed. It is for engineers who review a pull request that changes IAM and need to leave a note without pasting role names, account IDs or policy values into the thread.
- Compares managed policies, inline role policies and role trust policies, statement by statement.
- Ignores statement order and object key order. Order inside lists, such as
Action, still counts. - Shows added and removed statements and changed top-level fields on the page.
- Lists IAM changes it cannot review, with the reason, such as a policy that is unknown until apply.
- Writes a Markdown note from fixed words and counts, with no addresses, names, ARNs, actions, values or file names.
How to use it
- Save the plan as JSON:
terraform plan -out=plan.tfplan, thenterraform show -json plan.tfplan > plan.json. - Drop
plan.jsonon the page, or choose it. The limit is one.jsonfile of up to 10 MiB. - Read the added and removed statements and check anything listed as unreviewed.
- Press Copy PR note and paste it into the pull request.
What it does not do
- It compares three fields only:
aws_iam_policy.policy,aws_iam_role_policy.policyandaws_iam_role.assume_role_policy, from the HashiCorp AWS provider on the Terraform or OpenTofu registry. - It does not read or list policies on other resource types, such as S3 bucket policies or KMS key policies.
- Attachment resources, other
aws_iam_*types, changes to a role'sinline_policyormanaged_policy_arns, deferred changes, values unknown until apply and unreadable policies are listed as unreviewed. - Despite the name, it is not a linter: it does not validate policy syntax, flag risky or privilege-escalation actions, work out effective access or explain a policy in plain English.
- An edited statement appears as one removed and one added.
- A new or deleted policy document can count as a top-level field change, for example because of its
Versionfield. - It does not accept pasted IAM JSON,
.tffiles, binary plans or state files, and it does not post to your pull request. - A plan saved as JSON can contain sensitive values in plain text. The page does not change or delete your file.
Open IAM Policy Lint: it is free and runs in your browser.
Saved you some time? Tools here stay free and sign-up free. Tip the maker on Ko-fi.
More free tools
Cloud Bill SpikesMap Azure Actual Cost CSV to cost centers
Map Azure Actual Cost charges without a resource group to cost centers. Download a CSV and see unassigned balances by currency.
OIDC Trust CheckGitHub Actions AWS OIDC trust policy checker
Check GitHub Actions release refs against environment rules and AWS role trust to see which check blocks each branch or tag first.
Acl MatchCompare NTFS permissions after migration
Compare two icacls exports after a file-server move to find changed rights, inheritance differences, and missing paths.
Acl TraceCisco ACL checker and shadowed rule finder
Paste a Cisco IOS extended ACL and a test packet. See the first matching line and each line one earlier rule fully shadows.
App SweepEntra enterprise app ID checker for CSV exports
Paste advisory app IDs and add Entra Enterprise applications CSVs to see which IDs appear in each customer export.
Ca BaselineCompare conditional access policies
Compare Conditional Access exports against one baseline. See missing policies, added exclusions, and weaker controls per customer.