You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS::IAM::ManagedPolicy has based on the CloudFormation specification a max size set as 131072, however the managed policy maximum size is 6144, which is a compact size limit ( IAM doesn't count white space when calculating the size of a policy against this limit. )
CloudFormation Lint Version
1.18.3
What operating system are you using?
Debian GNU/Linux 12 (bookworm)
Describe the bug
The
AWS::IAM::ManagedPolicy
has based on the CloudFormation specification a max size set as 131072, however the managed policy maximum size is 6144, which is a compact size limit ( IAM doesn't count white space when calculating the size of a policy against this limit. )Reference documentations:
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-policydocument
The error:
Expected behavior
cfn-lint mark these templates as invalid
Reproduction template
The text was updated successfully, but these errors were encountered: