@go-to-k/cdkd 0.291.22 → 0.291.24

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/state.ts","../src/deployment/secret-redaction.ts","../src/provisioning/region-check.ts","../src/types/resource.ts","../src/types/config.ts","../src/utils/logger.ts","../src/utils/error-handler.ts","../src/utils/aws-clients.ts","../src/utils/aws-region-resolver.ts","../src/types/assembly.ts","../src/synthesis/stack-messages.ts","../src/synthesis/failed-stages.ts","../src/synthesis/assembly-reader.ts","../src/cli/upload-cfn-template.ts","../src/synthesis/macro-expander.ts","../src/synthesis/synthesizer.ts","../src/types/deployment-events.ts","../src/provisioning/cloud-control-provider.ts","../src/provisioning/provider-registry.ts","../src/provisioning/final-snapshot.ts","../src/deployment/rollback-executor.ts","../src/types/rollback-journal.ts","../src/state/s3-noncurrent-version-purge.ts","../src/state/s3-state-backend.ts","../src/assets/asset-redirect.ts","../src/deployment/work-graph.ts","../src/assets/asset-publisher.ts","../src/state/lock-manager.ts","../src/analyzer/template-parser.ts","../src/analyzer/dag-builder.ts","../src/analyzer/diff-calculator.ts","../src/provisioning/providers/iam-role-provider.ts","../src/state/export-index-store.ts","../src/deployment/deploy-engine.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAiJY;UAyBK;EAEf;EAMA;EAYA;;UAsBe;EAUf;EAMA;EAQA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;EAUT,UAAU;EAoBV,cAAc;EAqBd;EA0EA,iBAAiB;EAgBjB;EAcA;EAYA;EAwCA,UAAU;EAGV;;UASe;EAEf;EAGA;EAGA,OAAO;;UAMQ;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EA0CA;EA6DA;EAiEA;;UA0Ce;EAEf;EAGA;EAG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YA;UAQA;UASA;UAkCA;UAcA;UAUA;UAaA;UAUA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UAkEnE;UAuJA;UA2EA;UAiDA;UAiBA;UAyGA;iBA6GO;UA6PP;UAuFA;UA4EA;UA8BA;UAYM;UAmEN;UAsBA;UAUA;UA0IA;UAiDA;UAmCA;UAwBA;UA2BA;UAkCM;UAwGA;UA0GN;UAiDA;UA2IM;UA+hCA;UAqpBA;UA8FA;UA4DA;UAgCA;UA+BA;UA4CN;UAoCM;UA4CA;UAoVN;UAwBA;UAWA;UAkDA;UAmBA;UAwBA;UAyCM;UA0CA;UAgMA;UAiqEN;UA+CA;UA4DA;UA6FA;UA0IA;UAgCA;UAOA;UAoCA;UAgFA;UA4BM;UA6BN;UAiCA;UAmBA;UAgEA;UAiEM;UAkeN"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/state.ts","../src/deployment/secret-redaction.ts","../src/provisioning/region-check.ts","../src/types/resource.ts","../src/types/config.ts","../src/utils/logger.ts","../src/utils/error-handler.ts","../src/utils/aws-clients.ts","../src/utils/aws-region-resolver.ts","../src/types/assembly.ts","../src/synthesis/stack-messages.ts","../src/synthesis/failed-stages.ts","../src/synthesis/assembly-reader.ts","../src/cli/upload-cfn-template.ts","../src/synthesis/macro-expander.ts","../src/synthesis/synthesizer.ts","../src/types/deployment-events.ts","../src/provisioning/cloud-control-provider.ts","../src/provisioning/provider-registry.ts","../src/provisioning/final-snapshot.ts","../src/deployment/rollback-executor.ts","../src/types/rollback-journal.ts","../src/state/s3-noncurrent-version-purge.ts","../src/state/s3-state-backend.ts","../src/assets/asset-redirect.ts","../src/deployment/work-graph.ts","../src/assets/asset-publisher.ts","../src/state/lock-manager.ts","../src/analyzer/template-parser.ts","../src/analyzer/dag-builder.ts","../src/analyzer/diff-calculator.ts","../src/provisioning/providers/iam-role-provider.ts","../src/state/export-index-store.ts","../src/deployment/deploy-engine.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAiJY;UAyBK;EAEf;EAMA;EAYA;;UAsBe;EAUf;EAMA;EAQA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;EAUT,UAAU;EAoBV,cAAc;EAqBd;EA0EA,iBAAiB;EAgBjB;EAcA;EAYA;EAwCA,UAAU;EAGV;;UASe;EAEf;EAGA;EAGA,OAAO;;UAMQ;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EA0CA;EA6DA;EAiEA;;UA0Ce;EAEf;EAGA;EAGA;EAGA;;KAMU;UAKK;EAEf;EAGA,YAAY;EAGZ;EAGA,oBAAoB;EAGpB,oBAAoB;EAGpB,kBAAkB;EAWlB,mBAAmB;;UAUJ;EAEf;EACA;EACA;;UA+Te;EAEf;EAGA;EAGA;EAGA;EAYA;;;;KC3lCU,uBAAuB;KA8zOvB,gBAAgB;;;UCj2OX;EASf;EAyCA;EAwBA;EA0BA;;;;UClHe;EACf;EACA;EACA,aAAa,eAAe;EAC5B,WAAW,eAAe;EAC1B,UAAU,eAAe;EACzB,aAAa;EACb,WAAW;EAWX;EACA,QAAQ;;UAMO;EACf;EACA;EACA;EACA;EACA;EACA;EAMA;;UAMe;EACf;EACA,aAAa;EACb;EACA;EACA,WAAW;EACX,iBAAiB;EACjB,eAAe;EACf;EACA;;UAMe;EACf;EACA;EAOA;EACA;IACE;;;UAgCa;EAYf,sBAAsB;;UA8CP;EAKf;EAWA;;UAMe,6BAA6B,2BAA2B;EAEvE;EAEA,aAAa;;UAOL,iCAAiC,2BAA2B;EAEpE;EAEA;EAEA,aAAa;;KAwCH;WAGG;WAMA;;WAOA;WAaA;;KAOH,uBAAuB,2BAA2B;UAuB7C;WAQN;WAQA;;KA0DC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A;EAWA;EASA;EAOA,0BAA0B;EAM1B,wBAAwB;EAaxB;EAaA,gBAAgB;EAgBhB;IACE;IACA;IACA;;EAqEF,mBAAmB;EA2BnB,wBAAwB,mBAAmB,OAAO,2BAA2B;EAgE7E;IAEE;IACA,YAAY;;EAEd;IAEE;IAEA,UAAU;IAEV,gBAAgB;;EAoBlB,gBAAgB;EAkBhB;EAyBA;EAWA;EAWA;EAaA;EAYA,uBAAuB;;UAkER;EAEf;EAEA;EAEA;EAEA;EAwBA;EAQA;EAEA;EAEA;EAMA,UAAU;EAcV;;qBAiSW;UACH;UACA;UACA;UAOA;UAaA;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UAUA;UAMA;UAQA;UAiBA;UAuBA;UAWA;UAeA;UAOA;UAUA;UAkBA;UAcA;UAYA;UAQA;UASA;UAkCA;UAcA;UAUA;UAaA;UAUA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UAkEnE;UAuJA;UA2EA;UAiDA;UAiBA;UAyGA;iBA6GO;UA6PP;UAuFA;UA4EA;UA8BA;UAYM;UAmEN;UAsBA;UAUA;UA0IA;UAiDA;UAmCA;UAwBA;UA2BA;UAkCM;UAwGA;UA0GN;UAiDA;UA2IM;UA+hCA;UAqpBA;UA8FA;UA4DA;UAgCA;UA+BA;UA4CN;UAoCM;UA4CA;UAoVN;UAwBA;UAWA;UAkDA;UAmBA;UAwBA;UAyCM;UA0CA;UAgMA;UAiqEN;UA+CA;UA4DA;UA6FA;UA0IA;UAgCA;UAOA;UAoCA;UAgFA;UA4BM;UA6BN;UAiCA;UAmBA;UAgEA;UAiEM;UAkeN"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Fa as clearBucketRegionCache, Ha as AssetError, Hr as LockManager, Ia as resolveBucketRegion, Ka as DependencyError, Ki as Synthesizer, La as AwsClients, Qa as LockError, Ra as getAwsClients, Sa as AssemblyReader, Ua as CdkdError, Ur as S3StateBackend, Va as setAwsClients, Wa as ConfigError, _n as DiffCalculator, br as DagBuilder, ci as AssetPublisher, co as SynthesisError, ct as IAMRoleProvider, do as normalizeAwsError, dt as ProviderRegistry, lo as formatError, no as ProvisioningError, r as DeployEngine, so as StateError, uo as isCdkdError, xr as TemplateParser, xt as CloudControlProvider, za as resetAwsClients } from "./deploy-engine-DGV6XNWO.js";
1
+ import { $a as ConfigError, Er as TemplateParser, Ga as resolveBucketRegion, Ja as resetAwsClients, Jr as S3StateBackend, Ka as AwsClients, Qa as CdkdError, Qi as Synthesizer, Tr as DagBuilder, Wa as clearBucketRegionCache, Xa as setAwsClients, Za as AssetError, _o as SynthesisError, bo as normalizeAwsError, ct as IAMRoleProvider, do as ProvisioningError, dt as ProviderRegistry, go as StateError, ja as AssemblyReader, mi as AssetPublisher, qa as getAwsClients, qr as LockManager, r as DeployEngine, so as LockError, to as DependencyError, vo as formatError, vt as CloudControlProvider, xn as DiffCalculator, yo as isCdkdError } from "./deploy-engine-Czuf7jgT.js";
2
2
  import { a as setLogger, n as getLogger, t as ConsoleLogger } from "./logger-Bt0RGDfb.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, $a as MalformedProducerRecordRefusalError, $i as resolveSkipPrefix, $n as refuseMalformedOutputsForDestroy, $r as hasReadableExportSet, $t as requireConfigArray, A as createPreDeleteFinalSnapshot, Aa as ownValue, Ai as describeDockerFailure, An as malformedExportSourceWarning, Ar as identityKeyFor, At as IntrinsicFunctionResolver, B as isStatefulRecreateTargetSync, Ba as runWithStackAwsClients, Bi as runDockerStreaming, Bn as malformedResourceEntriesWarning, Br as redactSecretsForState, Bt as refStateLookupFromResource, C as namesAnyDeclaredParameter, Ca as failedStageNote, Ci as validateAssetBucketName, Cn as displayLogicalId, Co as safeStringify, Cr as STATE_SOURCED_CROSS_GENERATION_RULES, Ct as ccProtectionRegistryTypes, D as PRE_DELETE_SNAPSHOT_TYPES, Da as hasOwnKey, Di as resolveDockerContextDirectory, Dn as isReadableOrphanRecord, Dr as createSecretMasker, Dt as isWaitAbandonedError, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ea as defineOwnKey, Ei as buildDockerImage, En as hasReadableResources, Er as carriesSecretMask, Et as deleteSkipReason, F as extractDeploymentEventError, Fi as isDockerClientEnvKey, Fn as malformedOrphansRefusalMessage, Fr as maskSecretsInText, Ft as getAccountInfo, G as toCfnInteger, Ga as CrossAccountSecretRefusalError, Gi as getDockerImageBySourceHash, Gn as refuseDivergentRecordRegionForDestroy, Gr as UNREPRODUCIBLE_LOCK_CLAUSE, Gt as assertRegionMatch, H as WARM_THROUGHPUT_MEMBERS, Hi as escapeRegExp, Hn as malformedResourcesWarning, Hr as LockManager, Ht as WAFv2WebACLProvider, I as makeSiblingClaimReader, Ia as resolveBucketRegion, Ii as isMalformedEnvKey, In as malformedOrphansWarning, Ir as pathCrossesDottedKey, It as isImpossibleEmptyStoredAttribute, J as bold, Ja as DynamicReferenceRegionAmbiguousError, Ji as getDefaultStateBucketName, Jn as refuseMalformedOrphanRecordsForDestroy, Jr as forceQuitRecoveryClause, Jt as configBooleanRefusal, K as toFiniteNumber, Ki as Synthesizer, Kn as refuseMalformedNestedChildOutputs, Kr as buildForceUnlockCommand, Kt as coerceCfnBoolean, L as planOrphanAdoption, La as AwsClients, Li as partitionSensitiveEnv, Ln as malformedOutputsRefusalMessage, Lr as recordMaskOnlyValue, Lt as isNamelessDynamicReferenceError, M as refusesFinalSnapshot, Ma as displayAssemblyPath, Mi as finchSecretArgvRefusal, Mn as malformedOrphanRecordsRefusalMessage, Mr as isUncertifiedBaselineMaskPosition, Mt as carriesFetchableDynamicReference, N as unsupportedFinalSnapshotError, Na as renderAssemblyPathEscape, Ni as formatDockerLoginError, Nn as malformedOrphanRecordsWarning, Nr as markSameGenerationBag, Nt as cfnRefValueFromPhysicalId, O as buildFinalSnapshotIdentifier, Oa as hasPlainPrototype, Oi as describeDockerCapturedOutput, On as isReadableResourceEntry, Or as dynamicReferenceTokens, Ot as disableInstanceApiTermination, P as makeCanonicalizePropertiesFn, Pa as resolveAssemblyPath, Pi as getDockerCmd, Pn as malformedOrphanRowsKeptWarning, Pr as maskSecretsInError, Pt as coerceParameterTypedValue, Q as red, Qi as resolveCaptureObservedState, Qn as refuseMalformedOutputs, Qr as exportNamesCarriedFrom, Qt as replayWarn, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ra as getAwsClients, Ri as redactDockerArgvValues, Rn as malformedOutputsWarning, Rr as recordMaskOnlyValuesIn, Rt as isUnboundTemplateParameter, S as computeParameterTaint, Sa as AssemblyReader, Si as readBootstrapMarkerBody, Sn as deployRefusesOrphanRowsReason, So as describeAwsFailure, Sr as STATE_SOURCED_BASELINE_RULES, St as slowCcOperationTimeoutMs, T as resourcesNamingDeclaredParameter, Ta as processStackMessages, Ti as buildDenyExternalAccessPolicy, Tn as hasReadableOutputs, Tr as TEMPLATE_SOURCED_RULES, Tt as deleteIndeterminateGuards, U as coerceWarmThroughput$1, Ua as CdkdError, Ui as stripControlChars, Un as malformedStateRefusalMessage, Ur as S3StateBackend, Ut as normalizeAwsTagsToCfn, V as renderStatefulReason, Va as setAwsClients, Vi as warnFinchArgvExposure, Vn as malformedResourcePropertiesWarning, Vr as scrubResourceRecord, Vt as isSettledInstanceState, W as isWarmThroughputDecrease, Wi as AssetManifestLoader, Wn as previewableOrphanRecords, Wr as rebuildClientForBucketRegion, Wt as resolveExplicitPhysicalId, X as gray, Xa as LocalInvokeBuildError$1, Xi as resolveApp, Xn as refuseMalformedOrphansForDestroy, Xr as CUSTOM_RESOURCE_RESPONSE_PREFIX, Xt as configStringRefusal, Y as cyan, Ya as IntrinsicResolutionRefusalError, Yi as getLegacyStateBucketName, Yn as refuseMalformedOrphans, Yr as formatLockExpiry, Yt as configIntegerRefusal, Z as green, Za as LocalStartServiceError, Zi as resolveAutoAssetStorage, Zn as refuseMalformedOrphansForOrphan, Zr as DEFAULT_STATE_PREFIX, Zt as readConfigString, _ as bagHoldsSecretExpression, _a as expectedOwnerParam, _i as assertAssetBucketRegion, _n as DiffCalculator, _o as isThrottlingError, _r as findSilentDropProperties, _t as endCommandInterruptScope, a as DeploymentEventsStore, aa as ssmResolvedValueType, ai as orphansAfterRollback, an as producerRegionsFromState, ao as StackHasActiveImportsError, ar as refuseMalformedState, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, ba as derivePartitionAndUrlSuffix, bi as isCrossRegionRedirect, bn as UNREADABLE_ORPHANS_CONTAINER_ROW, bo as markRedactedCause, br as DagBuilder, bt as startInterruptWatch, c as replayFailedOperations, ca as MIGRATE_TMP_PREFIX, ci as AssetPublisher, cn as s3BucketDomainName, co as SynthesisError, cr as repairMalformedOutputsForReadOnly, ct as IAMRoleProvider, d as updatePartialMessage, da as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, di as buildAssetRedirectMap, dn as s3BucketWebsiteUrl, do as normalizeAwsError, dr as repairMalformedResourcesForReadOnly, dt as ProviderRegistry, ea as resolveStateBucketWithDefault, ei as hasReasonlessBaselineRefusal, en as requireConfigObject, eo as NestedStackChildDirectDestroyError, er as refuseMalformedResourceAttributesForOrphan, et as collectDeclaredOutputNames, f as updatePartialReason, fa as injectiveKey, fi as createAssetRedirectResolver, fn as applyRoleArnIfSet, fo as withErrorHandling, fr as safeRegion, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, ga as decodeListingKey, gi as BOOTSTRAP_MARKER_PREFIX, gn as envCredentialsAreAssumedRole, go as isRetryableTransientError, gr as findActionableSilentDrops, gt as beginCommandInterruptScope, h as IMPLICIT_DELETE_DEPENDENCIES, ha as producerRecordKey, hi as AssetModeResolver, hn as callerEnvCredentials, ho as isMarkedNonRetryable, hr as unreadableOrphanRecords, ht as maskerOrIdentity, i as DeploymentEventsReader, ia as warnDeprecatedNoPrefixCliFlag, ii as isReadableBag, in as classifyReplaySecretRegion, io as ResourceUpdateNotSupportedError, ir as refuseMalformedResourcesForDestroy, it as secretBearing, j as isFinalSnapshotError, ja as absoluteAssemblyPathEscape, ji as dockerSpawnEnvWithSensitive, jn as malformedLocalOutputsWarning, jr as isSingleDynamicReferenceToken, jt as carriesDynamicReference, k as ccRoutedFinalSnapshotError, ka as nullPrototypeRecord, ki as describeDockerExecFailure, kn as malformedExportNamesWarning, kr as errorCauseChain, kt as isTerminationProtectionPropagationError, l as replayRollback, la as findLargeInlineResources, li as stringifyValue, ln as s3BucketDualStackDomainName, lr as repairMalformedResourceEntriesForReadOnly, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as producerCoordinateKey, mi as rewriteTemplateAssetReferences, mn as applyCallerIdentityCredentials, mo as shellQuote, mr as unpreviewableOrphanRecords, mt as maskDeep, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as resolveUseCdkBootstrapAssets, ni as importableOutputKeys, nn as definedAttributes, no as ProvisioningError, nr as refuseMalformedResourceEntriesForOrphan, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as CFN_TEMPLATE_BODY_LIMIT, oi as orphansCarriedFrom, on as withSharedDrainBudget, oo as StackTerminationProtectionError, or as repairMalformedOrphanRecordsForReadOnly, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as injectiveKeyPrefix, pi as loadPublishableAssetManifest, pn as AWS_CREDENTIAL_ENV_KEYS, po as pasteableCommand, pr as safeStackName, pt as createMaskedRetryLogger, q as formatResourceLine, qa as DeployCancelledError, qi as synthesisStatusMessage, qn as refuseMalformedOrphanRecords, qr as buildLockContentionMessage, qt as coerceCfnInteger, r as DeployEngine, ra as stateBucketExistenceConfirmed, ri as importableOutputs, rn as stringifyIfAssigned, ro as ResourceTimeoutError, rr as refuseMalformedResourcePropertiesForOrphan, rt as isExportAliasCollision, s as planRollback, sa as CFN_TEMPLATE_URL_LIMIT, si as shouldRetainResource, sn as s3BucketArn, sr as repairMalformedOrphansForReadOnly, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as resolveStateBucketWithDefaultAndSource, ti as hasUnverifiableParameterRefusal, tn as requireConfigString, to as PartialFailureError, tr as refuseMalformedResourceEntries, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ua as uploadCfnTemplate, ui as WorkGraph, un as s3BucketRegionalDomainName, ur as repairMalformedResourcePropertiesForReadOnly, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, va as PARTITION_TABLE, vi as ensureAssetStorage, vn as INTRINSIC_KEYS, vo as isTransientServerError, vr as describeTypeWithThrottleRetry, vt as interruptWatchListenerCount, w as reachableDivergentParameters, wa as globMatches, wi as validateContainerRepoName, wn as hasReadableOrphans, wr as STATE_SOURCED_READBACK_RULES, wt as UNSPECIFIED_SKIP_REASON, x as bindingSkippedOutputs, xa as ambientClientDefaults, xi as parseBootstrapMarker, xn as UNREADABLE_RESOURCES_MAP_ROW, xo as retryClassificationText, xr as TemplateParser, xt as CloudControlProvider, y as keptWholeReasonText, ya as canonicalizeRegion, yi as getBootstrapMarkerKey, yn as STATE_RESOURCES_MALFORMED, yo as markNonRetryable, yr as withRetry, yt as isInterruptedWaitError, z as isStatefulRecreateTargetForReplace, za as resetAwsClients, zi as runDockerForeground, zn as malformedRenderedContainersWarning, zr as recoverMaskedOutput, zt as parameterTypeMayLoseSecretIdentity } from "./deploy-engine-DGV6XNWO.js";
