Skip to content

aws-autoscaling: OnDemandAllocationStrategy enum does not support lowest-price #28395

@bwagner5

Description

@bwagner5

Describe the bug

AWS AutoScaling OnDemandAllocationStrategy enum for Mixed Instance Policy does not support lowest-price, only prioritized.

ASG supports both: https://docs.aws.amazon.com/autoscaling/ec2/userguide/allocation-strategies.html#on-demand-allocation-strategy

Expected Behavior

OnDemandAllocationStrategy should support both prioritized and lowest-price

Current Behavior

OnDemandAllocationStrategy only supports prioritized and NOT lowest-price

Reproduction Steps

export enum OnDemandAllocationStrategy {
/**
* This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch
* priority of each instance type. The first instance type in the array is prioritized higher than the
* last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then
* the Auto Scaling group launches the remaining capacity using the second priority instance type, and
* so on.
*/
PRIORITIZED = 'prioritized',
}

Possible Solution

Add lowest-price enum

Additional Information/Context

No response

CDK CLI Version

2.106.0

Framework Version

No response

Node.js Version

21.1.0

OS

Mac M1 14.2

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-autoscalingRelated to Amazon EC2 Auto ScalingbugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions