feat(ecs): add capacityOptionType (Spot support) to ManagedInstancesCapacityProvider L2 construct#36497
Conversation
|
|
||||||||||||||||||
|
|
||||||||||||||
624e003 to
f758729
Compare
f758729 to
5853b3d
Compare
Pull request has been modified.
Co-authored-by: A. Abdel-Rahman <github@abogic.al>
Pull request has been modified.
|
@Mergifyio update |
❌ Mergify doesn't have permission to updateDetailsFor security reasons, Mergify can't update this pull request. Try updating locally. |
There was a problem hiding this comment.
There is a build error that needs to be checked:
https://github.com/aws/aws-cdk/actions/runs/21178046110/job/60912261759?pr=36497#step:9:1749
Error: aws-cdk-lib: aws-ecs/test/cluster.test.ts:2954:67 - error TS2345: Argument of type '{ infrastructureRole: iam.Role; ec2InstanceProfile: iam.InstanceProfile; subnets: ec2.ISubnet[]; capacityOptionType: ecs.CapacityOptionType.ON_DEMAND; }' is not assignable to parameter of type 'ManagedInstancesCapacityProviderProps'.
aws-cdk-lib: Property 'securityGroups' is missing in type '{ infrastructureRole: iam.Role; ec2InstanceProfile: iam.InstanceProfile; subnets: ec2.ISubnet[]; capacityOptionType: ecs.CapacityOptionType.ON_DEMAND; }' but required in type 'ManagedInstancesCapacityProviderProps'.
Pull request has been modified.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status🚫 The pull request has left the queue (rule: This pull request spent 5 minutes 5 seconds in the queue, with no time running CI. ReasonPull request #36497 has been dequeued. The pull request rule doesn't match anymore. The following conditions don't match anymore:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. |
Pull request has been modified.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status✅ The pull request has been merged at 3af430a This pull request spent 51 minutes 40 seconds in the queue, including 30 minutes 16 seconds running CI. Required conditions to merge
|
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Relates public PR #35648
Description of changes
ECS is expanding configuration options for a ManagedInstances CapacityProvider by allowing users to set a
CapacityOptionType. This is an enum with allowed values ofON_DEMANDandSPOT. This attribute falls under the existingManagedInstancesCapacityProviderL2 construct.Feature description
Capacity Option Type provides the purchasing option for the EC2 instances used in the capacity provider. Determines whether to use On-Demand or Spot instances. Valid values are
ON_DEMANDandSPOT. Defaults toON_DEMANDwhen not specified. Changing this value will trigger replacement of the capacity provider. For more information, see Amazon EC2 billing and purchasing options in the Amazon EC2 User Guide.Description of how you validated changes
CapacityOptionTypeattribute with a value ofSPOT.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license