1
+ import { $ as yellow, $i as synthesisStatusMessage, $n as refuseMalformedOrphanRecordsForDestroy, $r as forceQuitRecoveryClause, $t as configIntegerRefusal, A as createPreDeleteFinalSnapshot, Aa as credentialFingerprint, Ai as validateContainerRepoName, An as hasReadableOutputs, Ao as retryClassificationText, Ar as TEMPLATE_SOURCED_RULES, At as deleteSkipReason, B as isStatefulRecreateTargetSync, Ba as absoluteAssemblyPathEscape, Bi as getDockerCmd, Bn as malformedOrphansRefusalMessage, Br as maskSecretsInText, Bt as isImpossibleEmptyStoredAttribute, C as namesAnyDeclaredParameter, Ca as expectedOwnerParam, Ci as assertAssetBucketRegion, Cn as STATE_REGION_DIVERGED, Co as shellQuote, Cr as describeTypeWithThrottleRetry, Ct as compositeIdSkipResult, D as PRE_DELETE_SNAPSHOT_TYPES, Da as ambientClientDefaults, Di as parseBootstrapMarker, Dn as deployRefusesOrphanRowsReason, Do as isTransientServerError, Dr as STATE_SOURCED_BASELINE_RULES, Dt as maskerOrIdentity, E as ATOMIC_FINAL_SNAPSHOT_TYPES, Ea as derivePartitionAndUrlSuffix, Ei as isCrossRegionRedirect, En as UNREADABLE_RESOURCES_MAP_ROW, Eo as isThrottlingError, Er as TemplateParser, Et as maskDeep, F as extractDeploymentEventError, Fa as defineOwnKey, Fi as describeDockerExecFailure, Fn as malformedExportSourceWarning, Fr as identityKeyFor, Ft as carriesDynamicReference, G as toCfnInteger, Ga as resolveBucketRegion, Gi as runDockerForeground, Gn as malformedResourceEntriesWarning, Gr as redactSecretsForState, Gt as isSettledInstanceState, H as WARM_THROUGHPUT_MEMBERS, Ha as renderAssemblyPathEscape, Hi as isMalformedEnvKey, Hn as malformedOutputsRefusalMessage, Hr as recordMaskOnlyValue, Ht as isUnboundTemplateParameter, I as makeSiblingClaimReader, Ia as hasOwnKey, Ii as describeDockerFailure, In as malformedLocalOutputsWarning, Ir as isSingleDynamicReferenceToken, It as carriesFetchableDynamicReference, J as bold, Ja as resetAwsClients, Ji as escapeRegExp, Jn as malformedStateRefusalMessage, Jr as S3StateBackend, Jt as resolveExplicitPhysicalId, K as toFiniteNumber, Ka as AwsClients, Ki as runDockerStreaming, Kn as malformedResourcePropertiesWarning, Kr as scrubResourceRecord, Kt as WAFv2WebACLProvider, L as planOrphanAdoption, La as hasPlainPrototype, Li as dockerSpawnEnvWithSensitive, Ln as malformedOrphanRecordsRefusalMessage, Lr as isUncertifiedBaselineMaskPosition, Lt as cfnRefValueFromPhysicalId, M as refusesFinalSnapshot, Ma as failedStageNote, Mi as buildDockerImage, Mn as isReadableOrphanRecord, Mo as safeStringify, Mr as createSecretMasker, Mt as disableInstanceApiTermination, N as unsupportedFinalSnapshotError, Na as globMatches, Ni as resolveDockerContextDirectory, Nn as isReadableResourceEntry, Nr as dynamicReferenceTokens, Nt as isTerminationProtectionPropagationError, O as buildFinalSnapshotIdentifier, Oa as ambientCredentialConfig, Oi as readBootstrapMarkerBody, On as displayLogicalId, Oo as markNonRetryable, Or as STATE_SOURCED_CROSS_GENERATION_RULES, Ot as UNSPECIFIED_SKIP_REASON, P as makeCanonicalizePropertiesFn, Pa as processStackMessages, Pi as describeDockerCapturedOutput, Pn as malformedExportNamesWarning, Pr as errorCauseChain, Pt as IntrinsicFunctionResolver, Q as red, Qa as CdkdError, Qi as Synthesizer, Qn as refuseMalformedOrphanRecords, Qr as buildLockContentionMessage, Qt as configBooleanRefusal, R as MULTI_REGION_RECREATE_BLOCKED_TYPES, Ra as nullPrototypeRecord, Ri as finchSecretArgvRefusal, Rn as malformedOrphanRecordsWarning, Rr as markSameGenerationBag, Rt as coerceParameterTypedValue, S as computeParameterTaint, Sa as decodeListingKey, Si as BOOTSTRAP_MARKER_PREFIX, Sn as INTRINSIC_KEYS, So as pasteableCommand, Sr as findSilentDropProperties, St as compositeIdSeparatorRefusal, T as resourcesNamingDeclaredParameter, Ta as canonicalizeRegion, Ti as getBootstrapMarkerKey, Tn as UNREADABLE_ORPHANS_CONTAINER_ROW, To as isRetryableTransientError, Tr as DagBuilder, Tt as createMaskedRetryLogger, U as coerceWarmThroughput$1, Ua as resolveAssemblyPath, Ui as partitionSensitiveEnv, Un as malformedOutputsWarning, Ur as recordMaskOnlyValuesIn, Ut as parameterTypeMayLoseSecretIdentity, V as renderStatefulReason, Va as displayAssemblyPath, Vi as isDockerClientEnvKey, Vn as malformedOrphansWarning, Vr as pathCrossesDottedKey, Vt as isNamelessDynamicReferenceError, W as isWarmThroughputDecrease, Wi as redactDockerArgvValues, Wn as malformedRenderedContainersWarning, Wr as recoverMaskedOutput, Wt as refStateLookupFromResource, X as gray, Xa as setAwsClients, Xi as AssetManifestLoader, Xn as refuseDivergentRecordRegionForDestroy, Xr as UNREPRODUCIBLE_LOCK_CLAUSE, Xt as coerceCfnBoolean, Y as cyan, Ya as runWithStackAwsClients, Yi as stripControlChars, Yn as previewableOrphanRecords, Yr as rebuildClientForBucketRegion, Yt as assertRegionMatch, Z as green, Zi as getDockerImageBySourceHash, Zn as refuseMalformedNestedChildOutputs, Zr as buildForceUnlockCommand, Zt as coerceCfnInteger, _ as bagHoldsSecretExpression, _a as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, _i as buildAssetRedirectMap, _n as AWS_CREDENTIAL_ENV_KEYS, _o as SynthesisError, _r as safeRegion, _t as startInterruptWatch, a as DeploymentEventsStore, aa as resolveSkipPrefix, ai as hasReadableExportSet, an as requireConfigString, ao as LocalInvokeBuildError$1, ar as refuseMalformedResourceAttributesForOrphan, at as secretBearingStateKeyWarning, b as mergeNoChangeOutputs, ba as producerCoordinateKey, bi as rewriteTemplateAssetReferences, bn as envCredentialsAreAssumedRole, bo as normalizeAwsError, br as unreadableOrphanRecords, bt as ccProtectionRegistryTypes, c as replayFailedOperations, ca as resolveUseCdkBootstrapAssets, ci as importableOutputKeys, cn as classifyReplaySecretRegion, co as MalformedProducerRecordRefusalError, cr as refuseMalformedResourcePropertiesForOrphan, ct as IAMRoleProvider, d as updatePartialMessage, da as ssmResolvedValueType, di as orphansAfterRollback, dn as s3BucketArn, do as ProvisioningError, dr as repairMalformedOrphanRecordsForReadOnly, dt as ProviderRegistry, ea as getDefaultStateBucketName, ei as formatLockExpiry, en as configStringRefusal, eo as CrossAccountSecretRefusalError, er as refuseMalformedOrphans, et as collectDeclaredOutputNames, f as updatePartialReason, fa as CFN_TEMPLATE_BODY_LIMIT, fi as orphansCarriedFrom, fn as s3BucketDomainName, fo as ResourceTimeoutError, fr as repairMalformedOrphansForReadOnly, ft as wouldReturnToSdkProvider, g as computeImplicitDeleteEdges, ga as uploadCfnTemplate, gi as WorkGraph, gn as applyRoleArnIfSet, gr as repairMalformedResourcesForReadOnly, gt as isInterruptedWaitError, h as IMPLICIT_DELETE_DEPENDENCIES, ha as findLargeInlineResources, hi as stringifyValue, hn as s3BucketWebsiteUrl, ho as StackTerminationProtectionError, hr as repairMalformedResourcePropertiesForReadOnly, ht as interruptWatchListenerCount, i as DeploymentEventsReader, ia as resolveCaptureObservedState, ii as exportNamesCarriedFrom, in as requireConfigObject, io as IntrinsicResolutionRefusalError, ir as refuseMalformedOutputsForDestroy, it as secretBearing, j as isFinalSnapshotError, ja as AssemblyReader, ji as buildDenyExternalAccessPolicy, jn as hasReadableResources, jo as describeAwsFailure, jr as carriesSecretMask, jt as isWaitAbandonedError, k as ccRoutedFinalSnapshotError, ka as clientDefaultsFor, ki as validateAssetBucketName, kn as hasReadableOrphans, ko as markRedactedCause, kr as STATE_SOURCED_READBACK_RULES, kt as deleteIndeterminateGuards, l as replayRollback, la as stateBucketExistenceConfirmed, li as importableOutputs, ln as producerRegionsFromState, lo as NestedStackChildDirectDestroyError, lr as refuseMalformedResourcesForDestroy, lt as collectInlinePolicyNamesManagedBySiblings, m as maskingRetryLogger, ma as MIGRATE_TMP_PREFIX, mi as AssetPublisher, mn as s3BucketRegionalDomainName, mo as StackHasActiveImportsError, mr as repairMalformedResourceEntriesForReadOnly, mt as endCommandInterruptScope, n as DEFAULT_RESOURCE_WARN_AFTER_MS, na as resolveApp, ni as DEFAULT_STATE_PREFIX, nn as replayWarn, no as DeployCancelledError, nr as refuseMalformedOrphansForOrphan, nt as exportAliasCollisionScrubWarning, o as planFailedOps, oa as resolveStateBucketWithDefault, oi as hasReasonlessBaselineRefusal, on as definedAttributes, oo as LocalStartServiceError, or as refuseMalformedResourceEntries, ot as secretSafeKeyDisplay, p as withResourceDeadline, pa as CFN_TEMPLATE_URL_LIMIT, pi as shouldRetainResource, pn as s3BucketDualStackDomainName, po as ResourceUpdateNotSupportedError, pr as repairMalformedOutputsForReadOnly, pt as beginCommandInterruptScope, q as formatResourceLine, qa as getAwsClients, qi as warnFinchArgvExposure, qn as malformedResourcesWarning, qr as LockManager, qt as normalizeAwsTagsToCfn, r as DeployEngine, ra as resolveAutoAssetStorage, ri as describeRegionValueKind, rn as requireConfigArray, ro as DynamicReferenceRegionAmbiguousError, rr as refuseMalformedOutputs, rt as isExportAliasCollision, s as planRollback, sa as resolveStateBucketWithDefaultAndSource, si as hasUnverifiableParameterRefusal, sn as stringifyIfAssigned, sr as refuseMalformedResourceEntriesForOrphan, st as getCurrentResourceSecrets, t as DEFAULT_RESOURCE_TIMEOUT_MS, ta as getLegacyStateBucketName, ti as CUSTOM_RESOURCE_RESPONSE_PREFIX, tn as readConfigString, tr as refuseMalformedOrphansForDestroy, tt as collectPublishedOutputNames, u as resolveReplacementOldType, ua as warnDeprecatedNoPrefixCliFlag, ui as isReadableBag, un as withSharedDrainBudget, uo as PartialFailureError, ur as refuseMalformedState, ut as clearOnUpdateRemoval, v as isSecretBearingReferenceString, va as injectiveKey, vi as createAssetRedirectResolver, vn as applyCallerIdentityCredentials, vr as safeStackName, vt as CloudControlProvider, w as reachableDivergentParameters, wa as PARTITION_TABLE, wi as ensureAssetStorage, wn as STATE_RESOURCES_MALFORMED, wo as isMarkedNonRetryable, wr as withRetry, wt as packCompositeId, x as bindingSkippedOutputs, xa as producerRecordKey, xi as AssetModeResolver, xn as DiffCalculator, xo as withErrorHandling, xr as findActionableSilentDrops, xt as compositeIdFormatMessage, y as keptWholeReasonText, ya as injectiveKeyPrefix, yi as loadPublishableAssetManifest, yn as callerEnvCredentials, yr as unpreviewableOrphanRecords, yt as slowCcOperationTimeoutMs, z as isStatefulRecreateTargetForReplace, za as ownValue, zi as formatDockerLoginError, zn as malformedOrphanRowsKeptWarning, zr as maskSecretsInError, zt as getAccountInfo } from "./deploy-engine-Czuf7jgT.js";
2
2
  import { C as displayAwsMessage, D as isPasteableIdent, E as displayStackName, O as truncateCodePoints, 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-Bt0RGDfb.js";
3
3
  import { n as awsClientDefaults, s as ambientRegion } from "./aws-client-defaults-jISU4PHo.js";
4
- import { t as getCdkdVersion } from "./version-BuD41yiK.js";
5
- import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-B5acrjOr.js";
4
+ import { t as getCdkdVersion } from "./version-BI33Emlj.js";
5
+ import { a as renderDisableCommand, i as protectedReplacementAdvice, r as UNNAMEABLE_ID_CLAUSE, t as ASGProvider } from "./asg-provider-CXNAEgyw.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";
@@ -16192,210 +16192,6 @@ var LambdaLayerVersionProvider = class {
16192
16192
  }
16193
16193
  };
