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
Describe the bug
AWS AutoScaling OnDemandAllocationStrategy enum for Mixed Instance Policy does not support
lowest-price, onlyprioritized.ASG supports both: https://docs.aws.amazon.com/autoscaling/ec2/userguide/allocation-strategies.html#on-demand-allocation-strategy
Expected Behavior
OnDemandAllocationStrategy should support both
prioritizedandlowest-priceCurrent Behavior
OnDemandAllocationStrategy only supports
prioritizedand NOTlowest-priceReproduction Steps
aws-cdk/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts
Lines 423 to 432 in 1a9c30e
Possible Solution
Add
lowest-priceenumAdditional 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