fix(ecs): allow empty placementStrategies on EC2Service#35580
fix(ecs): allow empty placementStrategies on EC2Service#35580mergify[bot] merged 5 commits intoaws:mainfrom
Conversation
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
415b28c to
dcdd1f7
Compare
Pull request has been modified.
|
Build failure just looks like an oom... |
Same fix as aws#30382 but for `placementStrategies`. Apparently this was not done at that time because CloudFormation [previously did not have the appropriate semantics](aws#27572 (comment)) for setting PlacementStrategies to the empty array as it did for PlacementConstraints, but that is no longer the case. The CloudFormation docs [state](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-ecs-service.html#cfn-ecs-service-placementstrategies): > To remove this property from your service resource, specify an empty PlacementStrategy array. And indeed that works, with this CDK change applied.
0597424 to
cc0397b
Compare
packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.ts
Outdated
Show resolved
Hide resolved
Pull request has been modified.
|
@vishaalmehrishi please take another look. |
|
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). |
|
This pull request has been removed from the queue for the following reason: The pull request can't be updated
You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
Pull request has been modified.
|
@vishaalmehrishi I merged from main, can you try to land this PR again? I don’t think I’m allowed to do it myself. |
|
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). |
|
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. |
Reason for this change
You can't remove placement strategies from an ECS service using CDK once they've been set.
Description of changes
Same fix as #30382 but for
placementStrategies. Apparently this was not done at that time because CloudFormation previously did not have the appropriate semantics for setting PlacementStrategies to the empty array as it did for PlacementConstraints, but that is no longer the case. The CloudFormation docs state:Describe any new or updated permissions being added
N/A
Description of how you validated changes
Unit and integration tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license