16194
16194
 
16195
- //#endregion
16196
- //#region src/provisioning/composite-id.ts
16197
- /**
16198
- * Refuse a composite physicalId whose segments would make it ambiguous
16199
- * (issue [#1672](https://github.com/go-to-k/cdkd/issues/1672)).
16200
- *
16201
- * ## Why a composite id exists at all
16202
- *
16203
- * `ResourceProvider` passes a SINGLE `physicalId: string` as a resource's
16204
- * identity, while CloudFormation keeps the physical id and its containing
16205
- * scope as separate values. So every provider whose type needs more than one
16206
- * value to address the resource PACKS them into one string joined by
16207
- * {@link COMPOSITE_ID_SEPARATOR} — `<databaseName>|<tableName>` for
16208
- * `AWS::Glue::Table`, `<apiId>|<typeName>|<fieldName>` for
16209
- * `AWS::AppSync::Resolver`, and so on.
16210
- *
16211
- * ## Why it has to be guarded
16212
- *
16213
- * The separator is NOT escaped, so a segment that itself contains a `|`
16214
- * produces an id with the wrong arity. Every decode site splits the stored id
16215
- * back apart and the extra segment shifts everything — for a Glue table named
16216
- * `a|b` in database `mydb` the recorded id `mydb|a|b` decodes to database
16217
- * `mydb`, table `a`. Both halves are non-empty, so every existing
16218
- * "is this id well-formed?" guard passes and the deploy SUCCEEDS. What breaks
16219
- * is everything afterwards: `cdkd destroy` deletes the WRONG resource if one
16220
- * exists under the decoded pair (or warn-and-skips, reporting success while
16221
- * the real resource stays alive and billing), and `cdkd drift` reads back
16222
- * `undefined` forever.
16223
- *
16224
- * AWS itself accepts such a name — verified live us-east-1 2026-08-12,
16225
- * `glue:CreateTable` with `TableInput.Name: 'a|b'` succeeds — and
16226
- * CloudFormation manages the resource fine. The limitation is cdkd's own, so
16227
- * the honest answer is to REFUSE at deploy time with a message that says so,
16228
- * rather than to record an id that silently names something else. Escaping the
16229
- * separator, or dropping the packing where the decode sites already receive
16230
- * the properties bag, are the two real fixes and both remain open on #1672;
16231
- * this guard is what closes the data-loss path in the meantime.
16232
- *
16233
- * ## Two entry points, mirroring `config-shape.ts`
16234
- *
16235
- * {@link packCompositeId} is the ACTION (throw, or warn-and-pack under the
16236
- * replay downgrade) and {@link compositeIdSeparatorRefusal} is the bare
16237
- * PREDICATE, for a caller whose response is neither — the `import()` paths
16238
- * warn and return `null` (`skipped-not-found`), which is the idiom those
16239
- * methods already use for every other unusable id. Both share one message
16240
- * builder so the two can never drift.
16241
- *
16242
- * ## Where to place the call
16243
- *
16244
- * Prefer computing the id BEFORE the create call rather than after it. The
16245
- * refusal is a pre-flight check, and a throw placed after the AWS mutation has
16246
- * already committed would leave an orphan resource behind with no state
16247
- * record. Only where a segment is derived from the create RESPONSE (an
16248
- * AWS-generated id) does the call have to sit after it — and those segments
16249
- * are structurally incapable of carrying a `|` anyway. A post-call site must
16250
- * also sit OUTSIDE the `try` whose `catch` re-wraps as
16251
- * `ProvisioningError('Failed to create …')`, or a refusal would be
16252
- * mis-reported as an AWS creation failure.
16253
- *
16254
- * ## What this does NOT cover
16255
- *
16256
- * The claim is "every composite packer this change reaches", not "every `|`
16257
- * join in the tree". One deliberate exclusion, recorded so the scope is not
16258
- * read as wider than it is:
16259
- *
16260
- * - **`intrinsic-function-resolver.ts`'s `|` joins** (the WAFv2 and
16261
- * `AWS::Events::Rule` arms) are out of scope by KIND, not by ownership: they
16262
- * build a `Ref` VALUE for the template resolver, never a physicalId cdkd
16263
- * records and later splits. Nothing decodes them, so an ambiguous join has
16264
- * no decode site to go wrong at.
16265
- *
16266
- * ## Guarding the PACKERS is not the whole story
16267
- *
16268
- * A packer that refuses ambiguity does nothing about an id an EARLIER binary
16269
- * already recorded, or one an `import` was handed — and a type whose decoder is
16270
- * loose will mis-decode both. Issue #1711 is where that was learned:
16271
- * `AWS::Route53::RecordSet`'s `parseRecordSetCompositeId` accepts any three
16272
- * NON-EMPTY segments, so a record name carrying two pipes decoded to a
16273
- * DIFFERENT hosted zone at three sites this helper never sees — an `import`
16274
- * early accept, an identity-resolution short-circuit, and `delete`'s own parse,
16275
- * where `cdkd destroy` then reported success over a live record. When adopting
16276
- * this guard for a new type, audit its DECODE sites in the same change and make
16277
- * each one cross-check the parsed segments against something it can verify them
16278
- * with (Route 53 uses the template's own `Name` / `Type`).
16279
- */
16280
- /** The character every composite physicalId in this codebase joins segments with. */
16281
- const COMPOSITE_ID_SEPARATOR = "|";
16282
- /** The issue tracking the real fix (escaping, or not packing at all). */
16283
- const COMPOSITE_ID_ISSUE_URL = "https://github.com/go-to-k/cdkd/issues/1672";
16284
- /** Render `<a>|<b>|<c>` from the segment names. */
16285
- function idShape(segments) {
16286
- return segments.map((segment) => `<${segment.name}>`).join("|");
16287
- }
16288
- /**
16289
- * The refusal sentence for a composite id whose segments carry the separator,
16290
- * or `undefined` when the id is unambiguous.
16291
- *
16292
- * Every offending segment is named, not just the first: a template that
16293
- * mis-names one value frequently mis-names its sibling too, and reporting them
16294
- * one deploy at a time is the shape of remedy nobody finishes.
16295
- */
16296
- function compositeIdSeparatorRefusal(resourceType, logicalId, segments, maskSecrets) {
16297
- const offending = segments.filter((segment) => String(segment.value).includes("|"));
16298
- if (offending.length === 0) return void 0;
16299
- const mask = maskerOrIdentity(maskSecrets);
16300
- return `${resourceType} ${logicalId}: ${offending.map((segment) => `${segment.name} '${mask(String(segment.value))}'`).join(" and ")} contains '${"|"}', which cdkd uses as the separator in this type's physical id (${idShape(segments)}). Recording it would produce an id that decodes back to a DIFFERENT resource, so a later cdkd destroy / drift / update would target the wrong one — or silently skip it while the real resource stays alive. AWS accepts the name and CloudFormation manages such a resource fine; this is a cdkd limitation tracked in ${COMPOSITE_ID_ISSUE_URL}. Rename the resource so no segment contains '${"|"}', or manage it outside cdkd.`;
16301
- }
16302
- /**
16303
- * Join the segments into a composite physicalId, REFUSING one that would be
16304
- * ambiguous.
16305
- *
16306
- * @throws ProvisioningError when a segment contains {@link COMPOSITE_ID_SEPARATOR},
16307
- * unless `options.onRefusal` is supplied — under which the message is handed
16308
- * to the callback and the ambiguous id is returned, keeping the pre-guard
16309
- * behavior.
16310
- */
16311
- function packCompositeId(resourceType, logicalId, segments, options) {
16312
- const refusal = compositeIdSeparatorRefusal(resourceType, logicalId, segments, options?.maskSecrets);
16313
- if (refusal !== void 0) {
16314
- if (options?.onRefusal) options.onRefusal(`${refusal} Continuing with the ambiguous id because the value comes from a cdkd state record, which no template edit can repair; the same value is REFUSED on a template-path create.`);
16315
- else throw new ProvisioningError(refusal, resourceType, logicalId);
16316
- }
16317
- return segments.map((segment) => String(segment.value)).join("|");
16318
- }
16319
- /** Render the expected id shape, e.g. `<databaseName>|<tableName>`. */
16320
- function formatShape(segments) {
16321
- return segments.map((segment) => `<${segment}>`).join("|");
16322
- }
16323
- /**
16324
- * The message EVERY malformed-composite-id decode site emits (issue
16325
- * [#1657](https://github.com/go-to-k/cdkd/issues/1657)).
16326
- *
16327
- * ## Why one builder
16328
- *
16329
- * Roughly half the decode sites stated the expected shape and half only echoed
16330
- * the value back, and the format is documented nowhere else — so on the silent
16331
- * half the message was the user's only possible route to the answer and it did
16332
- * not carry it. Routing the sites that already got it right through the same
16333
- * builder is what stops them drifting back.
16334
- *
16335
- * ## This is a WORDING fix, not an acceptance change
16336
- *
16337
- * Each caller keeps its own split-and-guard exactly as it was. The arities
16338
- * genuinely differ (some sites accept AT LEAST N segments, some destructure the
16339
- * first N and tolerate extras — the #1672 ambiguity, tracked separately), and
16340
- * folding them into one predicate here would silently change which ids deploy.
16341
- *
16342
- * ## The `skipping` variant
16343
- *
16344
- * On the DELETE path the established policy is warn-and-continue, so a
16345
- * malformed record leaves the AWS resource ALIVE. That policy is unchanged —
16346
- * the warning says what the skip costs, because an orphan the user is never
16347
- * told about is one they cannot go and delete.
16348
- *
16349
- * Since issue [#1752](https://github.com/go-to-k/cdkd/issues/1752) the ACCOUNTING
16350
- * around it is no longer a lie: an arm emitting this message must also return
16351
- * `{ outcome: 'skipped', reason: COMPOSITE_ID_SKIP_REASON }` so `cdkd destroy`
16352
- * prints a `⚠ … skipped` line instead of `✓ … deleted`, reports
16353
- * `N deleted, 1 skipped`, KEEPS the state record, and exits non-zero. The
16354
- * wording here changed accordingly — it used to promise unconditionally that
16355
- * cdkd "will report this delete as successful", which is no longer true on
16356
- * either path. Issue [#1762](https://github.com/go-to-k/cdkd/issues/1762) then
16357
- * taught the deploy engine to consume the outcome too, so the message no longer
16358
- * warns that deploy drops the record: the template-removal DELETE keeps it,
16359
- * exactly like destroy. What it DOES still distinguish is the replacement /
16360
- * rollback delete, which fails the resource and can leave the old one
16361
- * untracked — there "drop the record with 'cdkd state orphan'" is not the
16362
- * remedy, deleting the resource by hand is.
16363
- */
16364
- function compositeIdFormatMessage(format, logicalId, physicalId, options) {
16365
- const accepted = format.alsoAccepts ? `"${formatShape(format.segments)}" or ${format.alsoAccepts}` : `"${formatShape(format.segments)}"`;
16366
- const head = `Invalid physicalId format for ${format.label} ${logicalId}: expected ${accepted}, got "${physicalId}"`;
16367
- if (!options?.skipping) return head;
16368
- return `${head}. Skipping the delete — no AWS call is issued, so the resource is LEFT IN PLACE. The state record is KEPT and the run reports the skip: on 'cdkd destroy' / 'cdkd state destroy' (which exits non-zero) and, since issue 1762, on the plain DELETE of a resource removed from the template during cdkd deploy (which re-attempts it on the next deploy). So repair the id in state.json and re-run, or delete the resource by hand and drop the record with 'cdkd state orphan'. NOTE a deploy-side REPLACEMENT or rollback delete instead FAILS the resource (https://github.com/go-to-k/cdkd/issues/1762) — the old resource is left untracked there, so delete it by hand.`;
16369
- }
16370
- /**
16371
- * The short `ResourceDeleteResult.reason` every malformed-composite-id DELETE
16372
- * skip reports (issue [#1752](https://github.com/go-to-k/cdkd/issues/1752)).
16373
- *
16374
- * Deliberately short and IDENTICAL across the five arms: it is rendered inline
16375
- * on the per-resource status line (`⚠ MyTable (AWS::Glue::Table) skipped
16376
- * (malformed physicalId in state — no delete issued)`), where the full
16377
- * remediation sentence built by {@link compositeIdFormatMessage} would not fit.
16378
- * The full text is still emitted, as the `logger.warn` right beside it.
16379
- *
16380
- * A shared constant rather than five literals so the five arms cannot drift and
16381
- * a grep for the wording finds all of them.
16382
- */
16383
- const COMPOSITE_ID_SKIP_REASON = "malformed physicalId in state — no delete issued";
16384
- /**
16385
- * The `ResourceDeleteResult` a malformed-composite-id DELETE arm returns.
16386
- *
16387
- * Pairs with the `{ skipping: true }` warning: emit the warning, return this.
16388
- * Providers call it as `return compositeIdSkipResult();` so the arm reads as
16389
- * the deliberate skip it is rather than as the bare `return;` that made issue
16390
- * #1752's mis-accounting possible.
16391
- */
16392
- function compositeIdSkipResult() {
16393
- return {
16394
- outcome: "skipped",
16395
- reason: COMPOSITE_ID_SKIP_REASON
16396
- };
16397
- }
16398
-
16399
16195
  //#endregion
