@go-to-k/cdkd 0.284.50 → 0.284.52

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/index.d.ts CHANGED
@@ -23,7 +23,7 @@ import { LambdaMicrovmsClient } from "@aws-sdk/client-lambda-microvms";
23
23
  import { ECRClient } from "@aws-sdk/client-ecr";
24
24
  import graphlib from "graphlib";
25
25
  //#region src/types/state.d.ts
26
- type StateSchemaVersion = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
26
+ type StateSchemaVersion = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
27
27
  interface StateImportEntry {
28
28
  sourceStack: string;
29
29
  sourceRegion: string;
@@ -42,6 +42,7 @@ interface StackState {
42
42
  outputs: Record<string, unknown>;
43
43
  imports?: StateImportEntry[];
44
44
  outputReads?: StateOutputReadEntry[];
45
+ exportNames?: string[];
45
46
  parentStack?: string;
46
47
  parentLogicalId?: string;
47
48
  parentRegion?: string;
@@ -1014,6 +1015,7 @@ declare class ExportIndexStore {
1014
1015
  private writeIndex;
1015
1016
  private rebuildFromStateBackend;
1016
1017
  private applyStackUpdate;
1018
+ private warnOnForeignOverwrite;
1017
1019
  private applyPatch;
1018
1020
  private applyRemoveStack;
1019
1021
  private persist;
@@ -1084,6 +1086,7 @@ declare class DeployEngine {
1084
1086
  private perResourceTemplateProps;
1085
1087
  private outputSecrets;
1086
1088
  private outputsTemplateSource;
1089
+ private resolvedExportNames;
1087
1090
  private outputsSourceUsable;
1088
1091
  private attemptedResolvedProps;
1089
1092
  private stackRegion;
@@ -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/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-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":";;;;;;;;;;;;;;;;;;;;;;;;;KAkFY;UAyBK;EAEf;EAMA;EAEA;;UAsBe;EAEf;EAMA;EAEA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;EAUT,UAAU;EAoBV,cAAc;EAgBd;EAcA;EAYA;EAGA;;UAMe;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAAW;EAmBX;EAMA;EAyBA;;UAMe;EAEf;EAGA;EAGA;EAGA;;KAMU;UAKK;EAEf;EAGA,YAAY;EAGZ;EAGA,oBAAoB;EAGpB,oBAAoB;EAGpB,kBAAkB;EAWlB,mBAAmB;;UAUJ;EAEf;EACA;EACA;;UAuBe;EAEf;EAGA;EAGA;EAGA;EAYA;;;;KC2nEU,gBAAgB;;;UC/iFX;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;E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QAAQ;UA8BnE;UAiDA;UA8DA;UA8BA;UAkDA;UA2BA;UAkCM;UAgDA;UAsGN;UAqEM;UAonBA;UA6jBA;UA2EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UAqSN;UAaA;UAmBA;UAwBA;UAyCM;UA0CA;UAkKA;UAusCN;UA8BA;UA4BA;UAkCA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UAgBA;UAuCM;UA0QN"}
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/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-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":";;;;;;;;;;;;;;;;;;;;;;;;;KAuGY;UAyBK;EAEf;EAMA;EAEA;;UAsBe;EAEf;EAMA;EAEA;;UAMe;EAKf,SAAS;EAGT;EAMA;EAGA,WAAW,eAAe;EAG1B,SAAS;EAUT,UAAU;EAoBV,cAAc;EAqBd;EAgBA;EAcA;EAYA;EAGA;;UAMe;EAEf;EAGA;EAGA,YAAY;EAcZ,qBAAqB;EAGrB,aAAa;EAGb;EAGA,WAA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B;EAM1B,wBAAwB;EAaxB;EAaA,gBAAgB;EAgBhB;IACE;IACA;IACA;;EA4BF,wBAAwB,mBAAmB,OAAO,2BAA2B;EAuB7E,0BAA0B;EAmB1B,gCAAgC;EAmBhC,gBAAgB;EAkBhB;EASA;EAWA;EAWA;EAaA;EAYA,uBAAuB;;UAkER;EAEf;EAEA;EAEA;EAEA;EAwBA;EAQA;EAEA;EAEA;EAMA,UAAU;EAcV;;cAoOW;UACH;UACA;UACA;UAOA;UAaA;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UAUA;UAMA;UAQA;UAiBA;UAWA;UAOA;UASA;UAWA;UAQA;UASA;UAOA;EAER,YACE,cAAc,gBACd,aAAa,aACb,YAAY,YACZ,gBAAgB,gBAChB,kBAAkB,kBAClB,SAAS,iCACT,qBACA,mBAAmB;EA+Bf,OAAO,mBAAmB,UAAU,yBAAyB,QAAQ;UA8BnE;UAiDA;UA8DA;UA8BA;UAkDA;UA2BA;UAkCM;UAgDA;UAsGN;UAqEM;UAkqBA;UAokBA;UA4EA;UA2BA;UA+BA;UAuCN;UA+BM;UA4CA;UAqSN;UAaA;UAmBA;UAwBA;UAyCM;UA0CA;UAkKA;UAusCN;UA8BA;UA4BA;UAkCA;UAgCA;UAOA;UAoCA;UA4EA;UA4BM;UA6BN;UAiCA;UAmBA;UAgBA;UAuCM;UAmRN"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $n as setAwsClients, Bt as DiffCalculator, Cr as normalizeAwsError, Gt as TemplateParser, Jn as clearBucketRegionCache, Jt as S3StateBackend, Kn as AssemblyReader, Kt as LockManager, Qn as resetAwsClients, Sr as isCdkdError, W as IAMRoleProvider, Wt as DagBuilder, Xn as AwsClients, Yn as resolveBucketRegion, Zn as getAwsClients, Zt as AssetPublisher, br as SynthesisError, er as AssetError, et as CloudControlProvider, ir as DependencyError, mr as ProvisioningError, nr as ConfigError, q as ProviderRegistry, r as DeployEngine, tr as CdkdError, ur as LockError, wn as Synthesizer, xr as formatError, yr as StateError } from "./deploy-engine-tBUjmzHn.js";
1
+ import { $n as AwsClients, Bt as DiffCalculator, Cr as SynthesisError, Dn as Synthesizer, Er as normalizeAwsError, Gt as TemplateParser, Jt as S3StateBackend, Kt as LockManager, Qn as resolveBucketRegion, Sr as StateError, Tr as isCdkdError, W as IAMRoleProvider, Wt as DagBuilder, Yn as AssemblyReader, Zn as clearBucketRegionCache, _r as ProvisioningError, ar as ConfigError, en as AssetPublisher, er as getAwsClients, et as CloudControlProvider, ir as CdkdError, nr as setAwsClients, pr as LockError, q as ProviderRegistry, r as DeployEngine, rr as AssetError, sr as DependencyError, tr as resetAwsClients, wr as formatError } from "./deploy-engine-DxboGDr4.js";
2
2
  import { n as getLogger, r as setLogger, t as ConsoleLogger } from "./logger-zRrlbaQt.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,7 +1,7 @@
1
- import { $ as startInterruptWatch, $n as setAwsClients, $t as WorkGraph, A as renderStatefulReason, An as resolveCaptureObservedState, At as redactSecretsForState, B as exportAliasCollisionScrubWarning, Bn as findLargeInlineResources, Bt as DiffCalculator, C as isFinalSnapshotError, Cn as getDockerImageBySourceHash, Cr as normalizeAwsError, Ct as TEMPLATE_SOURCED_RULES, D as extractDeploymentEventError, Dn as getLegacyStateBucketName, Dr as isThrottlingError, Dt as isSingleDynamicReferenceToken, E as makeCanonicalizePropertiesFn, En as getDefaultStateBucketName, Er as isRetryableTransientError, Et as errorCauseChain, F as green, Fn as stateBucketExistenceConfirmed, Ft as s3BucketDomainName, G as collectInlinePolicyNamesManagedBySiblings, Gn as derivePartitionAndUrlSuffix, Gt as TemplateParser, H as secretBearingStateKeyWarning, Hn as expectedOwnerParam, Ht as describeTypeWithThrottleRetry, I as red, In as warnDeprecatedNoPrefixCliFlag, It as s3BucketDualStackDomainName, J as findActionableSilentDrops, Jt as S3StateBackend, K as clearOnUpdateRemoval, Kn as AssemblyReader, Kt as LockManager, L as yellow, Ln as CFN_TEMPLATE_BODY_LIMIT, Lt as s3BucketRegionalDomainName, M as bold, Mn as resolveStateBucketWithDefault, Mt as classifyReplaySecretRegion, N as cyan, Nn as resolveStateBucketWithDefaultAndSource, Nt as producerRegionsFromState, O as MULTI_REGION_RECREATE_BLOCKED_TYPES, On as resolveApp, Or as markNonRetryable, Ot as maskSecretsInError, P as gray, Pn as resolveUseCdkBootstrapAssets, Pt as s3BucketArn, Q as isInterruptedWaitError, Qn as resetAwsClients, Qt as stringifyValue, R as collectDeclaredOutputNames, Rn as CFN_TEMPLATE_URL_LIMIT, Rt as s3BucketWebsiteUrl, S as createPreDeleteFinalSnapshot, Sn as AssetManifestLoader, St as STATE_SOURCED_READBACK_RULES, T as unsupportedFinalSnapshotError, Tn as synthesisStatusMessage, Tr as isMarkedNonRetryable, Tt as dynamicReferenceTokens, U as stateKeySecretExposure, Un as PARTITION_TABLE, Ut as withRetry, V as isExportAliasCollision, Vn as uploadCfnTemplate, Vt as INTRINSIC_KEYS, W as IAMRoleProvider, Wn as canonicalizeRegion, Wt as DagBuilder, X as beginCommandInterruptScope, Xn as AwsClients, Xt as shouldRetainResource, Y as findSilentDropProperties, Yn as resolveBucketRegion, Yt as rebuildClientForBucketRegion, Z as endCommandInterruptScope, Zn as getAwsClients, Zt as AssetPublisher, _ as computeImplicitDeleteEdges, _n as formatDockerLoginError, _r as StackHasActiveImportsError, _t as replayWarn, a as DeploymentEventsStore, an as stripControlChars, ar as DeployCancelledError, at as carriesDynamicReference, b as buildFinalSnapshotIdentifier, bn as runDockerForeground, bt as requireConfigString, c as replayFailedOperations, cn as ensureAssetStorage, cr as LocalMigrateError, ct as refStateLookupFromResource, d as updatePartialReason, dn as readBootstrapMarkerBody, dr as MissingCdkCliError, dt as resolveExplicitPhysicalId, en as buildAssetRedirectMap, et as CloudControlProvider, f as UNSPECIFIED_SKIP_REASON, fn as validateAssetBucketName, fr as NestedStackChildDirectDestroyError, ft as assertRegionMatch, g as IMPLICIT_DELETE_DEPENDENCIES, gn as dockerSpawnEnvWithSensitive, gr as ResourceUpdateNotSupportedError, gt as readConfigString, h as maskingRetryLogger, hn as buildDockerImage, hr as ResourceTimeoutError, ht as configStringRefusal, i as DeploymentEventsReader, in as escapeRegExp, it as IntrinsicFunctionResolver, j as formatResourceLine, jn as resolveSkipPrefix, jt as scrubResourceRecord, k as isStatefulRecreateTargetSync, kn as resolveAutoAssetStorage, kt as maskSecretsInText, l as replayRollback, ln as getBootstrapMarkerKey, lr as LocalStartServiceError, lt as WAFv2WebACLProvider, m as withResourceDeadline, mn as buildDenyExternalAccessPolicy, mr as ProvisioningError, mt as configBooleanRefusal, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as loadPublishableAssetManifest, nt as disableInstanceApiTermination, o as planFailedOps, on as AssetModeResolver, or as DynamicReferenceRegionAmbiguousError, ot as cfnRefValueFromPhysicalId, p as deleteSkipReason, pn as validateContainerRepoName, pr as PartialFailureError, pt as coerceCfnBoolean, q as ProviderRegistry, qn as processStackMessages, qt as displaySafe, r as DeployEngine, rn as rewriteTemplateAssetReferences, rr as CrossAccountSecretRefusalError, rt as isTerminationProtectionPropagationError, s as planRollback, sn as BOOTSTRAP_MARKER_PREFIX, sr as LocalInvokeBuildError$1, st as getAccountInfo, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as createAssetRedirectResolver, tr as CdkdError, tt as slowCcOperationTimeoutMs, u as updatePartialMessage, un as parseBootstrapMarker, ut as normalizeAwsTagsToCfn, v as ATOMIC_FINAL_SNAPSHOT_TYPES, vn as getDockerCmd, vr as StackTerminationProtectionError, vt as requireConfigArray, w as refusesFinalSnapshot, wn as Synthesizer, wr as withErrorHandling, wt as createSecretMasker, x as ccRoutedFinalSnapshotError, xn as runDockerStreaming, xt as STATE_SOURCED_CROSS_GENERATION_RULES, y as PRE_DELETE_SNAPSHOT_TYPES, yn as partitionSensitiveEnv, yt as requireConfigObject, z as collectPublishedOutputNames, zn as MIGRATE_TMP_PREFIX, zt as applyRoleArnIfSet } from "./deploy-engine-tBUjmzHn.js";
1
+ import { $ as startInterruptWatch, $n as AwsClients, $t as shouldRetainResource, A as renderStatefulReason, An as getLegacyStateBucketName, Ar as isThrottlingError, At as redactSecretsForState, B as exportAliasCollisionScrubWarning, Bn as CFN_TEMPLATE_BODY_LIMIT, Bt as DiffCalculator, C as isFinalSnapshotError, Cn as runDockerForeground, Ct as TEMPLATE_SOURCED_RULES, D as extractDeploymentEventError, Dn as Synthesizer, Dr as withErrorHandling, Dt as isSingleDynamicReferenceToken, E as makeCanonicalizePropertiesFn, En as getDockerImageBySourceHash, Er as normalizeAwsError, Et as errorCauseChain, F as green, Fn as resolveStateBucketWithDefault, Ft as s3BucketDomainName, G as collectInlinePolicyNamesManagedBySiblings, Gn as expectedOwnerParam, Gt as TemplateParser, H as secretBearingStateKeyWarning, Hn as MIGRATE_TMP_PREFIX, Ht as describeTypeWithThrottleRetry, I as red, In as resolveStateBucketWithDefaultAndSource, It as s3BucketDualStackDomainName, J as findActionableSilentDrops, Jn as derivePartitionAndUrlSuffix, Jt as S3StateBackend, K as clearOnUpdateRemoval, Kn as PARTITION_TABLE, Kt as LockManager, L as yellow, Ln as resolveUseCdkBootstrapAssets, Lt as s3BucketRegionalDomainName, M as bold, Mn as resolveAutoAssetStorage, Mt as classifyReplaySecretRegion, N as cyan, Nn as resolveCaptureObservedState, Nt as producerRegionsFromState, O as MULTI_REGION_RECREATE_BLOCKED_TYPES, On as synthesisStatusMessage, Or as isMarkedNonRetryable, Ot as maskSecretsInError, P as gray, Pn as resolveSkipPrefix, Pt as s3BucketArn, Q as isInterruptedWaitError, Qn as resolveBucketRegion, Qt as importableOutputs, R as collectDeclaredOutputNames, Rn as stateBucketExistenceConfirmed, Rt as s3BucketWebsiteUrl, S as createPreDeleteFinalSnapshot, Sn as partitionSensitiveEnv, St as STATE_SOURCED_READBACK_RULES, T as unsupportedFinalSnapshotError, Tn as AssetManifestLoader, Tt as dynamicReferenceTokens, U as stateKeySecretExposure, Un as findLargeInlineResources, Ut as withRetry, V as isExportAliasCollision, Vn as CFN_TEMPLATE_URL_LIMIT, Vt as INTRINSIC_KEYS, W as IAMRoleProvider, Wn as uploadCfnTemplate, Wt as DagBuilder, X as beginCommandInterruptScope, Xn as processStackMessages, Xt as exportNamesCarriedFrom, Y as findSilentDropProperties, Yn as AssemblyReader, Yt as rebuildClientForBucketRegion, Z as endCommandInterruptScope, Zt as importableOutputKeys, _ as computeImplicitDeleteEdges, _n as buildDenyExternalAccessPolicy, _r as ProvisioningError, _t as replayWarn, a as DeploymentEventsStore, an as loadPublishableAssetManifest, at as carriesDynamicReference, b as buildFinalSnapshotIdentifier, bn as formatDockerLoginError, br as StackHasActiveImportsError, bt as requireConfigString, c as replayFailedOperations, cn as stripControlChars, cr as DeployCancelledError, ct as refStateLookupFromResource, d as updatePartialReason, dn as ensureAssetStorage, dr as LocalMigrateError, dt as resolveExplicitPhysicalId, en as AssetPublisher, er as getAwsClients, et as CloudControlProvider, f as UNSPECIFIED_SKIP_REASON, fn as getBootstrapMarkerKey, fr as LocalStartServiceError, ft as assertRegionMatch, g as IMPLICIT_DELETE_DEPENDENCIES, gn as validateContainerRepoName, gr as PartialFailureError, gt as readConfigString, h as maskingRetryLogger, hn as validateAssetBucketName, hr as NestedStackChildDirectDestroyError, ht as configStringRefusal, i as DeploymentEventsReader, in as createAssetRedirectResolver, ir as CdkdError, it as IntrinsicFunctionResolver, j as formatResourceLine, jn as resolveApp, jr as markNonRetryable, jt as scrubResourceRecord, k as isStatefulRecreateTargetSync, kn as getDefaultStateBucketName, kr as isRetryableTransientError, kt as maskSecretsInText, l as replayRollback, ln as AssetModeResolver, lr as DynamicReferenceRegionAmbiguousError, lt as WAFv2WebACLProvider, m as withResourceDeadline, mn as readBootstrapMarkerBody, mr as MissingCdkCliError, mt as configBooleanRefusal, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as WorkGraph, nr as setAwsClients, nt as disableInstanceApiTermination, o as planFailedOps, on as rewriteTemplateAssetReferences, or as CrossAccountSecretRefusalError, ot as cfnRefValueFromPhysicalId, p as deleteSkipReason, pn as parseBootstrapMarker, pt as coerceCfnBoolean, q as ProviderRegistry, qn as canonicalizeRegion, qt as displaySafe, r as DeployEngine, rn as buildAssetRedirectMap, rt as isTerminationProtectionPropagationError, s as planRollback, sn as escapeRegExp, st as getAccountInfo, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as stringifyValue, tr as resetAwsClients, tt as slowCcOperationTimeoutMs, u as updatePartialMessage, un as BOOTSTRAP_MARKER_PREFIX, ur as LocalInvokeBuildError$1, ut as normalizeAwsTagsToCfn, v as ATOMIC_FINAL_SNAPSHOT_TYPES, vn as buildDockerImage, vr as ResourceTimeoutError, vt as requireConfigArray, w as refusesFinalSnapshot, wn as runDockerStreaming, wt as createSecretMasker, x as ccRoutedFinalSnapshotError, xn as getDockerCmd, xr as StackTerminationProtectionError, xt as STATE_SOURCED_CROSS_GENERATION_RULES, y as PRE_DELETE_SNAPSHOT_TYPES, yn as dockerSpawnEnvWithSensitive, yr as ResourceUpdateNotSupportedError, yt as requireConfigObject, z as collectPublishedOutputNames, zn as warnDeprecatedNoPrefixCliFlag, zt as applyRoleArnIfSet } from "./deploy-engine-DxboGDr4.js";
2
2
  import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as getCurrentStackName, h as withStackName, i as runStackBuffered, m as withSkipPrefix, n as getLogger, o as PATTERN_B_NAME_OPTIONS, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-zRrlbaQt.js";
3
- import { t as getCdkdVersion } from "./version-pYF8nPNw.js";
4
- import { t as ASGProvider } from "./asg-provider-tVXU-L28.js";
3
+ import { t as getCdkdVersion } from "./version-BXmUXkY2.js";
4
+ import { t as ASGProvider } from "./asg-provider-DYnIz-Gy.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { createHash, randomBytes, randomUUID } from "node:crypto";
7
7
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -2951,14 +2951,24 @@ var ExportIndexStore = class {
2951
2951
  };
2952
2952
  }
2953
2953
  }));
