Skip to content

Conversation

@chancepants
Copy link

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.
@github-actions github-actions bot added 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 labels Nov 2, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team November 2, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

1 participant