@@ -5,7 +5,7 @@ import * as chokidar from 'chokidar';
5
5
import * as fs from 'fs-extra' ;
6
6
import { ToolkitServices } from './private' ;
7
7
import { AssetBuildTime , type DeployOptions , RequireApproval } from '../actions/deploy' ;
8
- import { type ExtendedDeployOptions , buildParameterMap , removePublishedAssets } from '../actions/deploy/private' ;
8
+ import { type ExtendedDeployOptions , buildParameterMap , createHotswapPropertyOverrides , removePublishedAssets } from '../actions/deploy/private' ;
9
9
import { type DestroyOptions } from '../actions/destroy' ;
10
10
import { type DiffOptions } from '../actions/diff' ;
11
11
import { diffRequiresApproval } from '../actions/diff/private' ;
@@ -242,15 +242,6 @@ export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposab
242
242
] . join ( '\n' ) ) ) ;
243
243
}
244
244
245
- // @TODO
246
- // let hotswapPropertiesFromSettings = this.props.configuration.settings.get(['hotswap']) || {};
247
-
248
- // let hotswapPropertyOverrides = new HotswapPropertyOverrides();
249
- // hotswapPropertyOverrides.ecsHotswapProperties = new EcsHotswapProperties(
250
- // hotswapPropertiesFromSettings.ecs?.minimumHealthyPercent,
251
- // hotswapPropertiesFromSettings.ecs?.maximumHealthyPercent,
252
- // );
253
-
254
245
const stacks = stackCollection . stackArtifacts ;
255
246
256
247
const stackOutputs : { [ key : string ] : any } = { } ;
@@ -370,7 +361,7 @@ export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposab
370
361
rollback,
371
362
hotswap : hotswapMode ,
372
363
extraUserAgent : options . extraUserAgent ,
373
- // hotswapPropertyOverrides: hotswapPropertyOverrides ,
364
+ hotswapPropertyOverrides : options . hotswapProperties ? createHotswapPropertyOverrides ( options . hotswapProperties ) : undefined ,
374
365
assetParallelism : options . assetParallelism ,
375
366
} ) ;
376
367
0 commit comments