16400
16196
  //#region src/provisioning/providers/lambda-event-invoke-config-provider.ts
16401
16197
  /**
@@ -84163,6 +83959,53 @@ function safeRoleArn(value) {
84163
83959
  return displayIdent(value, { maxCodePoints: 613 });
84164
83960
  }
84165
83961
  /**
83962
+ * Refuse a rollback over a record whose body `region` disagreed with the key it
83963
+ * was read from, while it still lists resources (go-to-k/cdkd#3370) — the
83964
+ * rollback half of `refuseDivergentRecordRegionForDestroy` (go-to-k/cdkd#3328).
83965
+ *
83966
+ * The replay acts in the KEY's region (`RollbackExecutorContext.region`) and
83967
+ * reads a `*NotFound` delete as "already gone", exactly as the destroy does: if
83968
+ * the record's own region is the honest half, a rolled-back CREATE's delete
83969
+ * comes back not-found, the replay drops the row and saves, and the resource is
83970
+ * left live in the other region with nothing naming it.
83971
+ *
83972
+ * ONE refusal for the whole command rather than one per replay arm, because the
83973
+ * trigger already partitions the arms exactly. Every arm that calls AWS — the
83974
+ * CREATE delete, the in-place `revert`, BOTH reverse-replacement arms (whose
83975
+ * re-CREATE writes as well as deletes), and `--revert-failed`'s delete and
83976
+ * forced update — requires a CURRENT state row for the op's logical id
83977
+ * (`classifyRollbackOp` / `classifyFailedOp`); a completed DELETE is
83978
+ * `unrecoverable-delete` and calls nothing. So a record listing no resources can
83979
+ * replay nothing against AWS, and is let through for the reason the destroy
83980
+ * gives: it is the recovery path, not the hazard. A record listing any can
83981
+ * reach every arm, so every arm is refused.
83982
+ *
83983
+ * Its own message rather than the destroy's builder, whose opening, consequence
83984
+ * and remedy all speak about a DESTROY. This one offers no command at all — the
83985
+ * remedy is a repair — so it needs none of that builder's exact-rendering gate,
83986
+ * and it names the stack the way every other message in this file does. The
83987
+ * body's value is withheld and its KIND printed, the rule `getState`'s warn
83988
+ * takes: a region a record supplies is the misdirection channel.
83989
+ */
83990
+ function refuseDivergentRecordRegionForRollback(state, stackName, keyRegion, divergentBodyRegion) {
83991
+ if (divergentBodyRegion === void 0) return;
83992
+ const resourceCount = isReadableBag(state.resources) ? Object.keys(state.resources).length : void 0;
83993
+ if (resourceCount === 0) return;
83994
+ const lists = resourceCount === void 0 ? "its resources map cannot be read" : `it still lists ${resourceCount} resource${resourceCount === 1 ? "" : "s"}`;
83995
+ throw markNonRetryable(new CdkdError(`cdkd will not roll back '${safeStack(stackName)}' (${safe(keyRegion)}): the state record read from that region's key carries a 'region' of its own (${describeRegionValueKind(divergentBodyRegion)}) that is not the key's, and ${lists} — so cdkd cannot tell which region they are in. cdkd stamps the key's region into every record it writes, so this record was not written by cdkd. The replay would issue every delete and revert against the key's region; if the record's own region is the honest half, each delete comes back not-found, which the replay reads as ALREADY DELETED — it would report the resource rolled back, drop it from the record, and leave it standing in the other region. Nothing was changed. Re-run with --verbose to see what the record's region field holds, repair that field to match the key it is stored under, and run the rollback again.`, STATE_REGION_DIVERGED));
83996
+ }
83997
+ /**
83998
+ * Why the retry SAVE declined to write over a record that was rewritten mid-run
83999
+ * with a divergent body region (go-to-k/cdkd#3370) — rendered in that save's
84000
+ * warn and again in the run's partial-failure exit. Names no stack — both are
84001
+ * about the current run's stack already — and
84002
+ * prints the value's KIND only, for the reason
84003
+ * {@link refuseDivergentRecordRegionForRollback} gives.
84004
+ */
84005
+ function divergedDuringRollbackMessage(divergentBodyRegion) {
84006
+ return `the state record was rewritten during this rollback, and the rewrite carries a 'region' of its own (${describeRegionValueKind(divergentBodyRegion)}) that is not the region of its key, so cdkd did not write over it`;
84007
+ }
84008
+ /**
84166
84009
  * Human label for a planned rollback action (plan preview). `skipFinalSnapshot`
84167
84010
  * is threaded in because the classifier is pure (it cannot see CLI flags) and
84168
84011
  * the Snapshot label would otherwise promise a final snapshot the run is about
@@ -84272,6 +84115,8 @@ async function rollbackCommand(stackArg, options) {
84272
84115
  registerAllProviders(providerRegistry);
84273
84116
  providerRegistry.setCustomResourceResponseBucket(setup.bucket);
84274
84117
  let interrupted = false;
84118
+ let declinedDivergentRewrite = false;
84119
+ let declinedDivergentReason = "";
84275
84120
  const sigintHandler = () => {
84276
84121
  process.stderr.write("\nInterrupted — stopping rollback after the current operation...\n");
84277
84122
  interrupted = true;
@@ -84294,6 +84139,7 @@ async function rollbackCommand(stackArg, options) {
84294
84139
  refuseMalformedState(baseState, stackName, region);
84295
84140
  refuseMalformedOrphans(baseState, stackName, region);
84296
84141
  refuseMalformedOrphanRecords(baseState, stackName, region);
84142
+ refuseDivergentRecordRegionForRollback(baseState, stackName, region, stateData.divergentBodyRegion);
84297
84143
  const stateResources = { ...baseState.resources };
84298
84144
  const mintedOrphans = [];
84299
84145
  const orphanLogicalIds = new Set(options.orphan ?? []);
@@ -84339,6 +84185,7 @@ async function rollbackCommand(stackArg, options) {
84339
84185
  };
84340
84186
  let currentEtag = stateData.etag;
84341
84187
  const saveState = async () => {
84188
+ if (declinedDivergentRewrite) return;
84342
84189
  const { skippedOutputs: _droppedByRollback, ...carriedState } = baseState;
84343
84190
  const next = () => ({
84344
84191
  ...carriedState,
@@ -84353,8 +84200,17 @@ async function rollbackCommand(stackArg, options) {
84353
84200
  } catch {
84354
84201
  try {
84355
84202
  const fresh = await setup.stateBackend.getState(stackName, region);
84203
+ if (fresh?.divergentBodyRegion !== void 0) {
84204
+ declinedDivergentRewrite = true;
84205
+ declinedDivergentReason = divergedDuringRollbackMessage(fresh.divergentBodyRegion);
84206
+ throw new Error(declinedDivergentReason);
84207
+ }
84356
84208
  currentEtag = await setup.stateBackend.saveState(stackName, region, next(), { ...fresh?.etag !== void 0 && { expectedEtag: fresh.etag } });
84357
84209
  } catch (retryError) {
84210
+ if (declinedDivergentRewrite) {
84211
+ logger.warn(`Did not persist state after a rollback operation: ${declinedDivergentReason}. The resource was reverted in AWS. Repair the record's region field to match the key it is stored under, then run the rollback again to reconcile state.`);
84212
+ return;
84213
+ }
84358
84214
  logger.warn(`Failed to persist state after a rollback operation: ${displaySafe(retryError instanceof Error ? retryError.message : String(retryError))}. The resource was reverted in AWS; re-run the rollback to reconcile state.\nRe-run with: ${pasteableCommand("cdkd rollback", [{
84359
84215
  value: stackName,
84360
84216
  hole: "stack"
@@ -84396,7 +84252,7 @@ async function rollbackCommand(stackArg, options) {
84396
84252
  failedOpFailures = failedResult.failures;
84397
84253
  failedOpWarnings = failedResult.warnings;
84398
84254
  const remaining = failedResult.remainingFailedOps;
84399
- if (remaining.length !== segment.failedOperations.length) try {
84255
+ if (!declinedDivergentRewrite && remaining.length !== segment.failedOperations.length) try {
84400
84256
  await setup.stateBackend.setRollbackJournalFailedOperations(stackName, region, remaining);
84401
84257
  if (remaining.length === 0) delete segment.failedOperations;
84402
84258
  else segment.failedOperations = remaining;
@@ -84423,6 +84279,7 @@ async function rollbackCommand(stackArg, options) {
84423
84279
  }));
84424
84280
  totalFailures += result.failures;
84425
84281
  totalWarnings += result.warnings;
84282
+ if (declinedDivergentRewrite) break;
84426
84283
  if (result.interrupted) {
84427
84284
  interrupted = true;
84428
84285
  break;
@@ -84432,13 +84289,14 @@ async function rollbackCommand(stackArg, options) {
84432
84289
  journal.segments.pop();
84433
84290
  }
84434
84291
  } finally {
84435
- await eventRecorder.finalize(totalFailures > 0 || interrupted ? "FAILED" : "SUCCEEDED");
84292
+ await eventRecorder.finalize(totalFailures > 0 || interrupted || declinedDivergentRewrite ? "FAILED" : "SUCCEEDED");
84436
84293
  }
84437
84294
  const survivingOrphans = orphansAfterRollback(baseState, mintedOrphans).orphans ?? [];
84438
84295
  if (journal.segments.length === 0 && oldestInitialDeploy && Object.keys(stateResources).length === 0 && survivingOrphans.length === 0) {
84439
84296
  await setup.stateBackend.deleteState(stackName, region);
84440
84297
  logger.info(`State for '${safeStack(stackName)}' (${safe(region)}) removed (stack fully rolled back).`);
84441
84298
  }
84299
+ if (declinedDivergentRewrite) throw new PartialFailureError(`Rollback stopped: ${declinedDivergentReason}.` + (totalFailures > 0 ? ` ${totalFailures} operation(s) also failed.` : "") + " Journal preserved (this segment, any older ones, and their failed operations) — re-run the rollback once the record's region field matches its key.");
84442
84300
  if (interrupted) throw new PartialFailureError(`Rollback interrupted. Journal preserved — re-run the rollback to finish.\nRe-run with: ${pasteableCommand("cdkd rollback", [{
84443
84301
  value: stackName,
84444
84302
  hole: "stack"
@@ -91935,16 +91793,21 @@ function parseEcrUri(imageUri) {
91935
91793
  };
91936
91794
  }
91937
91795
  /**
91938
- * Module-level cache for STS-issued AssumeRole credentials, keyed by
91939
- * `(ecrRoleArn, callerRegion)`. Closes the reviewer's MAJOR finding: ECS
91796
+ * Module-level cache for STS-issued AssumeRole credentials, per SOURCE credential
91797
+ * identity and then per `(ecrRoleArn, callerRegion)`. Closes the reviewer's MAJOR finding: ECS
91940
91798
  * run-task with N containers under one `--ecr-role-arn` would otherwise issue
91941
91799
  * N× `AssumeRole` and N× `GetCallerIdentity` for identical credentials valid
91942
91800
  * for 3600s. The cache keeps a 5-minute safety margin against the recorded
91943
91801
  * `Expiration` so STS-side / local-clock skew never lets a stale entry through.
91944
91802
  *
91945
- * Cache key is intentionally `(roleArn, region)` rather than full caller
91946
- * identity — STS issues per-region session creds, and a switch of `--region`
91947
- * between two `local invoke` calls in the same process must re-issue.
91803
+ * The inner key is `(roleArn, region)`: STS issues per-region session creds,
91804
+ * so a switch of `--region` between two `local invoke` calls in the same
91805
+ * process must re-issue. The OUTER key is the source identity (issue
91806
+ * [#3588](https://github.com/go-to-k/cdkd/issues/3588), as in `role-arn.ts`),
91807
+ * so a library caller that installs `AwsClients` with other explicit
91808
+ * credentials is never handed credentials the first identity obtained. It is
91809
+ * {@link credentialFingerprint} — profile plus access key id, never a secret —
91810
+ * and neither key is ever rendered.
91948
91811
  *
91949
91812
  * NOT cleared on process exit — Node's module scope evaporates with the
91950
91813
  * process, and no inter-process sharing is desired (each `cdkd local invoke`
@@ -91952,12 +91815,15 @@ function parseEcrUri(imageUri) {
91952
91815
  */
