@go-to-k/cdkd 0.291.2 → 0.291.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/{asg-provider-DPGr3o8N.js → asg-provider-CLqajoRp.js} +2 -2
- package/dist/{asg-provider-DPGr3o8N.js.map → asg-provider-CLqajoRp.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-C1w5fjW1.js → deploy-engine-5fdODHji.js} +3 -3
- package/dist/{deploy-engine-C1w5fjW1.js.map → deploy-engine-5fdODHji.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{program-DnmYd7BO.js → program-lTNPrurx.js} +107 -102
- package/dist/{program-DnmYd7BO.js.map → program-lTNPrurx.js.map} +1 -1
- package/dist/{version-5OUR3VB2.js → version-BKm47b9j.js} +2 -2
- package/dist/{version-5OUR3VB2.js.map → version-BKm47b9j.js.map} +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ba as normalizeAwsError, Cr as LockManager, Da as LockError, Ia as StateError, La as SynthesisError, Ra as formatError, Ti as Synthesizer, Wr as AssetPublisher, _a as AssetError, ar as TemplateParser, ct as IAMRoleProvider, da as clearBucketRegionCache, dt as ProviderRegistry, ea as AssemblyReader, fa as resolveBucketRegion, ga as setAwsClients, ha as resetAwsClients, ir as DagBuilder, ja as ProvisioningError, ma as getAwsClients, mn as DiffCalculator, pa as AwsClients, r as DeployEngine, va as CdkdError, wr as S3StateBackend, xa as DependencyError, xt as CloudControlProvider, ya as ConfigError, za as isCdkdError } from "./deploy-engine-
|
|
1
|
+
import { Ba as normalizeAwsError, Cr as LockManager, Da as LockError, Ia as StateError, La as SynthesisError, Ra as formatError, Ti as Synthesizer, Wr as AssetPublisher, _a as AssetError, ar as TemplateParser, ct as IAMRoleProvider, da as clearBucketRegionCache, dt as ProviderRegistry, ea as AssemblyReader, fa as resolveBucketRegion, ga as setAwsClients, ha as resetAwsClients, ir as DagBuilder, ja as ProvisioningError, ma as getAwsClients, mn as DiffCalculator, pa as AwsClients, r as DeployEngine, va as CdkdError, wr as S3StateBackend, xa as DependencyError, xt as CloudControlProvider, ya as ConfigError, za as isCdkdError } from "./deploy-engine-5fdODHji.js";
|
|
2
2
|
import { a as setLogger, n as getLogger, t as ConsoleLogger } from "./logger-GASr9bAF.js";
|
|
3
3
|
|
|
4
4
|
export { AssemblyReader, AssetError, AssetPublisher, AwsClients, CdkdError, CloudControlProvider, ConfigError, ConsoleLogger, DagBuilder, DependencyError, DeployEngine, DiffCalculator, IAMRoleProvider, LockError, LockManager, ProviderRegistry, ProvisioningError, S3StateBackend, StateError, SynthesisError, Synthesizer, TemplateParser, clearBucketRegionCache, formatError, getAwsClients, getLogger, isCdkdError, normalizeAwsError, resetAwsClients, resolveBucketRegion, setAwsClients, setLogger };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as yellow, $i as derivePartitionAndUrlSuffix, $n as safeStackName, $r as assertAssetBucketRegion, $t as requireConfigObject, A as createPreDeleteFinalSnapshot, Aa as PartialFailureError, Ai as resolveAutoAssetStorage, An as malformedOutputsRefusalMessage, Ar as formatLockExpiry, At as carriesDynamicReference, B as isStatefulRecreateTargetSync, Ba as normalizeAwsError, Bi as CFN_TEMPLATE_URL_LIMIT, Bn as refuseMalformedOrphansForDestroy, Br as isReadableBag, Bt as isSettledInstanceState, C as namesAnyDeclaredParameter, Ca as DynamicReferenceRegionAmbiguousError, Ci as AssetManifestLoader, Cn as isReadableResourceEntry, Cr as LockManager, Ct as slowCcOperationTimeoutMs, D as PRE_DELETE_SNAPSHOT_TYPES, Di as getDefaultStateBucketName, Dn as malformedOrphanRecordsWarning, Dr as buildForceUnlockCommand, Dt as disableInstanceApiTermination, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ea as LocalStartServiceError, Ei as synthesisStatusMessage, En as malformedLocalOutputsWarning, Er as UNREPRODUCIBLE_LOCK_CLAUSE, Et as deleteSkipReason, F as extractDeploymentEventError, Fa as StackTerminationProtectionError, Fi as resolveUseCdkBootstrapAssets, Fn as malformedResourcesWarning, Fr as hasReadableExportSet, Ft as isImpossibleEmptyStoredAttribute, G as toCfnInteger, Ga as isTransientServerError, Gi as injectiveKey, Gn as refuseMalformedResourcesForDestroy, Gr as stringifyValue, Gt as coerceCfnBoolean, H as WARM_THROUGHPUT_MEMBERS, Ha as isMarkedNonRetryable, Hi as findLargeInlineResources, Hn as refuseMalformedOutputsForDestroy, Hr as orphansCarriedFrom, Ht as normalizeAwsTagsToCfn, I as makeSiblingClaimReader, Ii as stateBucketExistenceConfirmed, In as malformedStateRefusalMessage, Ir as hasReasonlessBaselineRefusal, It as isNamelessDynamicReferenceError, J as bold, Ja as retryClassificationText, Ji as producerRecordKey, Jn as repairMalformedOutputsForReadOnly, Jr as createAssetRedirectResolver, Jt as configIntegerRefusal, K as toFiniteNumber, Ka as markNonRetryable, Ki as injectiveKeyPrefix, Kn as refuseMalformedState, Kr as WorkGraph, Kt as coerceCfnInteger, L as planOrphanAdoption, La as SynthesisError, Li as warnDeprecatedNoPrefixCliFlag, Ln as refuseDivergentRecordRegionForDestroy, Lr as hasUnverifiableParameterRefusal, Lt as isUnboundTemplateParameter, M as refusesFinalSnapshot, Ma as ResourceTimeoutError, Mi as resolveSkipPrefix, Mn as malformedRenderedContainersWarning, Mr as CUSTOM_RESOURCE_RESPONSE_PREFIX, Mt as cfnRefValueFromPhysicalId, N as unsupportedFinalSnapshotError, Na as ResourceUpdateNotSupportedError, Ni as resolveStateBucketWithDefault, Nn as malformedResourceEntriesWarning, Nr as DEFAULT_STATE_PREFIX, Nt as coerceParameterTypedValue, O as buildFinalSnapshotIdentifier, Oa as MalformedProducerRecordRefusalError, Oi as getLegacyStateBucketName, On as malformedOrphansRefusalMessage, Or as buildLockContentionMessage, Ot as isTerminationProtectionPropagationError, P as makeCanonicalizePropertiesFn, Pa as StackHasActiveImportsError, Pi as resolveStateBucketWithDefaultAndSource, Pn as malformedResourcePropertiesWarning, Pr as exportNamesCarriedFrom, Pt as getAccountInfo, Q as red, Qi as canonicalizeRegion, Qn as safeRegion, Qr as BOOTSTRAP_MARKER_PREFIX, Qt as requireConfigArray, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ri as ssmResolvedValueType, Rn as refuseMalformedNestedChildOutputs, Rr as importableOutputKeys, Rt as parameterTypeMayLoseSecretIdentity, S as computeParameterTaint, Sa as DeployCancelledError, Si as stripControlChars, Sn as hasReadableResources, Sr as scrubResourceRecord, St as isWaitAbandonedError, T as resourcesNamingDeclaredParameter, Ta as LocalInvokeBuildError$1, Ti as Synthesizer, Tn as malformedExportSourceWarning, Tr as rebuildClientForBucketRegion, Tt as deleteIndeterminateGuards, U as coerceWarmThroughput$1, Ua as isRetryableTransientError, Ui as uploadCfnTemplate, Un as refuseMalformedResourceEntries, Ur as shouldRetainResource, Ut as resolveExplicitPhysicalId, V as renderStatefulReason, Va as withErrorHandling, Vi as MIGRATE_TMP_PREFIX, Vn as refuseMalformedOutputs, Vr as orphansAfterRollback, Vt as WAFv2WebACLProvider, W as isWarmThroughputDecrease, Wa as isThrottlingError, Wi as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Wn as refuseMalformedResourcePropertiesForOrphan, Wr as AssetPublisher, Wt as assertRegionMatch, X as gray, Xa as safeStringify, Xi as expectedOwnerParam, Xn as repairMalformedResourcePropertiesForReadOnly, Xr as rewriteTemplateAssetReferences, Xt as readConfigString, Y as cyan, Ya as describeAwsFailure, Yi as decodeListingKey, Yn as repairMalformedResourceEntriesForReadOnly, Yr as loadPublishableAssetManifest, Yt as configStringRefusal, Z as green, Zi as PARTITION_TABLE, Zn as repairMalformedResourcesForReadOnly, Zr as AssetModeResolver, Zt as replayWarn, _ as bagHoldsSecretExpression, _i as partitionSensitiveEnv, _n as UNREADABLE_ORPHANS_CONTAINER_ROW, _r as maskSecretsInError, _t as endCommandInterruptScope, a as DeploymentEventsStore, aa as hasPlainPrototype, ai as validateAssetBucketName, an as s3BucketDomainName, ar as TemplateParser, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, ba as CrossAccountSecretRefusalError, bi as runDockerStreaming, bn as hasReadableOrphans, br as recoverMaskedOutput, bt as startInterruptWatch, c as replayFailedOperations, ca as absoluteAssemblyPathEscape, ci as buildDockerImage, cn as s3BucketWebsiteUrl, cr as STATE_SOURCED_READBACK_RULES, ct as IAMRoleProvider, d as updatePartialMessage, di as describeDockerCapturedOutput, dn as applyCallerIdentityCredentials, dr as createSecretMasker, dt as ProviderRegistry, ea as AssemblyReader, ei as ensureAssetStorage, en as requireConfigString, er as findActionableSilentDrops, et as collectDeclaredOutputNames, f as updatePartialReason, fa as resolveBucketRegion, fi as describeDockerExecFailure, fn as callerEnvCredentials, fr as dynamicReferenceTokens, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, ga as setAwsClients, gi as getDockerCmd, gn as STATE_RESOURCES_MALFORMED, gr as markSameGenerationBag, gt as beginCommandInterruptScope, h as IMPLICIT_DELETE_DEPENDENCIES, ha as resetAwsClients, hi as formatDockerLoginError, hn as INTRINSIC_KEYS, hr as isSingleDynamicReferenceToken, ht as maskerOrIdentity, i as DeploymentEventsReader, ia as hasOwnKey, ii as readBootstrapMarkerBody, in as s3BucketArn, ir as DagBuilder, it as secretBearing, j as isFinalSnapshotError, ja as ProvisioningError, ji as resolveCaptureObservedState, jn as malformedOutputsWarning, jr as shellQuote, jt as carriesFetchableDynamicReference, k as ccRoutedFinalSnapshotError, ka as NestedStackChildDirectDestroyError, ki as resolveApp, kn as malformedOrphansWarning, kr as forceQuitRecoveryClause, kt as IntrinsicFunctionResolver, l as replayRollback, la as renderAssemblyPathEscape, li as resolveDockerContextDirectory, ln as applyRoleArnIfSet, lr as TEMPLATE_SOURCED_RULES, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as getAwsClients, mi as dockerSpawnEnvWithSensitive, mn as DiffCalculator, mr as identityKeyFor, mt as maskDeep, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as processStackMessages, ni as isCrossRegionRedirect, nn as producerRegionsFromState, nr as describeTypeWithThrottleRetry, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as nullPrototypeRecord, oi as validateContainerRepoName, on as s3BucketDualStackDomainName, or as STATE_SOURCED_BASELINE_RULES, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as AwsClients, pi as describeDockerFailure, pn as envCredentialsAreAssumedRole, pr as errorCauseChain, pt as createMaskedRetryLogger, q as formatResourceLine, qa as markRedactedCause, qi as producerCoordinateKey, qn as repairMalformedOrphansForReadOnly, qr as buildAssetRedirectMap, qt as configBooleanRefusal, r as DeployEngine, ra as defineOwnKey, ri as parseBootstrapMarker, rn as withSharedDrainBudget, rr as withRetry, rt as isExportAliasCollision, s as planRollback, sa as ownValue, si as buildDenyExternalAccessPolicy, sn as s3BucketRegionalDomainName, sr as STATE_SOURCED_CROSS_GENERATION_RULES, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as failedStageNote, ti as getBootstrapMarkerKey, tn as classifyReplaySecretRegion, tr as findSilentDropProperties, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ua as resolveAssemblyPath, ui as warnManifestExecutable, un as AWS_CREDENTIAL_ENV_KEYS, ur as carriesSecretMask, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, va as CdkdError, vi as redactDockerArgvValues, vn as UNREADABLE_RESOURCES_MAP_ROW, vr as maskSecretsInText, vt as interruptWatchListenerCount, w as reachableDivergentParameters, wa as IntrinsicResolutionRefusalError, wi as getDockerImageBySourceHash, wn as malformedExportNamesWarning, wr as S3StateBackend, wt as UNSPECIFIED_SKIP_REASON, x as bindingSkippedOutputs, xi as escapeRegExp, xn as hasReadableOutputs, xr as redactSecretsForState, xt as CloudControlProvider, y as keptWholeReasonText, yi as runDockerForeground, yn as displayLogicalId, yr as recordMaskOnlyValue, yt as isInterruptedWaitError, z as isStatefulRecreateTargetForReplace, zi as CFN_TEMPLATE_BODY_LIMIT, zn as refuseMalformedOrphans, zr as importableOutputs, zt as refStateLookupFromResource } from "./deploy-engine-
|
|
1
|
+
import { $ as yellow, $i as derivePartitionAndUrlSuffix, $n as safeStackName, $r as assertAssetBucketRegion, $t as requireConfigObject, A as createPreDeleteFinalSnapshot, Aa as PartialFailureError, Ai as resolveAutoAssetStorage, An as malformedOutputsRefusalMessage, Ar as formatLockExpiry, At as carriesDynamicReference, B as isStatefulRecreateTargetSync, Ba as normalizeAwsError, Bi as CFN_TEMPLATE_URL_LIMIT, Bn as refuseMalformedOrphansForDestroy, Br as isReadableBag, Bt as isSettledInstanceState, C as namesAnyDeclaredParameter, Ca as DynamicReferenceRegionAmbiguousError, Ci as AssetManifestLoader, Cn as isReadableResourceEntry, Cr as LockManager, Ct as slowCcOperationTimeoutMs, D as PRE_DELETE_SNAPSHOT_TYPES, Di as getDefaultStateBucketName, Dn as malformedOrphanRecordsWarning, Dr as buildForceUnlockCommand, Dt as disableInstanceApiTermination, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ea as LocalStartServiceError, Ei as synthesisStatusMessage, En as malformedLocalOutputsWarning, Er as UNREPRODUCIBLE_LOCK_CLAUSE, Et as deleteSkipReason, F as extractDeploymentEventError, Fa as StackTerminationProtectionError, Fi as resolveUseCdkBootstrapAssets, Fn as malformedResourcesWarning, Fr as hasReadableExportSet, Ft as isImpossibleEmptyStoredAttribute, G as toCfnInteger, Ga as isTransientServerError, Gi as injectiveKey, Gn as refuseMalformedResourcesForDestroy, Gr as stringifyValue, Gt as coerceCfnBoolean, H as WARM_THROUGHPUT_MEMBERS, Ha as isMarkedNonRetryable, Hi as findLargeInlineResources, Hn as refuseMalformedOutputsForDestroy, Hr as orphansCarriedFrom, Ht as normalizeAwsTagsToCfn, I as makeSiblingClaimReader, Ii as stateBucketExistenceConfirmed, In as malformedStateRefusalMessage, Ir as hasReasonlessBaselineRefusal, It as isNamelessDynamicReferenceError, J as bold, Ja as retryClassificationText, Ji as producerRecordKey, Jn as repairMalformedOutputsForReadOnly, Jr as createAssetRedirectResolver, Jt as configIntegerRefusal, K as toFiniteNumber, Ka as markNonRetryable, Ki as injectiveKeyPrefix, Kn as refuseMalformedState, Kr as WorkGraph, Kt as coerceCfnInteger, L as planOrphanAdoption, La as SynthesisError, Li as warnDeprecatedNoPrefixCliFlag, Ln as refuseDivergentRecordRegionForDestroy, Lr as hasUnverifiableParameterRefusal, Lt as isUnboundTemplateParameter, M as refusesFinalSnapshot, Ma as ResourceTimeoutError, Mi as resolveSkipPrefix, Mn as malformedRenderedContainersWarning, Mr as CUSTOM_RESOURCE_RESPONSE_PREFIX, Mt as cfnRefValueFromPhysicalId, N as unsupportedFinalSnapshotError, Na as ResourceUpdateNotSupportedError, Ni as resolveStateBucketWithDefault, Nn as malformedResourceEntriesWarning, Nr as DEFAULT_STATE_PREFIX, Nt as coerceParameterTypedValue, O as buildFinalSnapshotIdentifier, Oa as MalformedProducerRecordRefusalError, Oi as getLegacyStateBucketName, On as malformedOrphansRefusalMessage, Or as buildLockContentionMessage, Ot as isTerminationProtectionPropagationError, P as makeCanonicalizePropertiesFn, Pa as StackHasActiveImportsError, Pi as resolveStateBucketWithDefaultAndSource, Pn as malformedResourcePropertiesWarning, Pr as exportNamesCarriedFrom, Pt as getAccountInfo, Q as red, Qi as canonicalizeRegion, Qn as safeRegion, Qr as BOOTSTRAP_MARKER_PREFIX, Qt as requireConfigArray, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ri as ssmResolvedValueType, Rn as refuseMalformedNestedChildOutputs, Rr as importableOutputKeys, Rt as parameterTypeMayLoseSecretIdentity, S as computeParameterTaint, Sa as DeployCancelledError, Si as stripControlChars, Sn as hasReadableResources, Sr as scrubResourceRecord, St as isWaitAbandonedError, T as resourcesNamingDeclaredParameter, Ta as LocalInvokeBuildError$1, Ti as Synthesizer, Tn as malformedExportSourceWarning, Tr as rebuildClientForBucketRegion, Tt as deleteIndeterminateGuards, U as coerceWarmThroughput$1, Ua as isRetryableTransientError, Ui as uploadCfnTemplate, Un as refuseMalformedResourceEntries, Ur as shouldRetainResource, Ut as resolveExplicitPhysicalId, V as renderStatefulReason, Va as withErrorHandling, Vi as MIGRATE_TMP_PREFIX, Vn as refuseMalformedOutputs, Vr as orphansAfterRollback, Vt as WAFv2WebACLProvider, W as isWarmThroughputDecrease, Wa as isThrottlingError, Wi as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Wn as refuseMalformedResourcePropertiesForOrphan, Wr as AssetPublisher, Wt as assertRegionMatch, X as gray, Xa as safeStringify, Xi as expectedOwnerParam, Xn as repairMalformedResourcePropertiesForReadOnly, Xr as rewriteTemplateAssetReferences, Xt as readConfigString, Y as cyan, Ya as describeAwsFailure, Yi as decodeListingKey, Yn as repairMalformedResourceEntriesForReadOnly, Yr as loadPublishableAssetManifest, Yt as configStringRefusal, Z as green, Zi as PARTITION_TABLE, Zn as repairMalformedResourcesForReadOnly, Zr as AssetModeResolver, Zt as replayWarn, _ as bagHoldsSecretExpression, _i as partitionSensitiveEnv, _n as UNREADABLE_ORPHANS_CONTAINER_ROW, _r as maskSecretsInError, _t as endCommandInterruptScope, a as DeploymentEventsStore, aa as hasPlainPrototype, ai as validateAssetBucketName, an as s3BucketDomainName, ar as TemplateParser, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, ba as CrossAccountSecretRefusalError, bi as runDockerStreaming, bn as hasReadableOrphans, br as recoverMaskedOutput, bt as startInterruptWatch, c as replayFailedOperations, ca as absoluteAssemblyPathEscape, ci as buildDockerImage, cn as s3BucketWebsiteUrl, cr as STATE_SOURCED_READBACK_RULES, ct as IAMRoleProvider, d as updatePartialMessage, di as describeDockerCapturedOutput, dn as applyCallerIdentityCredentials, dr as createSecretMasker, dt as ProviderRegistry, ea as AssemblyReader, ei as ensureAssetStorage, en as requireConfigString, er as findActionableSilentDrops, et as collectDeclaredOutputNames, f as updatePartialReason, fa as resolveBucketRegion, fi as describeDockerExecFailure, fn as callerEnvCredentials, fr as dynamicReferenceTokens, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, ga as setAwsClients, gi as getDockerCmd, gn as STATE_RESOURCES_MALFORMED, gr as markSameGenerationBag, gt as beginCommandInterruptScope, h as IMPLICIT_DELETE_DEPENDENCIES, ha as resetAwsClients, hi as formatDockerLoginError, hn as INTRINSIC_KEYS, hr as isSingleDynamicReferenceToken, ht as maskerOrIdentity, i as DeploymentEventsReader, ia as hasOwnKey, ii as readBootstrapMarkerBody, in as s3BucketArn, ir as DagBuilder, it as secretBearing, j as isFinalSnapshotError, ja as ProvisioningError, ji as resolveCaptureObservedState, jn as malformedOutputsWarning, jr as shellQuote, jt as carriesFetchableDynamicReference, k as ccRoutedFinalSnapshotError, ka as NestedStackChildDirectDestroyError, ki as resolveApp, kn as malformedOrphansWarning, kr as forceQuitRecoveryClause, kt as IntrinsicFunctionResolver, l as replayRollback, la as renderAssemblyPathEscape, li as resolveDockerContextDirectory, ln as applyRoleArnIfSet, lr as TEMPLATE_SOURCED_RULES, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as getAwsClients, mi as dockerSpawnEnvWithSensitive, mn as DiffCalculator, mr as identityKeyFor, mt as maskDeep, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as processStackMessages, ni as isCrossRegionRedirect, nn as producerRegionsFromState, nr as describeTypeWithThrottleRetry, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as nullPrototypeRecord, oi as validateContainerRepoName, on as s3BucketDualStackDomainName, or as STATE_SOURCED_BASELINE_RULES, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as AwsClients, pi as describeDockerFailure, pn as envCredentialsAreAssumedRole, pr as errorCauseChain, pt as createMaskedRetryLogger, q as formatResourceLine, qa as markRedactedCause, qi as producerCoordinateKey, qn as repairMalformedOrphansForReadOnly, qr as buildAssetRedirectMap, qt as configBooleanRefusal, r as DeployEngine, ra as defineOwnKey, ri as parseBootstrapMarker, rn as withSharedDrainBudget, rr as withRetry, rt as isExportAliasCollision, s as planRollback, sa as ownValue, si as buildDenyExternalAccessPolicy, sn as s3BucketRegionalDomainName, sr as STATE_SOURCED_CROSS_GENERATION_RULES, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as failedStageNote, ti as getBootstrapMarkerKey, tn as classifyReplaySecretRegion, tr as findSilentDropProperties, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ua as resolveAssemblyPath, ui as warnManifestExecutable, un as AWS_CREDENTIAL_ENV_KEYS, ur as carriesSecretMask, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, va as CdkdError, vi as redactDockerArgvValues, vn as UNREADABLE_RESOURCES_MAP_ROW, vr as maskSecretsInText, vt as interruptWatchListenerCount, w as reachableDivergentParameters, wa as IntrinsicResolutionRefusalError, wi as getDockerImageBySourceHash, wn as malformedExportNamesWarning, wr as S3StateBackend, wt as UNSPECIFIED_SKIP_REASON, x as bindingSkippedOutputs, xi as escapeRegExp, xn as hasReadableOutputs, xr as redactSecretsForState, xt as CloudControlProvider, y as keptWholeReasonText, yi as runDockerForeground, yn as displayLogicalId, yr as recordMaskOnlyValue, yt as isInterruptedWaitError, z as isStatefulRecreateTargetForReplace, zi as CFN_TEMPLATE_BODY_LIMIT, zn as refuseMalformedOrphans, zr as importableOutputs, zt as refStateLookupFromResource } from "./deploy-engine-5fdODHji.js";
|
|
2
2
|
import { C as displayAwsMessage, D as truncateCodePoints, E as isPasteableIdent, S as UNRENDERABLE, T as displaySafe, _ as withSkipPrefix, b as SECRET_REF_MAX_CODE_POINTS, c as PATTERN_B_NAME_OPTIONS, f as explicitNamePropertyFor, h as getCurrentStackName, i as reserveStdoutForPayload, l as PATTERN_B_NAME_PROPERTIES, m as generateResourceNameWithFallback, n as getLogger, o as runStackBuffered, p as generateResourceName, s as getLiveRenderer, u as PATTERN_B_RESOURCE_TYPES, v as withStackName, w as displayIdent, x as STACK_REF_MAX_CODE_POINTS } from "./logger-GASr9bAF.js";
|
|
3
3
|
import { n as awsClientDefaults } from "./aws-client-defaults-BoIxyCir.js";
|
|
4
|
-
import { t as getCdkdVersion } from "./version-
|
|
5
|
-
import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as getCdkdVersion } from "./version-BKm47b9j.js";
|
|
5
|
+
import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-CLqajoRp.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
8
8
|
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, NotFound, 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";
|
|
@@ -2046,6 +2046,99 @@ function createBootstrapCommand() {
|
|
|
2046
2046
|
return cmd;
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
2049
|
+
//#endregion
|
|
2050
|
+
//#region src/cli/stack-matcher.ts
|
|
2051
|
+
/**
|
|
2052
|
+
* Match stacks against user-supplied name patterns.
|
|
2053
|
+
*
|
|
2054
|
+
* Patterns are evaluated against two fields:
|
|
2055
|
+
*
|
|
2056
|
+
* - `stackName` — the physical CloudFormation stack name (e.g. `MyStage-MyStack`)
|
|
2057
|
+
* - `displayName` — the hierarchical CDK path (e.g. `MyStage/MyStack`); falls
|
|
2058
|
+
* back to `stackName` when the assembly does not carry one
|
|
2059
|
+
*
|
|
2060
|
+
* Routing is decided by whether the pattern contains `/`:
|
|
2061
|
+
*
|
|
2062
|
+
* - Pattern contains `/` → matched only against `displayName` (a `/` cannot
|
|
2063
|
+
* appear in a CloudFormation stack name, so this is unambiguous)
|
|
2064
|
+
* - Pattern contains no `/` → matched only against `stackName`
|
|
2065
|
+
*
|
|
2066
|
+
* Wildcards (`*`) are supported in either case. Results are de-duplicated by
|
|
2067
|
+
* `stackName`, so a pattern that incidentally matches the same stack via both
|
|
2068
|
+
* fields is returned only once.
|
|
2069
|
+
*/
|
|
2070
|
+
function matchStacks(stacks, patterns) {
|
|
2071
|
+
if (patterns.length === 0) return [];
|
|
2072
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2073
|
+
const result = [];
|
|
2074
|
+
for (const stack of stacks) if (patterns.some((pattern) => stackMatchesPattern(stack, pattern)) && !seen.has(stack.stackName)) {
|
|
2075
|
+
seen.add(stack.stackName);
|
|
2076
|
+
result.push(stack);
|
|
2077
|
+
}
|
|
2078
|
+
return result;
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Render a stack for diagnostic messages. When `displayName` differs from the
|
|
2082
|
+
* physical name, both are shown so the user can see which forms are valid as
|
|
2083
|
+
* patterns (e.g. `MyStage-Api (MyStage/Api)`).
|
|
2084
|
+
*
|
|
2085
|
+
* Both names come from the Cloud Assembly, and every one of this helper's
|
|
2086
|
+
* render sites interpolates the result into PROSE cdkd authors — `Available:
|
|
2087
|
+
* ...`, `Multiple stacks found: ...`, `Publishing assets for stack: ...`, the
|
|
2088
|
+
* last of which prints on a normal run rather than only on an error. So they
|
|
2089
|
+
* go through `displayIdent` ([#3277](https://github.com/go-to-k/cdkd/issues/3277)):
|
|
2090
|
+
* a `stackName` carrying `ESC [ 2 K` plus a carriage return ERASES cdkd's own
|
|
2091
|
+
* line and a newline forges a second one, and a value carrying quotes and
|
|
2092
|
+
* periods writes a cdkd-sounding clause.
|
|
2093
|
+
*
|
|
2094
|
+
* It is the identity on every legitimate `stackName` — a CloudFormation stack
|
|
2095
|
+
* name is `[A-Za-z0-9-]`, inside `PLAIN_IDENT`. It is NOT the identity on
|
|
2096
|
+
* every legitimate `displayName`: CDK sets that to the construct path, and
|
|
2097
|
+
* `constructs` rewrites only `/` in an id, so `new Stack(app, 'My Stack')` is
|
|
2098
|
+
* legal and prints `MyStack ("My Stack")`. Those quotes are not part of any
|
|
2099
|
+
* pattern, in a clause whose job is to say which forms ARE valid as patterns —
|
|
2100
|
+
* accepted, because the alternative is `displaySafe`, which passes the quotes
|
|
2101
|
+
* and spaces a crafted value needs, and the pattern still matches the RAW
|
|
2102
|
+
* name either way (`matchStacks` never sees this rendering).
|
|
2103
|
+
*
|
|
2104
|
+
* Sanitizing HERE rather than at the call sites is what keeps the rule whole:
|
|
2105
|
+
* the sites include `scrub.ts` and `destroy.ts`, which this change does not
|
|
2106
|
+
* touch, and a rule widened by hand is how the class survived being closed
|
|
2107
|
+
* twice already.
|
|
2108
|
+
*/
|
|
2109
|
+
function describeStack(stack) {
|
|
2110
|
+
const name = displayIdent(stack.stackName, { maxCodePoints: STACK_REF_MAX_CODE_POINTS });
|
|
2111
|
+
if (stack.displayName && stack.displayName !== stack.stackName) return `${name} (${displayIdent(stack.displayName, { maxCodePoints: STACK_REF_MAX_CODE_POINTS })})`;
|
|
2112
|
+
return name;
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* The message a command raises when SELECTION came back empty — shared by
|
|
2116
|
+
* `deploy`, `diff`, `list` and `publish-assets`, which all built the identical
|
|
2117
|
+
* string by hand.
|
|
2118
|
+
*
|
|
2119
|
+
* `assembly` is required AND so is its `failedStages` member, which is the
|
|
2120
|
+
* point: a Stage that failed to load dropped every stack under it from
|
|
2121
|
+
* `available`, so "no stacks matching" names the wrong problem unless the
|
|
2122
|
+
* failure is reported with it (issue
|
|
2123
|
+
* [#3482](https://github.com/go-to-k/cdkd/issues/3482)). A REQUIRED member,
|
|
2124
|
+
* not an optional one — `{ failedStages?: ... }` accepts `{}`, so it fences
|
|
2125
|
+
* the argument while leaving the content unfenced, which is the wiring hole
|
|
2126
|
+
* this signature exists to close. `SynthesisResult.failedStages` is required
|
|
2127
|
+
* for the same reason, so passing the result satisfies it and an ad-hoc `{}`
|
|
2128
|
+
* does not.
|
|
2129
|
+
*
|
|
2130
|
+
* What it does NOT fence: a caller passing a STALE or empty list. That is
|
|
2131
|
+
* behaviour, not shape, and it is covered by a wiring test per command.
|
|
2132
|
+
*/
|
|
2133
|
+
function renderNoStackMatch(patterns, available, assembly) {
|
|
2134
|
+
return (patterns.length > 0 ? `No stacks matching ${patterns.join(", ")} found in assembly. ` + (available.length > 0 ? `Available: ${available.map(describeStack).join(", ")}` : "The assembly has no stacks") : "No stacks found in assembly") + failedStageNote(patterns, assembly.failedStages);
|
|
2135
|
+
}
|
|
2136
|
+
function stackMatchesPattern(stack, pattern) {
|
|
2137
|
+
const target = pattern.includes("/") ? stack.displayName ?? stack.stackName : stack.stackName;
|
|
2138
|
+
if (pattern.includes("*")) return new RegExp("^" + pattern.replace(/\*/g, ".*") + "$").test(target);
|
|
2139
|
+
return target === pattern;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2049
2142
|
//#endregion
|
|
2050
2143
|
//#region src/utils/yaml.ts
|
|
2051
2144
|
/**
|
|
@@ -2293,7 +2386,7 @@ function resolveVerboseTemplatePath(outputDir, stackName) {
|
|
|
2293
2386
|
* (go-to-k/cdkd#3489): the guard has its own cases, but reverting the CALL
|
|
2294
2387
|
* SITE left the suite green.
|
|
2295
2388
|
*/
|
|
2296
|
-
async function synthCommand(options) {
|
|
2389
|
+
async function synthCommand(stackPatterns, options) {
|
|
2297
2390
|
const logger = getLogger();
|
|
2298
2391
|
if (options.verbose) logger.setLevel("debug");
|
|
2299
2392
|
reserveStdoutForPayload();
|
|
@@ -2319,7 +2412,11 @@ async function synthCommand(options) {
|
|
|
2319
2412
|
...options.profile && { profile: options.profile },
|
|
2320
2413
|
...Object.keys(context).length > 0 && { context }
|
|
2321
2414
|
};
|
|
2322
|
-
const
|
|
2415
|
+
const result = await synthesizer.synthesize(synthOptions);
|
|
2416
|
+
const { stacks: allStacks, assemblyDir } = result;
|
|
2417
|
+
const selected = stackPatterns.length > 0 ? matchStacks(allStacks, stackPatterns) : allStacks;
|
|
2418
|
+
if (selected.length === 0) throw new Error(renderNoStackMatch(stackPatterns, allStacks, result));
|
|
2419
|
+
const stacks = selected;
|
|
2323
2420
|
processStackMessages(stacks, logger, {
|
|
2324
2421
|
strict: options.strict === true,
|
|
2325
2422
|
ignoreErrors: options.ignoreErrors === true
|
|
@@ -2327,8 +2424,9 @@ async function synthCommand(options) {
|
|
|
2327
2424
|
if (stacks.length === 1) {
|
|
2328
2425
|
const template = stacks[0].template;
|
|
2329
2426
|
process.stdout.write(toYaml(template));
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2427
|
+
} else logger.info(`Supply a stack id (${stacks.map(describeStack).join(", ")}) to display its template.`);
|
|
2428
|
+
const found = stacks.length === allStacks.length ? `Found ${stacks.length} stack(s):` : `Found ${stacks.length} of ${allStacks.length} stack(s):`;
|
|
2429
|
+
logger.info(`\n${green("✓")} ${bold("Synthesis complete!")} ${found}`);
|
|
2332
2430
|
for (const stack of stacks) {
|
|
2333
2431
|
const resourceCount = countDeployableResources(stack.template);
|
|
2334
2432
|
const outputCount = Object.keys(stack.template.Outputs ?? {}).length;
|
|
@@ -2348,7 +2446,7 @@ async function synthCommand(options) {
|
|
|
2348
2446
|
* Create synth command
|
|
2349
2447
|
*/
|
|
2350
2448
|
function createSynthCommand() {
|
|
2351
|
-
const cmd = new Command("synth").description("Synthesize CDK app to CloudFormation template").action(withErrorHandling(synthCommand));
|
|
2449
|
+
const cmd = new Command("synth").description("Synthesize CDK app to CloudFormation template").argument("[stacks...]", "Stack name(s) whose template to print. Accepts physical CloudFormation names (e.g. 'MyStage-Api') or CDK display paths (e.g. 'MyStage/Api'). Supports wildcards (e.g. 'MyStage/*'). Every stack is synthesized either way -- the selection decides what reaches stdout.").action(withErrorHandling(synthCommand));
|
|
2352
2450
|
[
|
|
2353
2451
|
...commonOptions,
|
|
2354
2452
|
...appOptions,
|
|
@@ -2359,99 +2457,6 @@ function createSynthCommand() {
|
|
|
2359
2457
|
return cmd;
|
|
2360
2458
|
}
|
|
2361
2459
|
|
|
2362
|
-
//#endregion
|
|
2363
|
-
//#region src/cli/stack-matcher.ts
|
|
2364
|
-
/**
|
|
2365
|
-
* Match stacks against user-supplied name patterns.
|
|
2366
|
-
*
|
|
2367
|
-
* Patterns are evaluated against two fields:
|
|
2368
|
-
*
|
|
2369
|
-
* - `stackName` — the physical CloudFormation stack name (e.g. `MyStage-MyStack`)
|
|
2370
|
-
* - `displayName` — the hierarchical CDK path (e.g. `MyStage/MyStack`); falls
|
|
2371
|
-
* back to `stackName` when the assembly does not carry one
|
|
2372
|
-
*
|
|
2373
|
-
* Routing is decided by whether the pattern contains `/`:
|
|
2374
|
-
*
|
|
2375
|
-
* - Pattern contains `/` → matched only against `displayName` (a `/` cannot
|
|
2376
|
-
* appear in a CloudFormation stack name, so this is unambiguous)
|
|
2377
|
-
* - Pattern contains no `/` → matched only against `stackName`
|
|
2378
|
-
*
|
|
2379
|
-
* Wildcards (`*`) are supported in either case. Results are de-duplicated by
|
|
2380
|
-
* `stackName`, so a pattern that incidentally matches the same stack via both
|
|
2381
|
-
* fields is returned only once.
|
|
2382
|
-
*/
|
|
2383
|
-
function matchStacks(stacks, patterns) {
|
|
2384
|
-
if (patterns.length === 0) return [];
|
|
2385
|
-
const seen = /* @__PURE__ */ new Set();
|
|
2386
|
-
const result = [];
|
|
2387
|
-
for (const stack of stacks) if (patterns.some((pattern) => stackMatchesPattern(stack, pattern)) && !seen.has(stack.stackName)) {
|
|
2388
|
-
seen.add(stack.stackName);
|
|
2389
|
-
result.push(stack);
|
|
2390
|
-
}
|
|
2391
|
-
return result;
|
|
2392
|
-
}
|
|
2393
|
-
/**
|
|
2394
|
-
* Render a stack for diagnostic messages. When `displayName` differs from the
|
|
2395
|
-
* physical name, both are shown so the user can see which forms are valid as
|
|
2396
|
-
* patterns (e.g. `MyStage-Api (MyStage/Api)`).
|
|
2397
|
-
*
|
|
2398
|
-
* Both names come from the Cloud Assembly, and every one of this helper's
|
|
2399
|
-
* render sites interpolates the result into PROSE cdkd authors — `Available:
|
|
2400
|
-
* ...`, `Multiple stacks found: ...`, `Publishing assets for stack: ...`, the
|
|
2401
|
-
* last of which prints on a normal run rather than only on an error. So they
|
|
2402
|
-
* go through `displayIdent` ([#3277](https://github.com/go-to-k/cdkd/issues/3277)):
|
|
2403
|
-
* a `stackName` carrying `ESC [ 2 K` plus a carriage return ERASES cdkd's own
|
|
2404
|
-
* line and a newline forges a second one, and a value carrying quotes and
|
|
2405
|
-
* periods writes a cdkd-sounding clause.
|
|
2406
|
-
*
|
|
2407
|
-
* It is the identity on every legitimate `stackName` — a CloudFormation stack
|
|
2408
|
-
* name is `[A-Za-z0-9-]`, inside `PLAIN_IDENT`. It is NOT the identity on
|
|
2409
|
-
* every legitimate `displayName`: CDK sets that to the construct path, and
|
|
2410
|
-
* `constructs` rewrites only `/` in an id, so `new Stack(app, 'My Stack')` is
|
|
2411
|
-
* legal and prints `MyStack ("My Stack")`. Those quotes are not part of any
|
|
2412
|
-
* pattern, in a clause whose job is to say which forms ARE valid as patterns —
|
|
2413
|
-
* accepted, because the alternative is `displaySafe`, which passes the quotes
|
|
2414
|
-
* and spaces a crafted value needs, and the pattern still matches the RAW
|
|
2415
|
-
* name either way (`matchStacks` never sees this rendering).
|
|
2416
|
-
*
|
|
2417
|
-
* Sanitizing HERE rather than at the call sites is what keeps the rule whole:
|
|
2418
|
-
* the sites include `scrub.ts` and `destroy.ts`, which this change does not
|
|
2419
|
-
* touch, and a rule widened by hand is how the class survived being closed
|
|
2420
|
-
* twice already.
|
|
2421
|
-
*/
|
|
2422
|
-
function describeStack(stack) {
|
|
2423
|
-
const name = displayIdent(stack.stackName, { maxCodePoints: STACK_REF_MAX_CODE_POINTS });
|
|
2424
|
-
if (stack.displayName && stack.displayName !== stack.stackName) return `${name} (${displayIdent(stack.displayName, { maxCodePoints: STACK_REF_MAX_CODE_POINTS })})`;
|
|
2425
|
-
return name;
|
|
2426
|
-
}
|
|
2427
|
-
/**
|
|
2428
|
-
* The message a command raises when SELECTION came back empty — shared by
|
|
2429
|
-
* `deploy`, `diff`, `list` and `publish-assets`, which all built the identical
|
|
2430
|
-
* string by hand.
|
|
2431
|
-
*
|
|
2432
|
-
* `assembly` is required AND so is its `failedStages` member, which is the
|
|
2433
|
-
* point: a Stage that failed to load dropped every stack under it from
|
|
2434
|
-
* `available`, so "no stacks matching" names the wrong problem unless the
|
|
2435
|
-
* failure is reported with it (issue
|
|
2436
|
-
* [#3482](https://github.com/go-to-k/cdkd/issues/3482)). A REQUIRED member,
|
|
2437
|
-
* not an optional one — `{ failedStages?: ... }` accepts `{}`, so it fences
|
|
2438
|
-
* the argument while leaving the content unfenced, which is the wiring hole
|
|
2439
|
-
* this signature exists to close. `SynthesisResult.failedStages` is required
|
|
2440
|
-
* for the same reason, so passing the result satisfies it and an ad-hoc `{}`
|
|
2441
|
-
* does not.
|
|
2442
|
-
*
|
|
2443
|
-
* What it does NOT fence: a caller passing a STALE or empty list. That is
|
|
2444
|
-
* behaviour, not shape, and it is covered by a wiring test per command.
|
|
2445
|
-
*/
|
|
2446
|
-
function renderNoStackMatch(patterns, available, assembly) {
|
|
2447
|
-
return (patterns.length > 0 ? `No stacks matching ${patterns.join(", ")} found in assembly. ` + (available.length > 0 ? `Available: ${available.map(describeStack).join(", ")}` : "The assembly has no stacks") : "No stacks found in assembly") + failedStageNote(patterns, assembly.failedStages);
|
|
2448
|
-
}
|
|
2449
|
-
function stackMatchesPattern(stack, pattern) {
|
|
2450
|
-
const target = pattern.includes("/") ? stack.displayName ?? stack.stackName : stack.stackName;
|
|
2451
|
-
if (pattern.includes("*")) return new RegExp("^" + pattern.replace(/\*/g, ".*") + "$").test(target);
|
|
2452
|
-
return target === pattern;
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
2460
|
//#endregion
|
|
2456
2461
|
//#region src/cli/commands/list.ts
|
|
2457
2462
|
/**
|
|
@@ -97764,4 +97769,4 @@ function buildProgram() {
|
|
|
97764
97769
|
|
|
97765
97770
|
//#endregion
|
|
97766
97771
|
export { buildProgram };
|
|
97767
|
-
//# sourceMappingURL=program-
|
|
97772
|
+
//# sourceMappingURL=program-lTNPrurx.js.map
|