From 7f9066ec7df45f01500ab3e654ef734dfa6e495f Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Sat, 9 Dec 2023 13:06:11 +1100 Subject: [PATCH] fix: simplify waiter conditions --- packages/aws-cdk/lib/api/hotswap/ecs-services.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/aws-cdk/lib/api/hotswap/ecs-services.ts b/packages/aws-cdk/lib/api/hotswap/ecs-services.ts index fa8d6c4871522..a5ddad96505f2 100644 --- a/packages/aws-cdk/lib/api/hotswap/ecs-services.ts +++ b/packages/aws-cdk/lib/api/hotswap/ecs-services.ts @@ -144,14 +144,6 @@ export async function isHotswappableEcsServiceChange( state: 'failure', }, - // wait for all services to report COMPLETED status for the PRIMARY deployment - { - matcher: 'path', - argument: "length(services[].deployments[? status == 'PRIMARY' && rolloutState != 'COMPLETED'][]) == `0`", - expected: true, - state: 'success', - }, - // failure if any services report a deployment with status FAILED { matcher: 'path', @@ -160,7 +152,6 @@ export async function isHotswappableEcsServiceChange( state: 'failure', }, - // backup for non-rolling update services that do not provide rolloutState // wait for all services to report only a single deployment { matcher: 'path',