@go-to-k/cdkd 0.231.2 → 0.231.3
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 +14 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1445
1445
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1446
1446
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1447
1447
|
function getCdkdVersion() {
|
|
1448
|
-
return "0.231.
|
|
1448
|
+
return "0.231.3";
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -20711,6 +20711,13 @@ var ECSProvider = class {
|
|
|
20711
20711
|
const newServiceName = properties["ServiceName"];
|
|
20712
20712
|
const oldServiceName = previousProperties["ServiceName"];
|
|
20713
20713
|
if (newServiceName && oldServiceName && newServiceName !== oldServiceName) throw new ProvisioningError(`Cannot update ServiceName for ECS service ${logicalId} (immutable property, requires replacement)`, resourceType, logicalId, physicalId);
|
|
20714
|
+
const deploymentControllerType = properties["DeploymentController"]?.["Type"] ?? "ECS";
|
|
20715
|
+
const isEcsController = deploymentControllerType === "ECS";
|
|
20716
|
+
const loadBalancersChanged = JSON.stringify(previousProperties["LoadBalancers"] ?? null) !== JSON.stringify(properties["LoadBalancers"] ?? null);
|
|
20717
|
+
const serviceRegistriesChanged = JSON.stringify(previousProperties["ServiceRegistries"] ?? null) !== JSON.stringify(properties["ServiceRegistries"] ?? null);
|
|
20718
|
+
if (!isEcsController && (loadBalancersChanged || serviceRegistriesChanged)) throw new ProvisioningError(`AWS::ECS::Service '${logicalId}' changes LoadBalancers/ServiceRegistries under the '${deploymentControllerType}' deployment controller, which applies them via a new CodeDeploy deployment / task set rather than UpdateService. cdkd does not support updating these under a non-ECS controller; recreate the service or manage the blue/green deployment out-of-band.`, resourceType, logicalId, physicalId);
|
|
20719
|
+
const loadBalancersInput = isEcsController && loadBalancersChanged ? this.convertLoadBalancers(properties["LoadBalancers"]) ?? [] : void 0;
|
|
20720
|
+
const serviceRegistriesInput = isEcsController && serviceRegistriesChanged ? properties["ServiceRegistries"] ?? [] : void 0;
|
|
20714
20721
|
try {
|
|
20715
20722
|
const service = (await client.send(new UpdateServiceCommand({
|
|
20716
20723
|
cluster: properties["Cluster"],
|
|
@@ -20724,7 +20731,11 @@ var ECSProvider = class {
|
|
|
20724
20731
|
placementStrategy: properties["PlacementStrategies"] ?? properties["PlacementStrategy"],
|
|
20725
20732
|
platformVersion: properties["PlatformVersion"],
|
|
20726
20733
|
healthCheckGracePeriodSeconds: properties["HealthCheckGracePeriodSeconds"],
|
|
20727
|
-
|
|
20734
|
+
enableECSManagedTags: properties["EnableECSManagedTags"],
|
|
20735
|
+
propagateTags: properties["PropagateTags"],
|
|
20736
|
+
enableExecuteCommand: properties["EnableExecuteCommand"],
|
|
20737
|
+
loadBalancers: loadBalancersInput,
|
|
20738
|
+
serviceRegistries: serviceRegistriesInput
|
|
20728
20739
|
}))).service;
|
|
20729
20740
|
if (service?.serviceArn) await this.applyTagDiff(service.serviceArn, previousProperties["Tags"], properties["Tags"]);
|
|
20730
20741
|
return {
|
|
@@ -55514,7 +55525,7 @@ function reorderArgs(argv) {
|
|
|
55514
55525
|
async function main() {
|
|
55515
55526
|
installPipeCloseHandler();
|
|
55516
55527
|
const program = new Command();
|
|
55517
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.231.
|
|
55528
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.231.3");
|
|
55518
55529
|
program.addCommand(createBootstrapCommand());
|
|
55519
55530
|
program.addCommand(createSynthCommand());
|
|
55520
55531
|
program.addCommand(createListCommand());
|