Skip to content

[iam] iam.Group should check if inline policy exceeds maximum size #11562

@AlJohri

Description

@AlJohri

I received the following error after deploying my CDK stack. For some reason, it took a very long time for this error to appear.

iam Maximum policy size of 5120 bytes exceeded for group XYZ

Use Case

This error seems simple to test at synthesis time in CDK and would save a lot of debugging time.

Proposed Solution

Check the total size of the combined inline policies for an iam.Group and see if it is less than 5120 bytes.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-iamRelated to AWS Identity and Access Managementclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions