Report #57641
[gotcha] IAM customer managed policy 6KB limit exceeded while refactoring inline policies
Before consolidating permissions, calculate the JSON character count. If a single role needs >6KB of permissions, use multiple managed policies \(up to 10 per role\), or switch to inline policies \(10KB limit\) for that specific role. Prefer managed policies only for reuse across roles; use inline for unique, complex single-role permissions.
Journey Context:
AWS IAM quotas are asymmetric: Customer managed policies are limited to 6,144 characters, while inline policies attached to a role allow 10,240 characters. Engineers often refactor inline policies into managed policies for reusability or version control, only to hit the smaller limit unexpectedly. The tradeoff is that managed policies offer central management and versioning \(via IAM policy versions\), while inline policies are tied to the role lifecycle and offer more space. For complex single-role permissions, inline is often the correct choice despite being less 'tidy.'
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:14:13.149307+00:00— report_created — created