@go-to-k/cdkd 0.207.3 → 0.207.4

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
@@ -23170,11 +23170,19 @@ var Route53Provider = class {
23170
23170
  * DISABLED / undefined / NoSuchHostedZone → return early (nothing
23171
23171
  * to do, the delete will proceed normally or hit the existing
23172
23172
  * NoSuchHostedZone short-circuit).
23173
- * 2. ENABLING / ENABLEDissue `UpdateHostedZoneFeatures(false)` then
23174
- * poll `GetHostedZone` until the status settles to DISABLED.
23175
- * 3. DISABLING poll without re-issuing the toggle.
23176
- * 4. *_FAILED / *_HOSTED_ZONE_LOCKED surface the AWS error to the
23177
- * operator (out of scope for cdkd to recover automatically).
23173
+ * 2. ENABLING / ENABLING_HOSTED_ZONE_LOCKEDwait for the enable to
23174
+ * settle (AWS rejects a disable while enabling is in flight), then
23175
+ * fall through to the disable below.
23176
+ * 3. ENABLEDissue `UpdateHostedZoneFeatures(false)` then poll
23177
+ * `GetHostedZone` until the status settles to DISABLED.
23178
+ * 4. DISABLING / DISABLING_HOSTED_ZONE_LOCKED → poll without re-issuing
23179
+ * the toggle. The `*_HOSTED_ZONE_LOCKED` states are transient
23180
+ * sub-states of the enable/disable transition (AWS briefly locks the
23181
+ * zone mid-transition) — they settle to ENABLED / DISABLED on their
23182
+ * own, so cdkd waits through them rather than treating them as a
23183
+ * terminal failure.
23184
+ * 5. *_FAILED → surface the AWS error to the operator (out of scope for
23185
+ * cdkd to recover automatically).
23178
23186
  *
23179
23187
  * Poll budget: env-overridable timeout (default 10 min) + interval
23180
23188
  * (default 15s; tests override via env to keep runs fast). Failure to
@@ -23194,12 +23202,7 @@ var Route53Provider = class {
23194
23202
  }
23195
23203
  };
23196
23204
  const deadline = Date.now() + timeoutMs;
23197
- const TERMINAL_FAILED = new Set([
23198
- "ENABLE_FAILED",
23199
- "DISABLE_FAILED",
23200
- "ENABLING_HOSTED_ZONE_LOCKED",
23201
- "DISABLING_HOSTED_ZONE_LOCKED"
23202
- ]);
23205
+ const TERMINAL_FAILED = new Set(["ENABLE_FAILED", "DISABLE_FAILED"]);
23203
23206
  const waitFor = async (targets, label) => {
23204
23207
  while (Date.now() < deadline) {
23205
23208
  const status = await readStatus();
@@ -23218,8 +23221,8 @@ var Route53Provider = class {
23218
23221
  let current = await readStatus();
23219
23222
  if (current === void 0 || current === "DISABLED") return;
23220
23223
  if (TERMINAL_FAILED.has(current)) throw new ProvisioningError(`Cannot delete hosted zone ${logicalId} (${physicalId}): AcceleratedRecoveryStatus is '${current}' — operator must resolve before destroy can proceed`, "AWS::Route53::HostedZone", logicalId, physicalId);
23221
- if (current === "ENABLING") {
23222
- this.logger.debug(`Hosted zone ${physicalId} is ENABLING; waiting for it to settle before issuing disable`);
23224
+ if (current === "ENABLING" || current === "ENABLING_HOSTED_ZONE_LOCKED") {
23225
+ this.logger.debug(`Hosted zone ${physicalId} is ${current} (an enabling phase); waiting for it to settle before issuing disable`);
23223
23226
  current = await waitFor(new Set(["ENABLED", "DISABLED"]), "ENABLED or DISABLED");
23224
23227
  if (current === void 0 || current === "DISABLED") return;
23225
23228
  }
@@ -23229,7 +23232,7 @@ var Route53Provider = class {
23229
23232
  HostedZoneId: physicalId,
23230
23233
  EnableAcceleratedRecovery: false
23231
23234
  }));
23232
- } else if (current === "DISABLING") this.logger.debug(`Hosted zone ${physicalId} AcceleratedRecovery is already DISABLING; waiting for settle`);
23235
+ } else if (current === "DISABLING" || current === "DISABLING_HOSTED_ZONE_LOCKED") this.logger.debug(`Hosted zone ${physicalId} AcceleratedRecovery is already ${current} (a disabling phase); waiting for settle`);
23233
23236
  const settled = await waitFor(new Set(["DISABLED"]), "DISABLED");
23234
23237
  this.logger.debug(`Hosted zone ${physicalId} AcceleratedRecoveryStatus settled to ${settled ?? "undefined (zone gone)"}`);
23235
23238
  }
@@ -52696,7 +52699,7 @@ function reorderArgs(argv) {
52696
52699
  */
52697
52700
  async function main() {
52698
52701
  const program = new Command();
52699
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.207.3");
52702
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.207.4");
52700
52703
  program.addCommand(createBootstrapCommand());
52701
52704
  program.addCommand(createSynthCommand());
52702
52705
  program.addCommand(createListCommand());