@go-to-k/cdkd 0.54.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -26389,6 +26389,7 @@ import {
26389
26389
  DeleteClusterCommand,
26390
26390
  DescribeClustersCommand,
26391
26391
  PutClusterCapacityProvidersCommand,
26392
+ UpdateClusterCommand,
26392
26393
  RegisterTaskDefinitionCommand,
26393
26394
  DeregisterTaskDefinitionCommand,
26394
26395
  DescribeTaskDefinitionCommand,
@@ -26607,6 +26608,26 @@ var ECSProvider = class {
26607
26608
  );
26608
26609
  this.logger.debug(`Updated capacity providers for ECS cluster ${physicalId}`);
26609
26610
  }
26611
+ const settingsChanged = JSON.stringify(previousProperties["ClusterSettings"] ?? null) !== JSON.stringify(properties["ClusterSettings"] ?? null);
26612
+ const configChanged = JSON.stringify(previousProperties["Configuration"] ?? null) !== JSON.stringify(properties["Configuration"] ?? null);
26613
+ if (settingsChanged || configChanged) {
26614
+ const settingsInput = settingsChanged ? (properties["ClusterSettings"] ?? []).map((s) => ({
26615
+ name: s["Name"] || s["name"],
26616
+ value: (s["Value"] || s["value"]) ?? void 0
26617
+ })) : void 0;
26618
+ await client.send(
26619
+ new UpdateClusterCommand({
26620
+ cluster: physicalId,
26621
+ ...settingsChanged && { settings: settingsInput },
26622
+ ...configChanged && {
26623
+ configuration: properties["Configuration"]
26624
+ }
26625
+ })
26626
+ );
26627
+ this.logger.debug(
26628
+ `Updated ECS cluster ${physicalId} (settings=${settingsChanged}, config=${configChanged})`
26629
+ );
26630
+ }
26610
26631
  const describeResponse = await client.send(
26611
26632
  new DescribeClustersCommand({ clusters: [physicalId] })
26612
26633
  );
@@ -45789,7 +45810,7 @@ function reorderArgs(argv) {
45789
45810
  }
45790
45811
  async function main() {
45791
45812
  const program = new Command14();
45792
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.54.0");
45813
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.55.0");
45793
45814
  program.addCommand(createBootstrapCommand());
45794
45815
  program.addCommand(createSynthCommand());
45795
45816
  program.addCommand(createListCommand());