91953
91816
  const ASSUMED_ROLE_CACHE = /* @__PURE__ */ new Map();
91954
91817
  /**
91955
- * Module-level cache for `STS:GetCallerIdentity`. The result is identity-only
91956
- * (`Account`) and invariant for the lifetime of the process under one set of
91957
- * default credentials. Keyed by `callerRegion` to avoid a cross-region leak
91958
- * when the caller flips `AWS_REGION` mid-process (STS is global but the SDK
91959
- * uses regional endpoints; the result is invariant in practice, but we key
91960
- * on region for safety).
91818
+ * Module-level cache for `STS:GetCallerIdentity`, keyed by
91819
+ * `(credential identity, callerRegion)`. The account is a function of the
91820
+ * identity that asked, so the identity is part of the key (issue
91821
+ * [#3588](https://github.com/go-to-k/cdkd/issues/3588)): a library caller that
91822
+ * installs `AwsClients` with other explicit credentials must not be told the
91823
+ * first identity's account. The region half avoids a cross-region leak when the
91824
+ * caller flips `AWS_REGION` mid-process (STS is global but the SDK uses
91825
+ * regional endpoints; the result is invariant in practice, but we key on region
91826
+ * for safety). Never rendered.
91961
91827
  */
91962
91828
  const CALLER_IDENTITY_CACHE = /* @__PURE__ */ new Map();