2954
+ const survivorModifiedAt = /* @__PURE__ */ new Map();
2954
2955
  for (const { ref, state } of results) {
2955
2956
  if (!state || !state.outputs) continue;
2956
2957
  const region = ref.region ?? this.region;
2957
- for (const [name, value] of Object.entries(state.outputs)) entries.set(name, {
2958
- value,
2959
- producerStack: ref.stackName,
2960
- producerRegion: region
2961
- });
2958
+ const stateModified = state.lastModified ?? 0;
2959
+ for (const [name, value] of Object.entries(importableOutputs(state))) {
2960
+ const existing = entries.get(name);
2961
+ if (existing && existing.producerStack !== ref.stackName) {
2962
+ this.warnOnForeignOverwrite(existing, name, ref.stackName, region);
2963
+ if (stateModified < (survivorModifiedAt.get(name) ?? 0)) continue;
2964
+ }
2965
+ entries.set(name, {
2966
+ value,
2967
+ producerStack: ref.stackName,
2968
+ producerRegion: region
2969
+ });
2970
+ survivorModifiedAt.set(name, stateModified);
2971
+ }
2962
2972
  }
2963
2973
  return entries;
2964
2974
  }
@@ -2967,14 +2977,32 @@ var ExportIndexStore = class {
2967
2977
  if (this.loadState.kind !== "loaded") return;
2968
2978
  const next = new Map(this.loadState.entries);
2969
2979
  for (const [name, entry] of next) if (entry.producerStack === stackName && entry.producerRegion === producerRegion) next.delete(name);
2970
- for (const [name, value] of Object.entries(outputs)) next.set(name, {
2971
- value,
2972
- producerStack: stackName,
2973
- producerRegion
2974
- });
2980
+ for (const [name, value] of Object.entries(outputs)) {
2981
+ this.warnOnForeignOverwrite(next.get(name), name, stackName, producerRegion);
2982
+ next.set(name, {
2983
+ value,
2984
+ producerStack: stackName,
2985
+ producerRegion
2986
+ });
2987
+ }
2975
2988
  if (mapsEqual(this.loadState.entries, next)) return;
2976
2989
  await this.persist(next);
2977
2990
  }
