@go-to-k/cdkd 0.207.2 → 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-DWUnLza1.js";
|
|
3
|
-
import { $ as findLargeInlineResources, A as LockManager, At as getLiveRenderer, B as runDockerStreaming, C as CloudControlProvider, D as DiffCalculator, Dt as getLogger, E as applyRoleArnIfSet, F as WorkGraph, Ft as withSkipPrefix, G as resolveCaptureObservedState, H as getDefaultStateBucketName, I as buildDockerImage, It as withStackName, J as resolveStateBucketWithDefaultAndSource, K as resolveSkipPrefix, L as formatDockerLoginError, M as shouldRetainResource, Mt as PATTERN_B_RESOURCE_TYPES, N as AssetPublisher, Nt as generateResourceName, O as DagBuilder, P as stringifyValue, Pt as generateResourceNameWithFallback, Q as MIGRATE_TMP_PREFIX, R as getDockerCmd, S as findActionableSilentDrops, T as IntrinsicFunctionResolver, Tt as withErrorHandling, U as getLegacyStateBucketName, V as Synthesizer, W as resolveApp, X as CFN_TEMPLATE_BODY_LIMIT, Y as warnDeprecatedNoPrefixCliFlag, Z as CFN_TEMPLATE_URL_LIMIT, _ as CDK_PATH_TAG, _t as ResourceUpdateNotSupportedError, a as withRetry, at as CdkdError, b as resolveExplicitPhysicalId, c as formatResourceLine, ct as LocalInvokeBuildError$1, d as gray, et as uploadCfnTemplate, f as green, ft as MissingCdkCliError, g as collectInlinePolicyNamesManagedBySiblings, gt as ResourceTimeoutError, h as IAMRoleProvider, ht as ProvisioningError, i as withResourceDeadline, j as S3StateBackend, jt as PATTERN_B_NAME_PROPERTIES, k as TemplateParser, kt as runStackBuffered, l as bold, lt as LocalMigrateError, m as yellow, mt as PartialFailureError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as red, pt as NestedStackChildDirectDestroyError, q as resolveStateBucketWithDefault, r as DeployEngine, rt as resolveBucketRegion, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as AssemblyReader, u as cyan, ut as LocalStartServiceError, v as matchesCdkPath, vt as StackHasActiveImportsError, w as assertRegionMatch, wt as normalizeAwsError, x as ProviderRegistry, y as normalizeAwsTagsToCfn, yt as StackTerminationProtectionError, z as runDockerForeground } from "./deploy-engine-
|
|
3
|
+
import { $ as findLargeInlineResources, A as LockManager, At as getLiveRenderer, B as runDockerStreaming, C as CloudControlProvider, D as DiffCalculator, Dt as getLogger, E as applyRoleArnIfSet, F as WorkGraph, Ft as withSkipPrefix, G as resolveCaptureObservedState, H as getDefaultStateBucketName, I as buildDockerImage, It as withStackName, J as resolveStateBucketWithDefaultAndSource, K as resolveSkipPrefix, L as formatDockerLoginError, M as shouldRetainResource, Mt as PATTERN_B_RESOURCE_TYPES, N as AssetPublisher, Nt as generateResourceName, O as DagBuilder, P as stringifyValue, Pt as generateResourceNameWithFallback, Q as MIGRATE_TMP_PREFIX, R as getDockerCmd, S as findActionableSilentDrops, T as IntrinsicFunctionResolver, Tt as withErrorHandling, U as getLegacyStateBucketName, V as Synthesizer, W as resolveApp, X as CFN_TEMPLATE_BODY_LIMIT, Y as warnDeprecatedNoPrefixCliFlag, Z as CFN_TEMPLATE_URL_LIMIT, _ as CDK_PATH_TAG, _t as ResourceUpdateNotSupportedError, a as withRetry, at as CdkdError, b as resolveExplicitPhysicalId, c as formatResourceLine, ct as LocalInvokeBuildError$1, d as gray, et as uploadCfnTemplate, f as green, ft as MissingCdkCliError, g as collectInlinePolicyNamesManagedBySiblings, gt as ResourceTimeoutError, h as IAMRoleProvider, ht as ProvisioningError, i as withResourceDeadline, j as S3StateBackend, jt as PATTERN_B_NAME_PROPERTIES, k as TemplateParser, kt as runStackBuffered, l as bold, lt as LocalMigrateError, m as yellow, mt as PartialFailureError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as red, pt as NestedStackChildDirectDestroyError, q as resolveStateBucketWithDefault, r as DeployEngine, rt as resolveBucketRegion, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as AssemblyReader, u as cyan, ut as LocalStartServiceError, v as matchesCdkPath, vt as StackHasActiveImportsError, w as assertRegionMatch, wt as normalizeAwsError, x as ProviderRegistry, y as normalizeAwsTagsToCfn, yt as StackTerminationProtectionError, z as runDockerForeground } from "./deploy-engine-ai3rix-L.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListDirectoryBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -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 /
|
|
23174
|
-
*
|
|
23175
|
-
*
|
|
23176
|
-
*
|
|
23177
|
-
*
|
|
23173
|
+
* 2. ENABLING / ENABLING_HOSTED_ZONE_LOCKED → wait 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. ENABLED → issue `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
|
|
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
|
|
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.
|
|
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());
|