@go-to-k/cdkd 0.284.19 → 0.284.20
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/{asg-provider-CuSoYdf6.js → asg-provider-Cq-oDB62.js} +2 -2
- package/dist/{asg-provider-CuSoYdf6.js.map → asg-provider-Cq-oDB62.js.map} +1 -1
- package/dist/cli.js +6 -25
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-Bh_LPdju.js → deploy-engine-C6gt7NcL.js} +146 -16
- package/dist/deploy-engine-C6gt7NcL.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-Bh_LPdju.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as isTerminationProtectionPropagationError, $n as
|
|
2
|
+
import { $ as isTerminationProtectionPropagationError, $n as PartialFailureError, $t as getBootstrapMarkerKey, A as renderStatefulReason, An as expectedOwnerParam, At as applyRoleArnIfSet, B as exportAliasCollisionScrubWarning, Bn as resetAwsClients, Bt as shouldRetainResource, C as isFinalSnapshotError, Cn as stateBucketExistenceConfirmed, Ct as redactSecretsForState, D as extractDeploymentEventError, Dn as MIGRATE_TMP_PREFIX, Dt as s3BucketDualStackDomainName, E as makeCanonicalizePropertiesFn, En as CFN_TEMPLATE_URL_LIMIT, Et as s3BucketDomainName, F as green, Fn as processStackMessages, Ft as DagBuilder, G as collectInlinePolicyNamesManagedBySiblings, Gt as createAssetRedirectResolver, H as secretBearingStateKeyWarning, Ht as stringifyValue, I as red, It as TemplateParser, J as findActionableSilentDrops, Jn as LocalMigrateError, Jt as escapeRegExp, K as clearOnUpdateRemoval, Kn as DeployCancelledError, Kt as loadPublishableAssetManifest, L as yellow, Ln as resolveBucketRegion, Lt as LockManager, M as bold, Mn as canonicalizeRegion, Mt as INTRINSIC_KEYS, N as cyan, Nn as derivePartitionAndUrlSuffix, Nt as describeTypeWithThrottleRetry, O as MULTI_REGION_RECREATE_BLOCKED_TYPES, On as findLargeInlineResources, Ot as s3BucketRegionalDomainName, P as gray, Pn as AssemblyReader, Pt as withRetry, Q as disableInstanceApiTermination, Qn as NestedStackChildDirectDestroyError, Qt as ensureAssetStorage, R as collectDeclaredOutputNames, Rn as AwsClients, Rt as S3StateBackend, S as createPreDeleteFinalSnapshot, Sn as resolveUseCdkBootstrapAssets, St as maskSecretsInText, T as unsupportedFinalSnapshotError, Tn as CFN_TEMPLATE_BODY_LIMIT, Tt as s3BucketArn, U as stateKeySecretExposure, Un as CdkdError, Ut as WorkGraph, V as isExportAliasCollision, Vn as setAwsClients, Vt as AssetPublisher, W as IAMRoleProvider, Wt as buildAssetRedirectMap, X as CloudControlProvider, Xt as AssetModeResolver, Y as findSilentDropProperties, Yn as LocalStartServiceError, Yt as stripControlChars, Z as slowCcOperationTimeoutMs, Zn as MissingCdkCliError, Zt as BOOTSTRAP_MARKER_PREFIX, _ as computeImplicitDeleteEdges, _n as resolveAutoAssetStorage, _t as STATE_SOURCED_READBACK_RULES, a as DeploymentEventsStore, an as buildDockerImage, at as normalizeAwsTagsToCfn, b as buildFinalSnapshotIdentifier, bn as resolveStateBucketWithDefault, bt as dynamicReferenceTokens, c as replayFailedOperations, cn as runDockerForeground, ct as coerceCfnBoolean, d as updatePartialReason, dn as getDockerImageBySourceHash, dr as isMarkedNonRetryable, dt as readConfigString, en as parseBootstrapMarker, er as ProvisioningError, et as IntrinsicFunctionResolver, f as UNSPECIFIED_SKIP_REASON, fn as Synthesizer, fr as isRetryableTransientError, ft as replayWarn, g as IMPLICIT_DELETE_DEPENDENCIES, gn as resolveApp, gt as STATE_SOURCED_CROSS_GENERATION_RULES, h as maskingRetryLogger, hn as getLegacyStateBucketName, ht as requireConfigString, i as DeploymentEventsReader, in as buildDenyExternalAccessPolicy, ir as StackTerminationProtectionError, it as WAFv2WebACLProvider, j as formatResourceLine, jn as PARTITION_TABLE, jt as DiffCalculator, k as isStatefulRecreateTargetSync, kn as uploadCfnTemplate, kt as s3BucketWebsiteUrl, l as replayRollback, ln as runDockerStreaming, lr as normalizeAwsError, lt as configBooleanRefusal, m as withResourceDeadline, mn as getDefaultStateBucketName, mr as markNonRetryable, mt as requireConfigObject, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as validateAssetBucketName, nr as ResourceUpdateNotSupportedError, nt as getAccountInfo, o as planFailedOps, on as formatDockerLoginError, ot as resolveExplicitPhysicalId, p as deleteSkipReason, pn as synthesisStatusMessage, pr as isThrottlingError, pt as requireConfigArray, q as ProviderRegistry, qn as LocalInvokeBuildError$1, qt as rewriteTemplateAssetReferences, r as DeployEngine, rn as validateContainerRepoName, rr as StackHasActiveImportsError, rt as refStateLookupFromResource, s as planRollback, sn as getDockerCmd, st as assertRegionMatch, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as readBootstrapMarkerBody, tr as ResourceTimeoutError, tt as cfnRefValueFromPhysicalId, u as updatePartialMessage, un as AssetManifestLoader, ur as withErrorHandling, ut as configStringRefusal, v as ATOMIC_FINAL_SNAPSHOT_TYPES, vn as resolveCaptureObservedState, vt as TEMPLATE_SOURCED_RULES, w as refusesFinalSnapshot, wn as warnDeprecatedNoPrefixCliFlag, wt as scrubResourceRecord, x as ccRoutedFinalSnapshotError, xn as resolveStateBucketWithDefaultAndSource, xt as isSingleDynamicReferenceToken, y as PRE_DELETE_SNAPSHOT_TYPES, yn as resolveSkipPrefix, yt as createSecretMasker, z as collectPublishedOutputNames, zn as getAwsClients, zt as rebuildClientForBucketRegion } from "./deploy-engine-C6gt7NcL.js";
|
|
3
3
|
import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as getCurrentStackName, h as withStackName, i as runStackBuffered, m as withSkipPrefix, n as getLogger, o as PATTERN_B_NAME_OPTIONS, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-zRrlbaQt.js";
|
|
4
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-Cq-oDB62.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, 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";
|
|
@@ -63407,7 +63407,7 @@ function isSecretBySpelling(token) {
|
|
|
63407
63407
|
* token is a reference NAME and carries no value, so it is always safe to show.
|
|
63408
63408
|
*/
|
|
63409
63409
|
function survivingDynamicReferences(value) {
|
|
63410
|
-
return value
|
|
63410
|
+
return dynamicReferenceTokens(value);
|
|
63411
63411
|
}
|
|
63412
63412
|
/**
|
|
63413
63413
|
* Record the dotted path of every leaf holding a `{{resolve:...}}` string.
|
|
@@ -63549,29 +63549,10 @@ function redactDriftValue(value, secrets, secretBearing) {
|
|
|
63549
63549
|
const redacted = redactSecretsForState(value, secrets);
|
|
63550
63550
|
if (!secretBearing) return redacted;
|
|
63551
63551
|
if (redacted === void 0 || redacted === null) return redacted;
|
|
63552
|
-
if (typeof redacted === "string" &&
|
|
63552
|
+
if (typeof redacted === "string" && isSingleDynamicReferenceToken(redacted)) return redacted;
|
|
63553
63553
|
return "***";
|
|
63554
63554
|
}
|
|
63555
63555
|
/**
|
|
63556
|
-
* Is the WHOLE string a single `{{resolve:...}}` token and nothing else?
|
|
63557
|
-
*
|
|
63558
|
-
* Byte-for-byte `secret-redaction.ts`'s `isSingleDynamicReferenceToken`,
|
|
63559
|
-
* including the `[^{}]*` character class. The difference from `[^}]+` is
|
|
63560
|
-
* narrow and worth stating correctly: it is a `{` INSIDE the token, e.g.
|
|
63561
|
-
* `{{resolve:ssm:/a{b}}`. (A previous version of this comment claimed
|
|
63562
|
-
* `{{resolve:a}}{{resolve:b}}` would pass under `[^}]+` — it would not, since
|
|
63563
|
-
* `[^}]+` cannot span the `}` in the middle either.) Matching the sibling
|
|
63564
|
-
* exactly is what matters here: this predicate decides whether a value may be
|
|
63565
|
-
* shown INSTEAD of `SECRET_MASK`, and `redactByPath` uses its copy to decide
|
|
63566
|
-
* whether a leaf is already an expression, so a disagreement would let one of
|
|
63567
|
-
* them treat as a token what the other treats as data. Copied rather than
|
|
63568
|
-
* imported because that helper is module-private and this file may not widen
|
|
63569
|
-
* that module's exports.
|
|
63570
|
-
*/
|
|
63571
|
-
function isWholeDynamicReference(value) {
|
|
63572
|
-
return /^\{\{resolve:[^{}]*\}\}$/.test(value);
|
|
63573
|
-
}
|
|
63574
|
-
/**
|
|
63575
63556
|
* Why `--accept` must not persist this drift, or `undefined` when it may.
|
|
63576
63557
|
*
|
|
63577
63558
|
* Shared by the WRITE (`runAccept`) and the PLAN (`printAcceptPlan`) so the two
|
|
@@ -64296,7 +64277,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
64296
64277
|
function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, secrets) {
|
|
64297
64278
|
const walk = (value, live) => {
|
|
64298
64279
|
if (typeof value === "string" && value.includes("{{resolve:")) {
|
|
64299
|
-
if (!
|
|
64280
|
+
if (!isSingleDynamicReferenceToken(value)) return value;
|
|
64300
64281
|
if (live === void 0) return value;
|
|
64301
64282
|
if (typeof live === "string" && live.length >= MIN_SECRET_NEEDLE_LENGTH && isSecretBySpelling(value)) secrets.set(live, value);
|
|
64302
64283
|
return live;
|
|
@@ -83750,7 +83731,7 @@ function createMigrateCommand() {
|
|
|
83750
83731
|
*/
|
|
83751
83732
|
function buildProgram() {
|
|
83752
83733
|
const program = new Command();
|
|
83753
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.284.
|
|
83734
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.284.20");
|
|
83754
83735
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
83755
83736
|
const { profile } = actionCommand.optsWithGlobals();
|
|
83756
83737
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|