2991
+ /**
2992
+ * Two stacks publishing one export name (issue #2193). CloudFormation
2993
+ * refuses the second producer outright; this index has always kept the
2994
+ * LATEST writer, silently, and a consumer's `Fn::ImportValue` then binds to
2995
+ * whichever deployed last. Keeping the writer is unchanged — the index
2996
+ * write is best-effort and runs after the producer's state is already
2997
+ * saved, so there is nothing to refuse here — but it is no longer silent.
2998
+ * Before v9 this fired on every plain-Output name collision too, which is
2999
+ * why it had to wait for the bag to be narrowed to real exports first.
3000
+ */
3001
+ warnOnForeignOverwrite(existing, exportName, stackName, producerRegion) {
3002
+ if (!existing || existing.producerStack === stackName) return;
3003
+ const safeName = displaySafe(exportName);
3004
+ this.logger.warn(`Export '${safeName}' is published by both '${existing.producerStack}' (${existing.producerRegion}) and '${stackName}' (${producerRegion}); the exports index keeps the latest writer, so an Fn::ImportValue on it binds to whichever deployed last. CloudFormation refuses a second producer of the same export name — rename one of the two exports. (If '${existing.producerStack}' predates cdkd's state schema v9, this is its stale entry for a plain output of that name, and its next deploy clears it.)`);
3005
+ }
2978
3006
  async applyPatch(exportName, entry) {
2979
3007
  await this.ensureLoaded();
2980
3008
  if (this.loadState.kind !== "loaded") return;
@@ -58916,6 +58944,7 @@ async function runDestroyForStack(stackName, state, ctx) {
58916
58944
  ...rest,
58917
58945
  resources: { ...remainingResources },
58918
58946
  outputs: {},
58947
+ exportNames: [],
58919
58948
  lastModified: Date.now()
58920
58949
  };
58921
58950
  };
