Skip to content

iam: No error when more than 11 ManagedPolicy are set for UserGroup. #24085

@watany-dev

Description

@watany-dev

Describe the bug

When I set up the group with the code as written in the reproduction procedure, neither CDK nor CreateStack failed, but Createstack was tried, and I had to wait for more than 20 minutes!

Expected Behavior

It takes a long time to get an error in CloudFormation, so it would be kind to get an error in the CDK constucts.

Current Behavior

After attempting to cdk deploy, CreateStack continued for over 20 minutes without error.

Reproduction Steps

const group = new iam.Group(this, 'sample-group', {});
const policylist: string[] = [
  'AWSSome01PowerUser',
  ……

  'AWSSome20PowerUser',    
]
for (var policy of policylist)
      group.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(policy))

Possible Solution

I want to modify the cdk side to raise an Exception Error.

Additional Information/Context

No response

CDK CLI Version

2.62.2

Framework Version

No response

Node.js Version

any

OS

AmazonLinux2

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-iamRelated to AWS Identity and Access ManagementdocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions