@go-to-k/cdkd 0.221.0 → 0.221.1
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 +10 -32
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-xlz3wc4W.js → deploy-engine-OWyYqmlc.js} +85 -46
- package/dist/deploy-engine-OWyYqmlc.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-xlz3wc4W.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { A as withErrorHandling, B as generateResourceNameWithFallback, C as StackHasActiveImportsError, F as getLiveRenderer, H as withStackName, I as PATTERN_B_NAME_PROPERTIES, L as PATTERN_B_RESOURCE_TYPES, M as getLogger, P as runStackBuffered, S as ResourceUpdateNotSupportedError, V as withSkipPrefix, _ as MissingCdkCliError, a as assertRegionMatch, b as ProvisioningError, f as LocalInvokeBuildError$1, i as resolveExplicitPhysicalId, k as normalizeAwsError, l as CdkdError, m as LocalStartServiceError, n as matchesCdkPath, o as disableInstanceApiTermination, p as LocalMigrateError, r as normalizeAwsTagsToCfn, s as isTerminationProtectionPropagationError, t as CDK_PATH_TAG, v as NestedStackChildDirectDestroyError, w as StackTerminationProtectionError, x as ResourceTimeoutError, y as PartialFailureError, z as generateResourceName } from "./import-helpers-wLipXr5g.js";
|
|
3
3
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-pjPwZz1r.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as AssetPublisher, B as getLegacyStateBucketName, C as DiffCalculator, D as S3StateBackend, E as LockManager, F as getDockerCmd, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as runDockerForeground, J as CFN_TEMPLATE_URL_LIMIT, K as warnDeprecatedNoPrefixCliFlag, L as runDockerStreaming, M as WorkGraph, N as buildDockerImage, O as rebuildClientForBucketRegion, P as formatDockerLoginError, Q as AssemblyReader, R as Synthesizer, S as applyRoleArnIfSet, T as TemplateParser, U as resolveSkipPrefix, V as resolveApp, W as resolveStateBucketWithDefault, X as findLargeInlineResources, Y as MIGRATE_TMP_PREFIX, Z as uploadCfnTemplate, _ as collectInlinePolicyNamesManagedBySiblings, a as withRetry, b as CloudControlProvider, c as extractDeploymentEventError, d as cyan, et as resolveBucketRegion, f as gray, g as IAMRoleProvider, h as yellow, i as withResourceDeadline, j as stringifyValue, k as shouldRetainResource, l as formatResourceLine, m as red, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as green, q as CFN_TEMPLATE_BODY_LIMIT, r as DeployEngine, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as bold, v as ProviderRegistry, w as DagBuilder, x as IntrinsicFunctionResolver, y as findActionableSilentDrops, z as getDefaultStateBucketName } from "./deploy-engine-OWyYqmlc.js";
|
|
5
5
|
import { t as ASGProvider } from "./asg-provider-B_hrCxRx.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1553,7 +1553,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1553
1553
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1554
1554
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1555
1555
|
function getCdkdVersion() {
|
|
1556
|
-
return "0.221.
|
|
1556
|
+
return "0.221.1";
|
|
1557
1557
|
}
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -2036,36 +2036,14 @@ var ExportIndexStore = class {
|
|
|
2036
2036
|
if (this.resolveInFlight) return this.resolveInFlight;
|
|
2037
2037
|
this.resolveInFlight = (async () => {
|
|
2038
2038
|
try {
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
const fallbackRegion = typeof currentRegion === "string" ? currentRegion : void 0;
|
|
2046
|
-
let probeCredentials;
|
|
2047
|
-
try {
|
|
2048
|
-
if (typeof config.credentials === "function") probeCredentials = await config.credentials();
|
|
2049
|
-
} catch {
|
|
2050
|
-
probeCredentials = void 0;
|
|
2051
|
-
}
|
|
2052
|
-
const bucketRegion = await resolveBucketRegion(this.bucket, {
|
|
2053
|
-
...probeCredentials && { credentials: probeCredentials },
|
|
2054
|
-
...fallbackRegion && { fallbackRegion }
|
|
2039
|
+
const replacement = await rebuildClientForBucketRegion(this.s3Client, this.bucket, {
|
|
2040
|
+
reuseClientCredentials: true,
|
|
2041
|
+
tolerateNonStandardClient: true,
|
|
2042
|
+
onRebuild: ({ bucketRegion, currentRegion }) => {
|
|
2043
|
+
this.logger.debug(`State bucket '${this.bucket}' is in '${bucketRegion}' (exports-index client was '${String(currentRegion)}'); building a region-corrected S3 client for index operations.`);
|
|
2044
|
+
}
|
|
2055
2045
|
});
|
|
2056
|
-
if (
|
|
2057
|
-
this.logger.debug(`State bucket '${this.bucket}' is in '${bucketRegion}' (exports-index client was '${String(currentRegion)}'); building a region-corrected S3 client for index operations.`);
|
|
2058
|
-
this.s3Client = new S3Client({
|
|
2059
|
-
region: bucketRegion,
|
|
2060
|
-
credentials: this.s3Client.config.credentials,
|
|
2061
|
-
logger: {
|
|
2062
|
-
debug: () => {},
|
|
2063
|
-
info: () => {},
|
|
2064
|
-
warn: () => {},
|
|
2065
|
-
error: () => {}
|
|
2066
|
-
}
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2046
|
+
if (replacement) this.s3Client = replacement;
|
|
2069
2047
|
this.clientResolved = true;
|
|
2070
2048
|
} finally {
|
|
2071
2049
|
this.resolveInFlight = null;
|
|
@@ -53824,7 +53802,7 @@ function reorderArgs(argv) {
|
|
|
53824
53802
|
async function main() {
|
|
53825
53803
|
installPipeCloseHandler();
|
|
53826
53804
|
const program = new Command();
|
|
53827
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.221.
|
|
53805
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.221.1");
|
|
53828
53806
|
program.addCommand(createBootstrapCommand());
|
|
53829
53807
|
program.addCommand(createSynthCommand());
|
|
53830
53808
|
program.addCommand(createListCommand());
|