@@ -60701,7 +60730,7 @@ async function deployCommand(stacks, options) {
60701
60730
  validation: validateRecreateTargets({
60702
60731
  template: stackInfo.template,
60703
60732
  state: stateForRecreateCheck?.state ?? {
60704
- version: 8,
60733
+ version: 9,
60705
60734
  stackName: stackInfo.stackName,
60706
60735
  region: stackRegion,
60707
60736
  resources: {},
@@ -62225,7 +62254,7 @@ async function loadStateOrEmpty(stackName, region, stateBackend) {
62225
62254
  region,
62226
62255
  resources: {},
62227
62256
  outputs: {},
62228
- version: 8,
62257
+ version: 9,
62229
62258
  lastModified: Date.now()
62230
62259
  };
62231
62260
  }
@@ -65809,6 +65838,10 @@ var DriftDetectedError = class DriftDetectedError extends CdkdError {
65809
65838
  * a partially-failed `--revert` still exits 2 through `PartialFailureError`) --
65810
65839
  * those modes report per-resource refusals on their own paths, and changing them
65811
65840
  * would alter what a remediation run means, which is not what this closes.
65841
+ * Issue [#2208](https://github.com/go-to-k/cdkd/issues/2208) re-examined that
65842
+ * scoping and KEPT it: what those modes owed was not this exit code but an
65843
+ * honest SENTENCE, since their no-drift line claimed a clean bill of health for
65844
+ * a stack they had not read. See {@link incompleteRemediationMessage}.
65812
65845
  *
65813
65846
  * WHAT DOES NOT TRIGGER IT: a stack whose properties reference
65814
65847
  * `{{resolve:ssm-secure:...}}` still exits 0. Those properties genuinely are not
@@ -65903,6 +65936,171 @@ function outcomeExitSignal(outcome) {
65903
65936
  });
65904
65937
  }
65905
65938
  /**
65939
+ * What {@link incompleteRemediationMessage} says about each reason, and WHICH
65940
+ * CLAIM it is allowed to make about it.
65941
+ *
65942
+ * An exhaustive `Record`, for the same reason {@link notComparedReason} is one:
65943
+ * adding a cause must be a COMPILE ERROR here rather than falling into an
65944
+ * `else` that describes it as something it is not. The first cut of this
65945
+ * function had that `else`, and it was worse than a wrong default -- it
65946
+ * described any unknown cause as a dynamic-reference problem, while
65947
+ * {@link outcomeExitSignal} deliberately routes every NEW cause to the
65948
+ * incomplete side. The two together meant the next cause added would be
65949
+ * reported, at once, to the widest audience and under the wrong name. Carrying
65950
+ * `kind` in the SAME record rather than a second one beside it means a new
65951
+ * reason cannot be given a phrase while quietly inheriting a claim.
65952
+ *
65953
+ * `kind` exists because one blanket tail overclaimed. The line used to end
65954
+ * `..., so cdkd does not know whether they drifted`, which is true of a
65955
+ * throttled read and FALSE of a `Custom::*` resource -- for that one, issue
65956
+ * [#323](https://github.com/go-to-k/cdkd/issues/323)'s position is that drift is
65957
+ * not APPLICABLE, not that cdkd is uncertain. A stack with one throttle and five
65958
+ * `Custom::S3AutoDeleteObjects` would have claimed uncertainty about all six.
65959
+ *
65960
+ * The insertion ORDER is the order the phrases are emitted in, so the line is
65961
+ * deterministic without a second list to keep in sync: "not compared at all"
65962
+ * first, then the partial ones, then the two structural reasons.
65963
+ *
65964
+ * The wording splits on "was ANY of it compared", which is the same split the
65965
+ * human report's `NOT fully compared` heading makes -- a `readFailed` resource
65966
+ * is not "partially" anything.
65967
+ */
65968
+ const UNCOMPARED_REASONS = {
65969
+ readFailed: {
65970
+ kind: "unknown",
65971
+ phrase: "not compared AT ALL: the read or comparison failed"
65972
+ },
65973
+ refused: {
65974
+ kind: "unknown",
65975
+ phrase: "only PARTIALLY compared: cdkd refused to resolve a dynamic reference their state records"
65976
+ },
65977
+ unresolvedToken: {
65978
+ kind: "unknown",
65979
+ phrase: "only PARTIALLY compared: their state records a `{{resolve:...}}` spelling cdkd resolves for nobody, which no re-run can clear"
65980
+ },
65981
+ unsupported: {
65982
+ kind: "byDesign",
65983
+ phrase: "not compared AT ALL: their provider does not support drift detection yet"
65984
+ },
65985
+ skipped: {
65986
+ kind: "byDesign",
65987
+ phrase: "not compared AT ALL: cdkd does not drift-check the type"
65988
+ }
65989
+ };
65990
+ /**
65991
+ * The sentence lead each {@link UncomparedKind} group is reported under.
65992
+ *
65993
+ * Exhaustive for the same reason the record above is, and SEPARATE from it
65994
+ * because the lead is per GROUP while the phrase is per reason: writing the
65995
+ * claim into each phrase would put five copies of two sentences in the file,
65996
+ * and five copies is how two of them come to disagree.
65997
+ *
65998
+ * Insertion order is emit order, and `unknown` comes first deliberately: it is
65999
+ * the half the user can do something about.
66000
+ */
66001
+ const UNCOMPARED_KIND_LEADS = {
66002
+ unknown: "cdkd does not know whether these drifted",
66003
+ byDesign: "Not drift-checked by cdkd at all, which is a coverage limit rather than uncertainty"
66004
+ };
66005
+ /**
66006
+ * How many resources across every report ended UNCOMPARED, per reason.
66007
+ *
66008
+ * The `notCompared` population is read through {@link notComparedOutcomes} --
66009
+ * the single spelling both renderings already share -- and the other two come
66010
+ * from an exhaustive `matchOutcome`, so a new outcome variant cannot join the
66011
+ * "nothing to say about it" side by omission. That is the same guarantee
66012
+ * {@link outcomeExitSignal} carries at the exit code, applied to the count.
66013
+ */
66014
+ function uncomparedTally(reports) {
66015
+ const tally = /* @__PURE__ */ new Map();
66016
+ const bump = (reason) => {
66017
+ tally.set(reason, (tally.get(reason) ?? 0) + 1);
66018
+ };
66019
+ for (const report of reports) {
66020
+ for (const { cause } of notComparedOutcomes(report)) bump(cause);
66021
+ for (const outcome of report.outcomes) matchOutcome(outcome, {
66022
+ drifted: () => {},
66023
+ clean: () => {},
66024
+ notCompared: () => {},
66025
+ unsupported: () => bump("unsupported"),
66026
+ skipped: () => bump("skipped")
66027
+ });
66028
+ }
66029
+ return tally;
66030
+ }
66031
+ /**
66032
+ * The lines `--accept` / `--revert` print INSTEAD of `No drift detected --
66033
+ * nothing to accept.` when the run found no drift but did not manage to compare
66034
+ * everything ([issue #2208](https://github.com/go-to-k/cdkd/issues/2208)).
66035
+ *
66036
+ * MESSAGE-ONLY, and the EXIT CODE deliberately stays `0`. The remediation
66037
+ * modes' exit codes are a documented user contract -- #2108 scoped its `2` to
66038
+ * detection-only mode on purpose, and {@link DriftComparisonIncompleteError}'s
66039
+ * note says why: "changing them would alter what a remediation run means".
66040
+ * Nothing about that reasoning expired. The defect this closes is entirely in
66041
+ * what the run REPORTS: `--accept` / `--revert` already correctly leave an
66042
+ * uncompared resource alone (both iterate the drifted outcomes only, asserted
66043
+ * in `tests/unit/cli/drift-per-resource-failure.test.ts`), so the state and AWS
66044
+ * are right and only the sentence is wrong. Making the remediation path exit
66045
+ * non-zero would break the CI of everyone running `cdkd drift --accept` over a
66046
+ * stack that hits a throttle, to fix a wording problem.
66047
+ *
66048
+ * What the lines have to carry, since the exit code will not carry it: that the
66049
+ * comparison was INCOMPLETE (never that no drift was detected), HOW MANY
66050
+ * resources were not compared and WHY, WHICH of those cdkd is actually
66051
+ * uncertain about, and the pointer to the detection-only run, which is the mode
66052
+ * whose exit code does report it (`2`).
66053
+ *
66054
+ * THE TRIGGER AND THE COUNT ARE DIFFERENT POPULATIONS, deliberately, and
66055
+ * collapsing them is the defect review round 1 found here.
66056
+ *
66057
+ * - The TRIGGER is `anyIncomplete`, i.e. {@link outcomeExitSignal}'s
66058
+ * `incomplete`. It is narrow on purpose: a stack whose ONLY uncompared
66059
+ * resource holds a `{{resolve:ssm-secure:...}}` token must not start
66060
+ * shouting on every run about a comparison no action of the user's can ever
66061
+ * complete -- the same CI-forever hazard that cause is kept out of the exit
66062
+ * code on.
66063
+ * - The COUNT and the LABELS, once the line is triggered, cover EVERY
66064
+ * uncompared resource, each named by its own reason (see
66065
+ * {@link uncomparedTally}). A resource that was not compared was not
66066
+ * compared, whatever the reason, and counting only the clearable ones
66067
+ * printed `1 of 3` on a stack the report a few lines above called
66068
+ * `2 resource(s) NOT fully compared` -- two lines disagreeing about one
66069
+ * run, with the newer and quieter one being the one written to stop a
66070
+ * command from being quietly reassuring.
66071
+ *
66072
+ * WHAT `N` AND `M` ARE, stated because the alternatives are all defensible and
66073
+ * silence about the choice is what made the first cut wrong. `M` is the total
66074
+ * number of resource outcomes, and `N` is every one of them that was not
66075
+ * compared -- so `unsupported` and `skipped` land in `N`, WITH their own
66076
+ * phrase, rather than sitting only in the denominator where they would inflate
66077
+ * `M` and go unnamed. On a remediation path, erring LOUD is the correct
66078
+ * direction. Note this makes `N` deliberately WIDER than the report's
66079
+ * `NOT fully compared` heading, which counts the reference / read population
66080
+ * only and reports `drift unknown` separately: the question this line answers
66081
+ * is #2154's, "was everything actually compared", not "how many entries are in
66082
+ * that block". What being in `N` does NOT buy is a uniform claim about the
66083
+ * resource -- see {@link UNCOMPARED_REASONS}'s `kind`, and see
66084
+ * {@link UncomparedReason} for why counting a `skipped` resource here is not a
66085
+ * reversal of #323's silence.
66086
+ */
66087
+ function incompleteRemediationMessage(reports, mode) {
66088
+ const tally = uncomparedTally(reports);
66089
+ const total = reports.reduce((n, report) => n + report.outcomes.length, 0);
66090
+ const uncompared = [...tally.values()].reduce((a, b) => a + b, 0);
66091
+ const kinds = Object.keys(UNCOMPARED_KIND_LEADS);
66092
+ const reasons = Object.keys(UNCOMPARED_REASONS);
66093
+ const groups = kinds.flatMap((kind) => {
66094
+ const parts = reasons.filter((reason) => UNCOMPARED_REASONS[reason].kind === kind && (tally.get(reason) ?? 0) > 0).map((reason) => `${tally.get(reason)} ${UNCOMPARED_REASONS[reason].phrase}`);
66095
+ return parts.length === 0 ? [] : [`${UNCOMPARED_KIND_LEADS[kind]} — ${parts.join("; ")}.`];
66096
+ });
66097
+ return [
66098
+ `Comparison INCOMPLETE — nothing to ${mode}, and that is NOT a clean bill of health: ${uncompared} of ${total} resource(s) could not be compared.`,
66099
+ ...groups,
66100
+ `Re-run 'cdkd drift' without --${mode} to see which resources and why — a detection-only run exits 2 while a comparison is incomplete.`
66101
+ ];
66102
+ }
66103
+ /**
65906
66104
  * `cdkd drift [<stack>...]` command implementation.
65907
66105
  *
65908
66106
  * Three operating modes (mutually exclusive):
@@ -65979,6 +66177,10 @@ async function driftCommand(stacks, options) {
65979
66177
  return;
65980
66178
  }
65981
66179
  if (!drifted) {
66180
+ if (anyIncomplete) {
66181
+ for (const line of incompleteRemediationMessage(reports, options.accept ? "accept" : "revert")) logger.info(line);
66182
+ return;
66183
+ }
65982
66184
  logger.info(options.accept ? "No drift detected — nothing to accept." : "No drift detected — nothing to revert.");
65983
66185
  return;
65984
66186
  }
@@ -73681,7 +73883,7 @@ async function rollbackCommand(stackArg, options) {
73681
73883
  const saveState = async () => {
73682
73884
  const next = () => ({
73683
73885
  ...baseState,
73684
- version: 8,
73886
+ version: 9,
73685
73887
  region,
73686
73888
  resources: { ...stateResources },
73687
73889
  lastModified: Date.now()
@@ -76774,11 +76976,12 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
76774
76976
  };
76775
76977
  }
76776
76978
  return {
76777
- version: 8,
76979
+ version: 9,
76778
76980
  stackName,
76779
76981
  region,
76780
76982
  resources,
76781
76983
  outputs: existingState?.outputs ?? {},
76984
+ ...existingState ? exportNamesCarriedFrom(existingState) : { exportNames: [] },
76782
76985
  lastModified: Date.now()
76783
76986
  };
76784
76987
  }
@@ -77482,7 +77685,7 @@ async function buildCrossStackResolver(consumerRegion, opts) {
77482
77685
  try {
77483
77686
  const got = await stateBackend.getState(ref.stackName, region);
77484
77687
  if (!got || !got.state.outputs) continue;
77485
- if (exportName in got.state.outputs) {
77688
+ if (importableOutputKeys(got.state).includes(exportName)) {
77486
77689
  const value = got.state.outputs[exportName];
77487
77690
  if (typeof value === "string") return value;
77488
77691
  if (typeof value === "number" || typeof value === "boolean") return String(value);
@@ -87059,4 +87262,4 @@ function buildProgram() {
87059
87262
 
87060
87263
  //#endregion
87061
87264
  export { buildProgram };
87062
- //# sourceMappingURL=program-CMiO_i__.js.map
87265
+ //# sourceMappingURL=program-BJ8R04vD.js.map