fix: Split the single monolithic Karpenter controller IAM policy #3644
Open
pincher95 wants to merge 2 commits intoterraform-aws-modules:masterfrom
Open
fix: Split the single monolithic Karpenter controller IAM policy #3644pincher95 wants to merge 2 commits intoterraform-aws-modules:masterfrom
pincher95 wants to merge 2 commits intoterraform-aws-modules:masterfrom
Conversation
…4 character IAM policy size limit
…nter module to reflect additional IAM policy documents Signed-off-by: pincher95 <yuri.tsuprun@logz.io>
Member
|
you should use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(policy.tf): split controller policies to avoid exceeding the 6,144 character IAM policy size limit
Description
Split the single monolithic Karpenter controller IAM policy into 5 focused sub-policies to avoid exceeding the AWS IAM managed policy size limit of 6,144 characters. This follows the upstream fix in karpenter-provider-aws#8690.
The single KarpenterController policy is now split into:
Motivation and Context
Fixes
#3637
#3512
The single KarpenterController IAM policy document exceeds the AWS IAM managed policy size limit of 6,144 characters.
This causes LimitExceeded: Cannot exceed quota for PolicySize: 6144 errors during terraform apply.
Breaking Changes
Yes — the controller IAM policy resources change from count-based indexing to for_each with string keys:
moved blocks are included in migrations.tf to automatically migrate the existing single policy to the NodeLifecycle key. The remaining 4 sub-policies (IAMIntegration, EKSIntegration, ResourceDiscovery, Interruption) will be created as new resources.
How Has This Been Tested?
examples/*to demonstrate and validate my change(s)examples/*projectspre-commit run -aon my pull request