Skip to content
Calcrivo

AWS IAM Policy Calculator

Measure a role against the default AWS IAM quotas: policy characters, 10 managed attachments, and account role and policy limits.

Inputs

policies
characters
characters
policies
roles

Total Policy Characters on the Role

32,600characters

Managed Attachments Remaining

3of 10

Managed Policy Size vs 6144

68.4%

Inline Policy Size vs 10240

31.3%

Customer Managed Policies vs 1500

42.7%

Roles vs 1000 per Account

48.0%

Assessment

Within all default IAM quotas

Step by step

  1. Values used

    Managed policies attached to the role = 7 policies; Characters in the largest managed policy = 4,200 characters; Aggregate inline policy characters on the role = 3,200 characters; Customer managed policies in the account = 640 policies; IAM roles in the account = 480 roles

  2. AWS IAM Policy

    characters on the role = managed policies attached × characters each + aggregate inline characters, each measured against its own quota.

  3. Default AWS account quotas

    Account quotas: 1500 customer managed policies, 1000 roles, 5000 users, 300 groups, 5 versions per managed policy.

  4. Total Policy Characters on the Role

    = 32,600 characters

  5. Managed Attachments Remaining

    = 3 of 10

  6. Managed Policy Size vs 6144

    = 68.4

  7. Inline Policy Size vs 10240

    = 31.3

  8. Customer Managed Policies vs 1500

    = 42.7

  9. Roles vs 1000 per Account

    = 48.0

How it works

AWS enforces IAM limits at three levels at once: the size of each document, the number of documents attached to a principal, and the number of objects in the account. A role can be well inside the character limit and still fail to deploy because it already has ten managed policies attached. These quotas surface as LimitExceeded errors during deployment rather than at design time, and the attachment limit in particular tends to bite exactly when an incident response needs one more policy attached.

Formulas

AWS IAM Policy

characters on the role = managed policies attached × characters each + aggregate inline characters, each measured against its own quota.

10
Default managed policies attachable to one principal
6144
Character limit for one managed policy
10240
Aggregate inline policy limit on a role

Default AWS account quotas

Account quotas: 1500 customer managed policies, 1000 roles, 5000 users, 300 groups, 5 versions per managed policy.

5 versions
Older versions must be deleted before a sixth can be created

Frequently Asked Questions

How is AWS IAM Policy calculated?

characters on the role = managed policies attached × characters each + aggregate inline characters, each measured against its own quota. AWS enforces IAM limits at three levels at once: the size of each document, the number of documents attached to a principal, and the number of objects in the account. A role can be well inside the character limit and still fail to deploy because it already has ten managed policies attached.

Why does AWS IAM Policy matter?

These quotas surface as LimitExceeded errors during deployment rather than at design time, and the attachment limit in particular tends to bite exactly when an incident response needs one more policy attached.

What values do I need to enter?

This calculator takes 5 inputs: Managed policies attached to the role, Characters in the largest managed policy, Aggregate inline policy characters on the role, Customer managed policies in the account, IAM roles in the account. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Which AWS IAM limits can be raised?

The managed policies per principal quota can go from 10 to 20, and roles per account, customer managed policies per account and users per account are adjustable through Service Quotas. The character limits on policy documents and the 5-versions-per-policy limit are hard and cannot be raised.

Do permissions boundaries and SCPs count against these limits?

A permissions boundary is a managed policy, so it consumes a document with its own 6144-character limit, but it does not consume one of the ten attachment slots. Service control policies live in AWS Organizations with separate limits and do not count against the account's IAM policy quotas at all.

You might also need