91963
91829
  /** 5-minute safety margin against the recorded STS expiration timestamp. */
@@ -91988,11 +91854,13 @@ async function pullEcrImage(imageUri, options) {
91988
91854
  await verifyImageInLocalCache(canonicalUri);
91989
91855
  return canonicalUri;
91990
91856
  }
91991
- const callerIdentityKey = callerRegion ?? "_unset";
91857
+ const credentialConfig = ambientCredentialConfig();
91858
+ const identityFingerprint = credentialFingerprint(credentialConfig);
91859
+ const callerIdentityKey = injectiveKey(identityFingerprint, callerRegion ?? "_unset");
91992
91860
  let callerAccount = CALLER_IDENTITY_CACHE.get(callerIdentityKey);
91993
91861
  if (callerAccount === void 0) {
91994
91862
  const sts = new STSClient({
91995
- ...awsClientDefaults(),
91863
+ ...clientDefaultsFor(credentialConfig),
91996
91864
  ...callerRegion && { region: callerRegion }
91997
91865
  });
91998
91866
  try {
@@ -92009,19 +91877,24 @@ async function pullEcrImage(imageUri, options) {
92009
91877
  let assumed;
92010
91878
  if (options.ecrRoleArn) {
92011
91879
  const cacheKey = `${options.ecrRoleArn}|${callerRegion ?? "_unset"}`;
92012
- const cached = ASSUMED_ROLE_CACHE.get(cacheKey);
91880
+ let roleCache = ASSUMED_ROLE_CACHE.get(identityFingerprint);
91881
+ if (roleCache === void 0) {
91882
+ roleCache = /* @__PURE__ */ new Map();
91883
+ ASSUMED_ROLE_CACHE.set(identityFingerprint, roleCache);
91884
+ }
91885
+ const cached = roleCache.get(cacheKey);
92013
91886
  if (cached && isCredentialFresh(cached)) {
92014
91887
  assumed = cached;
92015
91888
  logger.debug(`Reusing cached AssumeRole credentials for ${displayIdent(options.ecrRoleArn, { maxCodePoints: 613 })}`);
92016
91889
  } else {
92017
- assumed = await assumeRoleForEcr(options.ecrRoleArn, callerRegion, logger);
92018
- ASSUMED_ROLE_CACHE.set(cacheKey, assumed);
91890
+ assumed = await assumeRoleForEcr(options.ecrRoleArn, callerRegion, credentialConfig, logger);
91891
+ roleCache.set(cacheKey, assumed);
92019
91892
  logger.info(`Assumed role ${displayIdent(options.ecrRoleArn, { maxCodePoints: 613 })} for ECR pull (account=${parsed.accountId}, region=${parsed.region})`);
92020
91893
  }
92021
91894
  } else if (crossAccount) logger.info(`Cross-account ECR pull: image account ${parsed.accountId} != caller ${callerAccount}. Using the caller's credentials; pass --ecr-role-arn <arn> if AWS rejects with AccessDenied.`);
92022
91895
  if (crossRegion) logger.info(`Cross-region ECR pull: image region ${parsed.region} != caller ${callerRegion ?? "(unset)"}. Authenticating against the image region directly.`);
92023
91896
  const ecr = new ECRClient({
92024
- ...awsClientDefaults(),
91897
+ ...clientDefaultsFor(credentialConfig),
92025
91898
  region: parsed.region,
92026
91899
  ...assumed && { credentials: assumed }
92027
91900
  });
@@ -92044,16 +91917,17 @@ async function pullEcrImage(imageUri, options) {
92044
91917
  return canonicalUri;
92045
91918
  }
92046
91919
  /**
92047
- * Assume the supplied role via the SDK default credential chain and
91920
+ * Assume the supplied role as the caller's active credential configuration
91921
+ * (`credentialConfig`, the same reading `pullEcrImage` keys its caches on) and
92048
91922
  * return the resulting temporary credentials. The STS client is built
92049
91923
  * with the caller's profile region (or unset) — STS is a global
92050
91924
  * service so the region is informational, but threading it through
92051
91925
  * mirrors the convention used by `src/utils/role-arn.ts`.
92052
91926
  */
92053
- async function assumeRoleForEcr(roleArn, callerRegion, logger) {
91927
+ async function assumeRoleForEcr(roleArn, callerRegion, credentialConfig, logger) {
92054
91928
  logger.debug(`Assuming role ${displayIdent(roleArn, { maxCodePoints: 613 })} for ECR pull...`);
92055
91929
  const sts = new STSClient({
92056
- ...awsClientDefaults(),
91930
+ ...clientDefaultsFor(credentialConfig),
92057
91931
  ...callerRegion && { region: callerRegion }
92058
91932
  });
92059
91933
  try {
@@ -99166,4 +99040,4 @@ function buildProgram() {
99166
99040
 
99167
99041
  //#endregion
99168
99042
  export { buildProgram };
99169
- //# sourceMappingURL=program-BKAJWkPf.js.map
99043
+ //# sourceMappingURL=program-CQ_Y14q1.js.map