Skip to content

feat(eks): support MixedInstancePolicy for self-managed nodes#35921

Closed
chancepants wants to merge 2 commits intoaws:mainfrom
chancepants:eks-mixed-instance-policy
Closed

feat(eks): support MixedInstancePolicy for self-managed nodes#35921
chancepants wants to merge 2 commits intoaws:mainfrom
chancepants:eks-mixed-instance-policy

Conversation

@chancepants
Copy link
Copy Markdown

Adds an optional parameter to the cluster addAutoScalingGroupCapacity method to support MixedInstancePolicy. Currently the only alternative is to heavily utilize escape hatches to attach a MixedInstancePolicy to the ASG created within this method.

Issue # (if applicable)

Closes #35732

Reason for this change

Users of eks cluster.addAutoScalingGroupCapcity do not have a convenient way to apply a MixedInstancePolicy to their ASG.

Description of changes

Added an optional parameter to cluster.addAutoScalingGroupCapcity to allow users to provide a MixedInstancePolicy which is applied to the ASG.

Description of how you validated changes

I added unit tests which largely cover the validation logic and added a unittest to verify CDK deployments succeed with the new parameter.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Adds an optional parameter to the cluster addAutoScalingGroupCapacity
method to support MixedInstancePolicy. Currently the only alternative is
to heavily utilize escape hatches to attach a MixedInstancePolicy to the
ASG created within this method.
@aws-cdk-automation aws-cdk-automation requested a review from a team November 2, 2025 01:23
@github-actions github-actions bot added effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Nov 2, 2025
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ Features must contain a change to a README file.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@chancepants chancepants closed this Nov 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 2, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws-eks: AutoScalingGroupCapacityOptions - support MixedInstancesPolicy

2 participants