Skip to content

Fix jump role policy generation when bootstrapping > 361 accounts #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbkok
Copy link
Collaborator

@sbkok sbkok commented Aug 8, 2024

Issue: #750

Why?

The calculation for the maximum number of accounts that can be supported with the jump role manager in one go was incorrect.

Among other things, the calculation did not take into account the maximum length of a role name.

What?

  • Added tests to validate future changes of the policy generation process will generate policies of a supported length.
  • Fixed the calculation to include the maximum role name length of 64 characters.

By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

Issue: awslabs#750

## Why?

The calculation for the maximum number of accounts that can be supported with
the jump role manager in one go was incorrect.

Among other things, the calculation did not take into account the maximum
length of a role name.

## What?

* Added tests to validate future changes of the policy generation process will
  generate policies of a supported length.
* Fixed the calculation to include the maximum role name length of 64
  characters.
@sbkok sbkok added the bug Something isn't working label Aug 8, 2024
@sbkok sbkok added this to the v4.0.1 milestone Aug 8, 2024
@sbkok sbkok requested review from javydekoning and StewartW August 8, 2024 20:04
@sbkok sbkok requested a review from Alexpngal August 8, 2024 20:30
danxie1999 pushed a commit to danxie1999/aws-deployment-framework that referenced this pull request Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants