@cdkd/cli 0.343.1 → 0.344.0
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/{ambient-client-defaults-CPmXchp0.js → ambient-client-defaults-w6GrD1cQ.js} +10 -4
- package/dist/ambient-client-defaults-w6GrD1cQ.js.map +1 -0
- package/dist/{asg-provider-CWB0lHRb.js → asg-provider-BNaBEVOz.js} +6 -6
- package/dist/{asg-provider-CWB0lHRb.js.map → asg-provider-BNaBEVOz.js.map} +1 -1
- package/dist/{aws-client-defaults-BayGUTJ4.js → aws-client-defaults-DP5k4Mfi.js} +5 -2
- package/dist/{aws-client-defaults-BayGUTJ4.js.map → aws-client-defaults-DP5k4Mfi.js.map} +1 -1
- package/dist/{aws-clients-C8p6sQfr.js → aws-clients-CUCH-WCd.js} +2 -2
- package/dist/{aws-clients-C8p6sQfr.js.map → aws-clients-CUCH-WCd.js.map} +1 -1
- package/dist/{aws-failure-text-zxW2CTmF.js → aws-failure-text-jomzO3aT.js} +5 -2
- package/dist/{aws-failure-text-zxW2CTmF.js.map → aws-failure-text-jomzO3aT.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{db-instance-modify-retry-sToRRDYL.js → db-instance-modify-retry-BwAEmSQH.js} +4 -4
- package/dist/{db-instance-modify-retry-sToRRDYL.js.map → db-instance-modify-retry-BwAEmSQH.js.map} +1 -1
- package/dist/{deploy-engine-CJ363Jh0.js → deploy-engine-BB7LVmAG.js} +40 -15
- package/dist/deploy-engine-BB7LVmAG.js.map +1 -0
- package/dist/{ecr-uri-BUjy2DZJ.js → ecr-uri-CzGt7ztW.js} +3 -3
- package/dist/{ecr-uri-BUjy2DZJ.js.map → ecr-uri-CzGt7ztW.js.map} +1 -1
- package/dist/{iam-role-provider-DXZrowSp.js → iam-role-provider-BlSi1iNz.js} +6 -6
- package/dist/{iam-role-provider-DXZrowSp.js.map → iam-role-provider-BlSi1iNz.js.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{neptune-provider-BaG6dNvC.js → neptune-provider-oRAIG3Kd.js} +7 -7
- package/dist/{neptune-provider-BaG6dNvC.js.map → neptune-provider-oRAIG3Kd.js.map} +1 -1
- package/dist/{program-DvCw1Vlz.js → program-BQH8NPXj.js} +310 -164
- package/dist/program-BQH8NPXj.js.map +1 -0
- package/dist/{provider-classes-XzlF2NN6.js → provider-classes-DmCFkSIr.js} +13 -13
- package/dist/{provider-classes-XzlF2NN6.js.map → provider-classes-DmCFkSIr.js.map} +1 -1
- package/dist/{rds-provider-B9nEPi0J.js → rds-provider-D7y6wD4F.js} +8 -8
- package/dist/{rds-provider-B9nEPi0J.js.map → rds-provider-D7y6wD4F.js.map} +1 -1
- package/dist/{read-replica-CuWA09yj.js → read-replica-c2dYFLKs.js} +3 -3
- package/dist/{read-replica-CuWA09yj.js.map → read-replica-c2dYFLKs.js.map} +1 -1
- package/dist/{update-removal-Bp0Y4QQ2.js → update-removal-BjJh8h9m.js} +16 -5
- package/dist/{update-removal-Bp0Y4QQ2.js.map → update-removal-BjJh8h9m.js.map} +1 -1
- package/dist/{version-sV00MIFa.js → version-b-uLTNXf.js} +2 -2
- package/dist/{version-sV00MIFa.js.map → version-b-uLTNXf.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-CPmXchp0.js.map +0 -1
- package/dist/deploy-engine-CJ363Jh0.js.map +0 -1
- package/dist/program-DvCw1Vlz.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as getCdkdVersion } from "./version-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $a as applyRoleArnIfSet, $i as buildFinalSnapshotIdentifier, $l as isReadableBag, $n as updatePartialMessage, $r as DEFAULT_RESOURCE_TIMEOUT_MS, $s as malformedOutputsWarning, $t as NESTED_PENDING_PARENT_REASON, $u as runDockerForeground, A as PROTECTION_PROPERTY_BY_TYPE, Aa as RollbackInlinePolicyWriters, Ad as AssemblyReader, Ai as maskEventTextWithBoundBags, Al as recordPhysicalNameCopy, An as rollbackOrphanIds, Ao as recordedReferenceRegions, Ar as retiredNameGenerationsLeaving, As as refuseMalformedResourceEntriesForImport, Au as isCrossRegionRedirect, Bc as maskAtCoordinates, Bd as ownValue, Bl as wholeStringLeavesOf, Bn as propertiesChangedReason, Bo as unsettledItemsField, Br as exportAliasCollisionScrubWarning, Bs as refuseMalformedResourcePropertiesForOrphan, Bt as refactorMarkerRefusalMessage, Bu as describeDockerExecFailure, C as refusePendingMovesOut, Ca as withPrintingSecrets, Cc as findHandledUnwrittenCreateOnly, Cd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ci as noEchoComparisonForTemplate, Cl as spelledKeysOf, Cn as DeploymentEventsStore, Co as isStalePlaceholderArnAttribute, Cr as removeProtectionTypeList, Cs as malformedLocalResourcesWarning, Cu as createAssetRedirectResolver, D as diffSecurity, Dc as NO_CC_HANDLERS_REASON, Dd as canonicalizeRegion, Di as createReadOnlyAttributeHealerFactory, Dn as findRefactorHints, Do as keepHeldTokenProvenance, Dr as nameScopeOf, Ds as refuseMalformedResourceEntries, Du as ensureAssetStorage, E as serviceTokenBlockingReason, Ed as PARTITION_TABLE, Ei as withAttemptedItemsMasked, El as inheritNestedStackParameterAssociations, En as formatDestructiveChange, Er as nameGenerationHighWaterOf, Es as refuseMalformedResourceAttributesForOrphan, Eu as AssetModeResolver, Fd as utf8ByteLength, Fl as recordMaskOnlyValue, Fn as differingRemedy, Fo as carriesDynamicReference, Fr as namesAnyDeclaredParameter, Fs as malformedDriftResourcePropertiesWarning, Ft as keptForRetainedRecord, Fu as validateContainerRepoName, Ga as DiffCalculator, Gc as noEchoLeavesOf, Gd as resolveAssemblyPath, Gi as PRE_DELETE_SNAPSHOT_TYPES, Gl as S3StateBackend, Gn as DELETED_RESOURCE_REMEDY, Go as findReplacedReadersOfRecreateTargets, Gr as exportNameNoEchoParameters, Gs as malformedOrphansWarning, Gu as dockerSpawnEnvWithSensitive, Hc as maskWholeValue, Hd as describeFileReadFailure, Hi as secretSegmentsOfState, Hl as isSingleDynamicReferenceToken, Hn as referencedLogicalIds, Ho as unsettledPropertiesOf, Hr as secretBearingStateKeyWarning, Hs as UNREADABLE_ORPHANS_CONTAINER_ROW, Ht as sameMove, Hu as redactedCause, Ic as DagBuilder, Id as defineOwnKey, Ii as secretNamedRecordNeedles, Il as recordMaskOnlyValuesIn, In as isPairableType, Io as keepsSecretReferenceToken, Ir as reachableDivergentParameters, Is as malformedResourcePropertiesWarning, It as recordRetainedForReadoption, Iu as BOOTSTRAP_MARKER_PREFIX, Ja as poisonRenderedSpellingsCollidingIn, Jc as readbackPathFor, Ji as effectiveDeletionPolicy, Jl as describeRegionValueKind, Jn as withUnprovenUnsettled, Jo as isStatefulRecreateTargetForReplace, Jr as noEchoParameterValueSeed, Js as repairMalformedOrphansForReadOnly, Ju as warnFinchArgvExposure, Ka as IntrinsicFunctionResolver, Kc as noEchoOutputsComparison, Kd as injectAwsRegion, Ki as ccRoutedFinalSnapshotError, Kl as splitImportedOps, Kn as recordAfterRollbackUpdate, Ko as shownType, Kr as exportNameSecretExposure, Ks as refuseMalformedOrphans, Kt as formatResourceLine, Ku as finchSecretArgvRefusal, Lc as TemplateParser, Ld as hasOwnKey, Li as stateSecretNameNeedles, Ll as recordNoEchoAttributeValues, Ln as looselyEqual, Lo as withSharedDrainBudget, Lr as resourcesNamingDeclaredParameter, Ls as refuseMalformedResourcePropertiesForDestroy, Lt as readRefactorMarker, Lu as buildDockerImage, M as perType, Ma as deleteIndeterminateGuards, Md as processStackMessages, Mi as orphanRecordsPrintingBag, Ml as splitGetAttStringForm, Mn as changedReferenceInDiff, Mo as isImpossibleEmptyStoredAttribute, Ms as refuseMalformedResourceEntriesForOrphan, Mt as withResourceDeadline, Mu as parseBootstrapMarker, N as readProtection, Na as deleteLeftInPlace, Nd as describeJsonParseFailure, Ni as secretNamePrintingBag, Nl as carriesSecretMask, Nn as changedReferencePath, No as carriesFetchableDynamicReference, Nr as inheritProducerRegions, Ns as repairMalformedResourceEntriesForReadOnly, Nt as IMPLICIT_DELETE_DEPENDENCIES, Nu as readBootstrapMarkerBody, O as recordedProtectionEvidence, Oa as setResolvedResourceTimeouts, Oc as hasNoCloudControlHandlers, Od as derivePartitionAndUrlSuffix, Oi as completedReplayEntries, Ol as physicalNameCopiesOf, On as hintSidesOf, Or as retiredAfterRollback, Os as refuseMalformedResourceEntriesForDeploy, Ou as buildDenyExternalAccessPolicy, Pa as deleteSkipReason, Pd as parseFailureDebugDetail, Pi as secretNamePrintingBags, Pl as provenPublicValue, Pn as changedReferenceReason, Po as isNamelessDynamicReferenceError, Pr as computeParameterTaint, Ps as unreadableResourceEntries, Pt as computeImplicitDeleteEdges, Pu as validateAssetBucketName, Qa as refuseUnreadableCdkCrossAccountRefs, Qc as liveMatchesUnresolvedTokenFrame, Qi as createPreDeleteFinalSnapshot, Ql as importableOutputs, Qn as undeclaredEmptyObservedKeys, Qr as bindingSkippedOutputs, Qs as malformedOutputsRefusalMessage, Qt as resolvePendingCloudControlRequests, Qu as getDockerCmd, Rc as canonicalCoordinates, Rd as hasPlainPrototype, Ri as storedSecretNameNeedles, Rl as recordNoEchoParameterFreshValue, Rn as mappingPairs, Ro as INTRINSIC_KEYS, Rr as WITHHELD_NAME_DISPLAY, Rs as refuseMalformedResourcePropertiesForDrift, Rt as readRefactorMarkerOnce, Ru as resolveDockerContextDirectory, S as pendingMovesRefusalMessage, Sc as findActionableSdkUnwired, Sd as uploadCfnTemplate, Si as noEchoAttributeNamesOf, Sl as isUncertifiedBaselineMaskPosition, Sn as DeploymentEventsReader, So as cfnRefValueFromPhysicalId, Sr as segmentCleanupOptions, Ss as malformedLocalResourceEntriesWarning, Su as buildAssetRedirectMap, T as findServiceTokenRefusals, Ta as CloudControlProvider, Tc as unwrittenCreateOnlyReplacement, Td as expectedOwnerParam, Ti as noEchoParameterNamesOf, Tl as identityKeyFor, Tn as findDestructiveChanges, To as refStateLookupFromResource, Tr as nameGenerationCarriedFrom, Ts as malformedScrubResourceEntriesRefusalMessage, Tu as rewriteTemplateAssetReferences, Uc as maskedLeafCoordinatesOf, Ud as displayAssemblyPath, Ui as withSecretPhysicalIdsMaskedInState, Ul as LockManager, Un as replayFailedOperations, Uo as withUnsettledProperties, Ur as secretSafeKeyDisplay, Us as hasReadableOrphans, Ut as updateRefactorMarker, Uu as redactedDockerCause, Vc as maskReadbackAtCoordinates, Vd as absoluteAssemblyPathEscape, Vl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Vn as proposeRenames, Vo as unsettledItemsOf, Vr as secretBearing, Vs as repairMalformedResourcePropertiesForReadOnly, Vt as refuseRefactorMarker, Vu as describeDockerFailure, Wa as isWaitAbandonedError, Wc as noEchoCoordinatesOf, Wd as renderAssemblyPathEscape, Wi as ATOMIC_FINAL_SNAPSHOT_TYPES, Wl as isLockInfoExpired, Wn as replayRollback, Wo as withoutUnsettledProperties, Wr as carriedExportAliasExposure, Ws as malformedOrphansRefusalMessage, Wu as redactDockerArgvValues, Xa as resolveDynamicReferences, Xc as recordedNoEchoValuesOf, Xi as refusesFinalSnapshot, Xl as hasReadableExportSet, Xn as equalModuloMarkedMask, Xo as renderStatefulReason, Xr as collectPublishedOutputNames, Xs as malformedExportSourceWarning, Xu as isMalformedEnvKey, Yc as readsNoEchoSource, Yd as resolveBucketRegion, Yi as isFinalSnapshotError, Yl as exportNamesCarriedFrom, Yn as calculateResourceDrift, Yo as isStatefulRecreateTargetSync, Yr as collectDeclaredOutputNames, Ys as malformedExportNamesWarning, Yu as isDockerClientEnvKey, Za as producerLookupOver, Zc as valueAtCoordinate, Zi as unsupportedFinalSnapshotError, Zl as importableOutputKeys, Zn as equalModuloMask, Zr as isExportAliasCollision, Zs as malformedLocalOutputsWarning, Zt as pendingRequestCount, Zu as formatDockerLoginError, _ as listNestedTemplateRows, _a as applyCustomResourceResponseExpiration, _c as STATE_RESOURCES_MALFORMED, _d as ssmResolvedValueType, _i as cyan, _l as scrubResourceRecord, _n as loadJournaledOrphans, _r as findNestedStackTypeChanges, _s as refuseMalformedOrphansForOrphan, _u as withStackInstanceIdWithheld, a as scanActiveConsumers, ac as refuseDivergentRecordRegionForDestroy, ad as getDefaultStateBucketName, ai as withStackRecords, al as hasMaskableValues, an as recordDisplacedSkips, ao as AWS_CREDENTIAL_ENV_KEYS, as as withRetry, au as hasUnverifiableParameterRefusal, b as hasPendingMovesOut, ba as readsNoEchoDeleteValues, bc as hasReadableOutputs, bd as MIGRATE_TMP_PREFIX, bi as red, bl as DYNAMIC_REFERENCE_TOKEN_SCAN, bn as makeSiblingClaimReader, bo as parameterTypeMayLoseSecretIdentity, bs as unreadableOrphanRecords, bu as stringifyValue, c as inheritedProvenanceForChildDiff, cc as malformedStateRefusalMessage, cd as resolveApp, ci as holdsSupersededResources, cl as printingCorpusOf, cn as withNestedRevertRun, co as envCredentialsAreAssumedRole, cr as demoteSupersededOrphans, cs as declaresNoEcho, cu as timePhase, d as conditionInputsFrom, da as CC_BROKEN_REASON, dc as refuseMalformedResourcesForExport, dd as resolveSkipPrefix, di as supersededHeldByOtherTypeWarning, dl as shareLogOnlyValues, dn as withNestedStackContext, do as producerRegionsFromState, dr as planFailedOps, ds as malformedOrphanRecordsRefusalMessage, du as CrossPrefixScanCache, ed as runDockerStreaming, ei as DEFAULT_RESOURCE_WARN_AFTER_MS, el as redactForState, en as displacedOpClause, eo as assertFlagRoleArn, er as updatePartialReason, eu as orphansAfterRollback, f as parentSuppliedValues, fa as ProviderRegistry, fc as refuseMalformedState, fd as resolveStateBucketWithDefault, fi as supersededHolderOf, fl as unionOfSecretBags, fn as deleteJournaledOrphans, fo as regionLessSecretName, fr as recheckFailedPlan, fs as malformedOrphanRecordsWarning, fu as applyCrossPrefixScan, g as isAbsoluteAssetPath, ga as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, gc as withheldAccountClause, gd as warnDeprecatedNoPrefixCliFlag, gi as bold, gl as maskSecretsInText, gn as journaledOrphanLines, gr as withPreviousPolicies, gs as refuseMalformedOrphanRecordsForDestroy, gu as stackInstanceIdOf, h as findNestedTemplateTreeDefect, ha as wouldReturnToSdkProvider, hc as accountArgs, hd as stateBucketExistenceConfirmed, hl as maskSecretsInError, hn as isHandledOrphan, hr as resolveReplacementOldType, hs as refuseMalformedOrphanRecords, hu as isNotImplemented, i as mergeNoChangeOutputs, ic as STATE_REGION_DIVERGED, id as synthesisStatusMessage, il as createUnionSecretMasker, in as nestedChildStackName$1, io as sendableAssumeRoleCommand, ir as withCreateTokenLedger, is as describeTypeWithThrottleRetry, iu as hasReasonlessBaselineRefusal, j as isProtectionValueActive, ja as UNSPECIFIED_SKIP_REASON, jd as StageLoadError, ji as namingSecretsWithRecordedNoEcho, jl as recordNestedStackParameterExpressions, jn as withMovedTo, jo as getAccountInfo, jr as withNameGenerationReached, js as refuseMalformedResourceEntriesForImportSave, ju as getBootstrapMarkerKey, k as recordedProtectionNote, ka as slowCcOperationTimeoutMs, kd as refuseFailedLookups, ki as journaledOrphanPrintingBag, kn as movedToHint, ko as recordedOutputReferenceRegions, kr as retiredNameGenerationsAfter, ks as refuseMalformedResourceEntriesForDestroy, ku as assertAssetBucketRegion, l as makeCanonicalizePropertiesFn, lc as refuseMalformedResourcesForDeploy, ld as resolveAutoAssetStorage, li as isSupersededResourceRecord, ll as recordLogOnlyParameterValue, ln as collectNestedChildUnaddressed, lo as classifyRecordedSecretRegion, lr as isJournaledOrphan, ls as deployRefusesOrphanRowsReason, lu as rebuildClientForBucketRegion, m as childTemplateLoader, ma as isCustomResource, mc as JSON_LISTING_HOLE_VALUE, md as resolveUseCdkBootstrapAssets, mi as withoutSuperseded, ml as errorCauseChain, mn as dropFailedHint, mr as replacementNeverSwapped, ms as previewableOrphanRecords, mu as isAccessDenied, n as isSecretBearingReferenceString, nc as refuseMalformedOutputsForDestroy, nd as getDockerImageBySourceHash, nn as dropSettledNestedJournals, no as explicitRoleArnOrThrow, nr as ledgerForStack, ns as prefetchCreateOnlyPropertyPaths, nu as shouldRetainResource, o as inRunStackKey, oc as malformedRenderedContainersWarning, od as getLegacyStateBucketName, ol as literalSplitDelimitersOf, oo as applyCallerIdentityCredentials, or as planRollback, os as parameterInputsFor, ou as PhaseClock, p as readRecordedConditionVerdicts, pa as ccBrokenReason, pc as repairMalformedResourcesForReadOnly, pd as resolveStateBucketWithDefaultAndSource, pi as supersededResourcesOf, pl as createSecretMasker, pn as dropFailedCommands, pr as recordUnderIdIsNotOwn, ps as malformedOrphanRowsKeptWarning, pu as crossPrefixDeniedWarning, qa as isAlwaysLiveAttribute, qd as injectedAwsRegionValue, qi as ccRoutedInstanceTakesNoSnapshot, ql as acceptedCreateOnlyDropsOf, qn as settleUnsettledPrevious, qo as MULTI_REGION_RECREATE_BLOCKED_TYPES, qr as isWholeDynamicReferenceValue, qs as refuseMalformedOrphansForDestroy, qu as partitionSensitiveEnv, r as keptWholeReasonText, rc as repairMalformedOutputsForReadOnly, rd as Synthesizer, ri as destroyStackRecordsView, rl as carryLogOnlyValues, ro as isIamRoleArn, rs as templateResourceTypes, ru as stackInstanceIdCarriedFrom, s as crossStackOutputProvenanceSource, sc as malformedResourcesWarning, sd as loadCdkJson, si as deleteSupersededEntry, sl as logOnlyValueCount, sn as revertedNestedRowIds, so as callerEnvCredentials, sr as seedsDeleteFirstGuard, su as renderPhaseTimings, t as DeployEngine, tc as refuseMalformedOutputs, td as AssetManifestLoader, ti as maskingRetryLogger, tn as displacedPhysicalIdShown, to as assertSendableRoleArn, tu as orphansCarriedFrom, u as conditionFingerprint, uc as refuseMalformedResourcesForDestroy, ud as resolveCaptureObservedState, ui as supersededAfterRollback, ul as recordLogOnlyValue, un as getCurrentNestedStackContext, uo as classifyReplaySecretRegion, ur as isReplacementOrphan, us as isReadableOrphanRecord, uu as CrossPrefixReadError, v as renderNestedTemplateTreeDefect, va as customResourceResponseExpirationWarning, vc as UNREADABLE_RESOURCES_MAP_ROW, vd as CFN_TEMPLATE_BODY_LIMIT, vi as gray, vl as withPhysicalNameCopies, vn as sameJournaledOrphans, vo as coerceParameterTypedValue, vs as repairMalformedOrphanRecordsForReadOnly, vu as AssetPublisher, w as deferredServiceTokenWarning, wd as decodeListingKey, wi as noEchoExactEchoLeavesOf, wl as pathCrossesDottedKey, wn as constructPathOf$1, wo as lacksRecordedTableArn, wr as orphanNeedsIdentity, ws as malformedResourceEntriesWarning, wu as loadPublishableAssetManifest, x as pendingMovesOutOf, xa as isCustomResourceType$1, xc as hasReadableResources, xd as findLargeInlineResources, xi as yellow, xl as dynamicReferenceTokens, xn as planOrphanAdoption, xo as AWS_NO_VALUE, xs as isReadableResourceEntry, xu as WorkGraph, y as templateIdentity, ya as TemplateNoEchoReresolver, yc as displayLogicalId, yd as CFN_TEMPLATE_URL_LIMIT, yi as green, yn as makeForeignHolderScan, yo as isUnboundTemplateParameter, ys as unpreviewableOrphanRecords, yu as isSensitiveAttributeName, zc as isMarkedCoordinate, zd as nullPrototypeRecord, zi as extractDeploymentEventError, zl as recordProvenPublicExpression, zn as parseMappingFile, zr as displayTextOrWithheld, zs as refuseMalformedResourcePropertiesForExport, zt as refactorMarkerMovesOf, zu as describeDockerCapturedOutput } from "./deploy-engine-CJ363Jh0.js";
|
|
4
|
-
import { $ as CdkdError, A as stripControlChars, B as retryClassificationText, Ct as setPasteableRunFlags, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, R as isRetryableTransientError, St as withheldTargetClause, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as AccountIdUnavailableError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ResourceTimeoutError, bt as shellBoundedDisplay, dt as SHELL_ACTIVE_WHY, et as DeployCancelledError, g as PartialFailureError, gt as pasteableCommand, h as NestedStackChildDirectDestroyError, ht as isInertUnquoted, i as credentialFingerprint, it as ProvisioningError, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as TIMEOUT_FLAG_RESOURCE_TYPE, n as ambientCredentialConfig, nt as LocalInvokeBuildError$1, o as formatError, ot as StateError, pt as commandHole, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, s as handleError, st as SynthesisError, t as ambientClientDefaults, u as LocalStartServiceError, v as StackHasActiveImportsError, vt as plainOrDescribed, wt as setPasteableVerbFlags, xt as shellQuote, y as StackTerminationProtectionError, yt as quotedOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $t as forceQuitRecoveryClause, Dt as logicalIdShown, H as assertRegionMatch, M as VALUE_NOT_SHOWN, Qt as buildLockContentionMessage, U as isMarkedNotGone, V as RESOURCE_NOT_FOUND, Xt as UNREPRODUCIBLE_LOCK_CLAUSE, Zt as buildForceUnlockCommand, an as CUSTOM_RESOURCE_RESPONSE_PREFIX, bt as interruptWatchListenerCount, dn as
|
|
6
|
-
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-
|
|
7
|
-
import { a as
|
|
8
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
1
|
+
import { t as getCdkdVersion } from "./version-b-uLTNXf.js";
|
|
2
|
+
import { $ as STACK_REF_MAX_CODE_POINTS, F as derivesPatternBName, I as generateResourceName, J as withSkipPrefix, K as isNameGeneration, M as PATTERN_B_NAME_OPTIONS, N as PATTERN_B_NAME_PROPERTIES, P as PATTERN_B_RESOURCE_TYPES, Q as SECRET_REF_MAX_CODE_POINTS, S as coerceCfnBoolean, Y as withStackScope, Z as SAFE_MSG_ALTERED_CHAR, a as safeStringify, at as displaySafe, c as isStdoutReservedForPayload, dt as stringifyJsonPayload, et as UNRENDERABLE, f as runStackBuffered, ft as terminalSafe, h as getLiveRenderer, it as displayIdent, l as releaseStdoutForPayload, lt as plainIdentOr, n as describeAwsFailure, nt as cutMarker, ot as displayStackName, pt as truncateCodePoints, rt as displayAwsMessage, s as getLogger, st as isPasteableIdent, tt as asIsMessage, u as reserveStdoutForPayload, ut as safeMsg, v as explicitNamePropertyFor } from "./aws-failure-text-jomzO3aT.js";
|
|
3
|
+
import { $a as applyRoleArnIfSet, $i as buildFinalSnapshotIdentifier, $l as isReadableBag, $n as updatePartialMessage, $r as DEFAULT_RESOURCE_TIMEOUT_MS, $s as malformedOutputsWarning, $t as NESTED_PENDING_PARENT_REASON, $u as runDockerForeground, A as PROTECTION_PROPERTY_BY_TYPE, Aa as RollbackInlinePolicyWriters, Ad as AssemblyReader, Ai as maskEventTextWithBoundBags, Al as recordPhysicalNameCopy, An as rollbackOrphanIds, Ao as recordedReferenceRegions, Ar as retiredNameGenerationsLeaving, As as refuseMalformedResourceEntriesForImport, Au as isCrossRegionRedirect, Bc as maskAtCoordinates, Bd as ownValue, Bl as wholeStringLeavesOf, Bn as propertiesChangedReason, Bo as unsettledItemsField, Br as exportAliasCollisionScrubWarning, Bs as refuseMalformedResourcePropertiesForOrphan, Bt as refactorMarkerRefusalMessage, Bu as describeDockerExecFailure, C as refusePendingMovesOut, Ca as withPrintingSecrets, Cc as findHandledUnwrittenCreateOnly, Cd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ci as noEchoComparisonForTemplate, Cl as spelledKeysOf, Cn as DeploymentEventsStore, Co as isStalePlaceholderArnAttribute, Cr as removeProtectionTypeList, Cs as malformedLocalResourcesWarning, Cu as createAssetRedirectResolver, D as diffSecurity, Dc as NO_CC_HANDLERS_REASON, Dd as canonicalizeRegion, Di as createReadOnlyAttributeHealerFactory, Dn as findRefactorHints, Do as keepHeldTokenProvenance, Dr as nameScopeOf, Ds as refuseMalformedResourceEntries, Du as ensureAssetStorage, E as serviceTokenBlockingReason, Ed as PARTITION_TABLE, Ei as withAttemptedItemsMasked, El as inheritNestedStackParameterAssociations, En as formatDestructiveChange, Er as nameGenerationHighWaterOf, Es as refuseMalformedResourceAttributesForOrphan, Eu as AssetModeResolver, Fd as utf8ByteLength, Fl as recordMaskOnlyValue, Fn as differingRemedy, Fo as carriesDynamicReference, Fr as namesAnyDeclaredParameter, Fs as malformedDriftResourcePropertiesWarning, Ft as keptForRetainedRecord, Fu as validateContainerRepoName, Ga as DiffCalculator, Gc as noEchoLeavesOf, Gd as resolveAssemblyPath, Gi as PRE_DELETE_SNAPSHOT_TYPES, Gl as S3StateBackend, Gn as DELETED_RESOURCE_REMEDY, Go as findReplacedReadersOfRecreateTargets, Gr as exportNameNoEchoParameters, Gs as malformedOrphansWarning, Gu as dockerSpawnEnvWithSensitive, Hc as maskWholeValue, Hd as describeFileReadFailure, Hi as secretSegmentsOfState, Hl as isSingleDynamicReferenceToken, Hn as referencedLogicalIds, Ho as unsettledPropertiesOf, Hr as secretBearingStateKeyWarning, Hs as UNREADABLE_ORPHANS_CONTAINER_ROW, Ht as sameMove, Hu as redactedCause, Ic as DagBuilder, Id as defineOwnKey, Ii as secretNamedRecordNeedles, Il as recordMaskOnlyValuesIn, In as isPairableType, Io as keepsSecretReferenceToken, Ir as reachableDivergentParameters, Is as malformedResourcePropertiesWarning, It as recordRetainedForReadoption, Iu as BOOTSTRAP_MARKER_PREFIX, Ja as poisonRenderedSpellingsCollidingIn, Jc as readbackPathFor, Ji as effectiveDeletionPolicy, Jl as describeRegionValueKind, Jn as withUnprovenUnsettled, Jo as isStatefulRecreateTargetForReplace, Jr as noEchoParameterValueSeed, Js as repairMalformedOrphansForReadOnly, Ju as warnFinchArgvExposure, Ka as IntrinsicFunctionResolver, Kc as noEchoOutputsComparison, Kd as injectAwsRegion, Ki as ccRoutedFinalSnapshotError, Kl as splitImportedOps, Kn as recordAfterRollbackUpdate, Ko as shownType, Kr as exportNameSecretExposure, Ks as refuseMalformedOrphans, Kt as formatResourceLine, Ku as finchSecretArgvRefusal, Lc as TemplateParser, Ld as hasOwnKey, Li as stateSecretNameNeedles, Ll as recordNoEchoAttributeValues, Ln as looselyEqual, Lo as withSharedDrainBudget, Lr as resourcesNamingDeclaredParameter, Ls as refuseMalformedResourcePropertiesForDestroy, Lt as readRefactorMarker, Lu as buildDockerImage, M as perType, Ma as deleteIndeterminateGuards, Md as processStackMessages, Mi as orphanRecordsPrintingBag, Ml as splitGetAttStringForm, Mn as changedReferenceInDiff, Mo as isImpossibleEmptyStoredAttribute, Ms as refuseMalformedResourceEntriesForOrphan, Mt as withResourceDeadline, Mu as parseBootstrapMarker, N as readProtection, Na as deleteLeftInPlace, Nd as describeJsonParseFailure, Ni as secretNamePrintingBag, Nl as carriesSecretMask, Nn as changedReferencePath, No as carriesFetchableDynamicReference, Nr as inheritProducerRegions, Ns as repairMalformedResourceEntriesForReadOnly, Nt as IMPLICIT_DELETE_DEPENDENCIES, Nu as readBootstrapMarkerBody, O as recordedProtectionEvidence, Oa as setResolvedResourceTimeouts, Oc as hasNoCloudControlHandlers, Od as derivePartitionAndUrlSuffix, Oi as completedReplayEntries, Ol as physicalNameCopiesOf, On as hintSidesOf, Or as retiredAfterRollback, Os as refuseMalformedResourceEntriesForDeploy, Ou as buildDenyExternalAccessPolicy, Pa as deleteSkipReason, Pd as parseFailureDebugDetail, Pi as secretNamePrintingBags, Pl as provenPublicValue, Pn as changedReferenceReason, Po as isNamelessDynamicReferenceError, Pr as computeParameterTaint, Ps as unreadableResourceEntries, Pt as computeImplicitDeleteEdges, Pu as validateAssetBucketName, Qa as refuseUnreadableCdkCrossAccountRefs, Qc as liveMatchesUnresolvedTokenFrame, Qi as createPreDeleteFinalSnapshot, Ql as importableOutputs, Qn as undeclaredEmptyObservedKeys, Qr as bindingSkippedOutputs, Qs as malformedOutputsRefusalMessage, Qt as resolvePendingCloudControlRequests, Qu as getDockerCmd, Rc as canonicalCoordinates, Rd as hasPlainPrototype, Ri as storedSecretNameNeedles, Rl as recordNoEchoParameterFreshValue, Rn as mappingPairs, Ro as INTRINSIC_KEYS, Rr as WITHHELD_NAME_DISPLAY, Rs as refuseMalformedResourcePropertiesForDrift, Rt as readRefactorMarkerOnce, Ru as resolveDockerContextDirectory, S as pendingMovesRefusalMessage, Sc as findActionableSdkUnwired, Sd as uploadCfnTemplate, Si as noEchoAttributeNamesOf, Sl as isUncertifiedBaselineMaskPosition, Sn as DeploymentEventsReader, So as cfnRefValueFromPhysicalId, Sr as segmentCleanupOptions, Ss as malformedLocalResourceEntriesWarning, Su as buildAssetRedirectMap, T as findServiceTokenRefusals, Ta as CloudControlProvider, Tc as unwrittenCreateOnlyReplacement, Td as expectedOwnerParam, Ti as noEchoParameterNamesOf, Tl as identityKeyFor, Tn as findDestructiveChanges, To as refStateLookupFromResource, Tr as nameGenerationCarriedFrom, Ts as malformedScrubResourceEntriesRefusalMessage, Tu as rewriteTemplateAssetReferences, Uc as maskedLeafCoordinatesOf, Ud as displayAssemblyPath, Ui as withSecretPhysicalIdsMaskedInState, Ul as LockManager, Un as replayFailedOperations, Uo as withUnsettledProperties, Ur as secretSafeKeyDisplay, Us as hasReadableOrphans, Ut as updateRefactorMarker, Uu as redactedDockerCause, Vc as maskReadbackAtCoordinates, Vd as absoluteAssemblyPathEscape, Vl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Vn as proposeRenames, Vo as unsettledItemsOf, Vr as secretBearing, Vs as repairMalformedResourcePropertiesForReadOnly, Vt as refuseRefactorMarker, Vu as describeDockerFailure, Wa as isWaitAbandonedError, Wc as noEchoCoordinatesOf, Wd as renderAssemblyPathEscape, Wi as ATOMIC_FINAL_SNAPSHOT_TYPES, Wl as isLockInfoExpired, Wn as replayRollback, Wo as withoutUnsettledProperties, Wr as carriedExportAliasExposure, Ws as malformedOrphansRefusalMessage, Wu as redactDockerArgvValues, Xa as resolveDynamicReferences, Xc as recordedNoEchoValuesOf, Xi as refusesFinalSnapshot, Xl as hasReadableExportSet, Xn as equalModuloMarkedMask, Xo as renderStatefulReason, Xr as collectPublishedOutputNames, Xs as malformedExportSourceWarning, Xu as isMalformedEnvKey, Yc as readsNoEchoSource, Yd as resolveBucketRegion, Yi as isFinalSnapshotError, Yl as exportNamesCarriedFrom, Yn as calculateResourceDrift, Yo as isStatefulRecreateTargetSync, Yr as collectDeclaredOutputNames, Ys as malformedExportNamesWarning, Yu as isDockerClientEnvKey, Za as producerLookupOver, Zc as valueAtCoordinate, Zi as unsupportedFinalSnapshotError, Zl as importableOutputKeys, Zn as equalModuloMask, Zr as isExportAliasCollision, Zs as malformedLocalOutputsWarning, Zt as pendingRequestCount, Zu as formatDockerLoginError, _ as listNestedTemplateRows, _a as applyCustomResourceResponseExpiration, _c as STATE_RESOURCES_MALFORMED, _d as ssmResolvedValueType, _i as cyan, _l as scrubResourceRecord, _n as loadJournaledOrphans, _r as findNestedStackTypeChanges, _s as refuseMalformedOrphansForOrphan, _u as withStackInstanceIdWithheld, a as scanActiveConsumers, ac as refuseDivergentRecordRegionForDestroy, ad as getDefaultStateBucketName, ai as withStackRecords, al as hasMaskableValues, an as recordDisplacedSkips, ao as AWS_CREDENTIAL_ENV_KEYS, as as withRetry, au as hasUnverifiableParameterRefusal, b as hasPendingMovesOut, ba as readsNoEchoDeleteValues, bc as hasReadableOutputs, bd as MIGRATE_TMP_PREFIX, bi as red, bl as DYNAMIC_REFERENCE_TOKEN_SCAN, bn as makeSiblingClaimReader, bo as parameterTypeMayLoseSecretIdentity, bs as unreadableOrphanRecords, bu as stringifyValue, c as inheritedProvenanceForChildDiff, cc as malformedStateRefusalMessage, cd as resolveApp, ci as holdsSupersededResources, cl as printingCorpusOf, cn as withNestedRevertRun, co as envCredentialsAreAssumedRole, cr as demoteSupersededOrphans, cs as declaresNoEcho, cu as timePhase, d as conditionInputsFrom, da as CC_BROKEN_REASON, dc as refuseMalformedResourcesForExport, dd as resolveSkipPrefix, di as supersededHeldByOtherTypeWarning, dl as shareLogOnlyValues, dn as withNestedStackContext, do as producerRegionsFromState, dr as planFailedOps, ds as malformedOrphanRecordsRefusalMessage, du as CrossPrefixScanCache, ed as runDockerStreaming, ei as DEFAULT_RESOURCE_WARN_AFTER_MS, el as redactForState, en as displacedOpClause, eo as assertFlagRoleArn, er as updatePartialReason, eu as orphansAfterRollback, f as parentSuppliedValues, fa as ProviderRegistry, fc as refuseMalformedState, fd as resolveStateBucketWithDefault, fi as supersededHolderOf, fl as unionOfSecretBags, fn as deleteJournaledOrphans, fo as regionLessSecretName, fr as recheckFailedPlan, fs as malformedOrphanRecordsWarning, fu as applyCrossPrefixScan, g as isAbsoluteAssetPath, ga as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, gc as withheldAccountClause, gd as warnDeprecatedNoPrefixCliFlag, gi as bold, gl as maskSecretsInText, gn as journaledOrphanLines, gr as withPreviousPolicies, gs as refuseMalformedOrphanRecordsForDestroy, gu as stackInstanceIdOf, h as findNestedTemplateTreeDefect, ha as wouldReturnToSdkProvider, hc as accountArgs, hd as stateBucketExistenceConfirmed, hl as maskSecretsInError, hn as isHandledOrphan, hr as resolveReplacementOldType, hs as refuseMalformedOrphanRecords, hu as isNotImplemented, i as mergeNoChangeOutputs, ic as STATE_REGION_DIVERGED, id as synthesisStatusMessage, il as createUnionSecretMasker, in as nestedChildStackName$1, io as sendableAssumeRoleCommand, ir as withCreateTokenLedger, is as describeTypeWithThrottleRetry, iu as hasReasonlessBaselineRefusal, j as isProtectionValueActive, ja as UNSPECIFIED_SKIP_REASON, jd as StageLoadError, ji as namingSecretsWithRecordedNoEcho, jl as recordNestedStackParameterExpressions, jn as withMovedTo, jo as getAccountInfo, jr as withNameGenerationReached, js as refuseMalformedResourceEntriesForImportSave, ju as getBootstrapMarkerKey, k as recordedProtectionNote, ka as slowCcOperationTimeoutMs, kd as refuseFailedLookups, ki as journaledOrphanPrintingBag, kn as movedToHint, ko as recordedOutputReferenceRegions, kr as retiredNameGenerationsAfter, ks as refuseMalformedResourceEntriesForDestroy, ku as assertAssetBucketRegion, l as makeCanonicalizePropertiesFn, lc as refuseMalformedResourcesForDeploy, ld as resolveAutoAssetStorage, li as isSupersededResourceRecord, ll as recordLogOnlyParameterValue, ln as collectNestedChildUnaddressed, lo as classifyRecordedSecretRegion, lr as isJournaledOrphan, ls as deployRefusesOrphanRowsReason, lu as rebuildClientForBucketRegion, m as childTemplateLoader, ma as isCustomResource, mc as JSON_LISTING_HOLE_VALUE, md as resolveUseCdkBootstrapAssets, mi as withoutSuperseded, ml as errorCauseChain, mn as dropFailedHint, mr as replacementNeverSwapped, ms as previewableOrphanRecords, mu as isAccessDenied, n as isSecretBearingReferenceString, nc as refuseMalformedOutputsForDestroy, nd as getDockerImageBySourceHash, nn as dropSettledNestedJournals, no as explicitRoleArnOrThrow, nr as ledgerForStack, ns as prefetchCreateOnlyPropertyPaths, nu as shouldRetainResource, o as inRunStackKey, oc as malformedRenderedContainersWarning, od as getLegacyStateBucketName, ol as literalSplitDelimitersOf, oo as applyCallerIdentityCredentials, or as planRollback, os as parameterInputsFor, ou as PhaseClock, p as readRecordedConditionVerdicts, pa as ccBrokenReason, pc as repairMalformedResourcesForReadOnly, pd as resolveStateBucketWithDefaultAndSource, pi as supersededResourcesOf, pl as createSecretMasker, pn as dropFailedCommands, pr as recordUnderIdIsNotOwn, ps as malformedOrphanRowsKeptWarning, pu as crossPrefixDeniedWarning, qa as isAlwaysLiveAttribute, qd as injectedAwsRegionValue, qi as ccRoutedInstanceTakesNoSnapshot, ql as acceptedCreateOnlyDropsOf, qn as settleUnsettledPrevious, qo as MULTI_REGION_RECREATE_BLOCKED_TYPES, qr as isWholeDynamicReferenceValue, qs as refuseMalformedOrphansForDestroy, qu as partitionSensitiveEnv, r as keptWholeReasonText, rc as repairMalformedOutputsForReadOnly, rd as Synthesizer, ri as destroyStackRecordsView, rl as carryLogOnlyValues, ro as isIamRoleArn, rs as templateResourceTypes, ru as stackInstanceIdCarriedFrom, s as crossStackOutputProvenanceSource, sc as malformedResourcesWarning, sd as loadCdkJson, si as deleteSupersededEntry, sl as logOnlyValueCount, sn as revertedNestedRowIds, so as callerEnvCredentials, sr as seedsDeleteFirstGuard, su as renderPhaseTimings, t as DeployEngine, tc as refuseMalformedOutputs, td as AssetManifestLoader, ti as maskingRetryLogger, tn as displacedPhysicalIdShown, to as assertSendableRoleArn, tu as orphansCarriedFrom, u as conditionFingerprint, uc as refuseMalformedResourcesForDestroy, ud as resolveCaptureObservedState, ui as supersededAfterRollback, ul as recordLogOnlyValue, un as getCurrentNestedStackContext, uo as classifyReplaySecretRegion, ur as isReplacementOrphan, us as isReadableOrphanRecord, uu as CrossPrefixReadError, v as renderNestedTemplateTreeDefect, va as customResourceResponseExpirationWarning, vc as UNREADABLE_RESOURCES_MAP_ROW, vd as CFN_TEMPLATE_BODY_LIMIT, vi as gray, vl as withPhysicalNameCopies, vn as sameJournaledOrphans, vo as coerceParameterTypedValue, vs as repairMalformedOrphanRecordsForReadOnly, vu as AssetPublisher, w as deferredServiceTokenWarning, wd as decodeListingKey, wi as noEchoExactEchoLeavesOf, wl as pathCrossesDottedKey, wn as constructPathOf$1, wo as lacksRecordedTableArn, wr as orphanNeedsIdentity, ws as malformedResourceEntriesWarning, wu as loadPublishableAssetManifest, x as pendingMovesOutOf, xa as isCustomResourceType$1, xc as hasReadableResources, xd as findLargeInlineResources, xi as yellow, xl as dynamicReferenceTokens, xn as planOrphanAdoption, xo as AWS_NO_VALUE, xs as isReadableResourceEntry, xu as WorkGraph, y as templateIdentity, ya as TemplateNoEchoReresolver, yc as displayLogicalId, yd as CFN_TEMPLATE_URL_LIMIT, yi as green, yn as makeForeignHolderScan, yo as isUnboundTemplateParameter, ys as unpreviewableOrphanRecords, yu as isSensitiveAttributeName, zc as isMarkedCoordinate, zd as nullPrototypeRecord, zi as extractDeploymentEventError, zl as recordProvenPublicExpression, zn as parseMappingFile, zr as displayTextOrWithheld, zs as refuseMalformedResourcePropertiesForExport, zt as refactorMarkerMovesOf, zu as describeDockerCapturedOutput } from "./deploy-engine-BB7LVmAG.js";
|
|
4
|
+
import { $ as CdkdError, A as stripControlChars, B as retryClassificationText, Ct as setPasteableRunFlags, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, R as isRetryableTransientError, St as withheldTargetClause, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as AccountIdUnavailableError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ResourceTimeoutError, bt as shellBoundedDisplay, dt as SHELL_ACTIVE_WHY, et as DeployCancelledError, g as PartialFailureError, gt as pasteableCommand, h as NestedStackChildDirectDestroyError, ht as isInertUnquoted, i as credentialFingerprint, it as ProvisioningError, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as TIMEOUT_FLAG_RESOURCE_TYPE, n as ambientCredentialConfig, nt as LocalInvokeBuildError$1, o as formatError, ot as StateError, pt as commandHole, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, s as handleError, st as SynthesisError, t as ambientClientDefaults, u as LocalStartServiceError, v as StackHasActiveImportsError, vt as plainOrDescribed, wt as setPasteableVerbFlags, xt as shellQuote, y as StackTerminationProtectionError, yt as quotedOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-w6GrD1cQ.js";
|
|
5
|
+
import { $t as forceQuitRecoveryClause, Dt as logicalIdShown, H as assertRegionMatch, M as VALUE_NOT_SHOWN, Qt as buildLockContentionMessage, U as isMarkedNotGone, V as RESOURCE_NOT_FOUND, Xt as UNREPRODUCIBLE_LOCK_CLAUSE, Zt as buildForceUnlockCommand, an as CUSTOM_RESOURCE_RESPONSE_PREFIX, bt as interruptWatchListenerCount, dn as setPasteableAwsCaBundle, en as formatLockExpiry, fn as setPasteableAwsProfile, kt as resourceTypeShown, ln as producerCoordinateKey, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mt as isAwsCliLiteral, nn as formatLockOwner, on as DEFAULT_STATE_PREFIX, p as IAM_PRINCIPAL_NAME, pn as withPasteableAwsProfile, sn as injectiveKey, st as runDeleteAttempt, tn as formatLockOperation, un as producerRecordKey, vt as beginCommandInterruptScope, xt as isInterruptedWaitError, y as readRecordedPrincipals, yt as endCommandInterruptScope, z as remedyLogicalId } from "./update-removal-BjJh8h9m.js";
|
|
6
|
+
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-CUCH-WCd.js";
|
|
7
|
+
import { a as getAssumedRoleCredentials, c as setAwsEndpointOverrideSource, m as formatAuthority, n as awsClientDefaults, o as getPreAssumeEnvCredentials, p as runInStackAwsScope, s as setAssumedRoleCredentials } from "./aws-client-defaults-DP5k4Mfi.js";
|
|
8
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-CzGt7ztW.js";
|
|
9
9
|
import { t as cdkdCacheHome } from "./cli.js";
|
|
10
10
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
11
11
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -21,17 +21,17 @@ import { cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, promises, readFi
|
|
|
21
21
|
import * as path from "node:path";
|
|
22
22
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
23
23
|
import { execFile, spawn } from "node:child_process";
|
|
24
|
-
import { tmpdir } from "node:os";
|
|
24
|
+
import { devNull, tmpdir } from "node:os";
|
|
25
25
|
import { BatchDeleteImageCommand, DeleteRepositoryCommand, DescribeImagesCommand as DescribeImagesCommand$1, ECRClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-ecr";
|
|
26
26
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
27
27
|
import graphlib from "graphlib";
|
|
28
28
|
import { Command, InvalidArgumentError, Option } from "commander";
|
|
29
|
+
import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DEFAULT_AWS_EMULATOR_URL, DynamicReferenceResolver, EMULATOR_SCRUBBED_ENV_KEYS, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MCP_CONTAINER_PORT, MCP_PATH, a2aInvokeOnce, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, architectureToPlatform, attachAuthorizers, attachLoopbackForwarder, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, ensureForwarderImage, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getActiveWorkloadAwsWiring as getActiveWorkloadAwsWiring$1, getAwsEndpointOverride, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseAwsEndpoint, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readEmulatorRunFiles, readMtlsMaterialsFromDisk, recordAssumedRole, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
|
|
30
|
+
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
29
31
|
import * as readline$1 from "node:readline/promises";
|
|
30
32
|
import readline from "node:readline/promises";
|
|
31
33
|
import { Document, Pair, Scalar, YAMLError, YAMLMap, YAMLSeq, isScalar, parse, parseDocument, stringify, visit } from "yaml";
|
|
32
34
|
import { emitKeypressEvents } from "node:readline";
|
|
33
|
-
import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DynamicReferenceResolver, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MCP_CONTAINER_PORT, MCP_PATH, a2aInvokeOnce, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, architectureToPlatform, attachAuthorizers, attachLoopbackForwarder, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, ensureForwarderImage, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getActiveWorkloadAwsWiring as getActiveWorkloadAwsWiring$1, getAwsEndpointOverride, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readMtlsMaterialsFromDisk, recordAssumedRole, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
|
|
34
|
-
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
35
35
|
import { createLocalStartAgentCoreCommand, createLocalStartCloudFrontCommand, createLocalStartMicrovmCommand, createLocalStartWebFunctionCommand, createLocalStateProvider, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resolveCfnFallbackRegion, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync } from "cdk-local";
|
|
36
36
|
import { createServer } from "node:net";
|
|
37
37
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
@@ -333,6 +333,289 @@ const destroyOptions = [
|
|
|
333
333
|
];
|
|
334
334
|
const skipFinalSnapshotOption = new Option("--skip-final-snapshot", "Delete resources whose DeletionPolicy (or, on replacements, UpdateReplacePolicy) is 'Snapshot' — including an RDS DB cluster or standalone DB instance with no DeletionPolicy, whose CloudFormation default is 'Snapshot' — WITHOUT creating the final snapshot the policy promises (DATA LOSS — explicit opt-out of CloudFormation parity). By default cdkd creates the final snapshot for every CloudFormation-supported type (RDS DBInstance / DBCluster, Neptune / DocDB clusters, ElastiCache CacheCluster / ReplicationGroup, Redshift Cluster, EC2 Volume) and refuses the delete when it cannot — e.g. a resource managed via the Cloud Control API route, whose delete has no final-snapshot parameter. On 'cdkd rollback' the flag governs the rolled-back CREATE's DeletionPolicy; a reverse-replacement delete of the NEW resource keeps its own bounded UpdateReplacePolicy behavior and is unaffected.").default(false);
|
|
335
335
|
|
|
336
|
+
// src/local/local-role-arn.ts
|
|
337
|
+
async function applyRoleArnForLocal(opts) {
|
|
338
|
+
await applyRoleArnIfSet(opts);
|
|
339
|
+
const role = getAssumedRoleCredentials();
|
|
340
|
+
if (role === void 0) return;
|
|
341
|
+
recordAssumedRole(getPreAssumeEnvCredentials(), {
|
|
342
|
+
accessKeyId: role.accessKeyId,
|
|
343
|
+
secretAccessKey: role.secretAccessKey,
|
|
344
|
+
sessionToken: role.sessionToken
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// src/cli/commands/local-profile-credentials-file.ts
|
|
349
|
+
const CONTAINER_AWS_CREDENTIALS_PATH = "/cdkd-aws/credentials";
|
|
350
|
+
async function writeProfileCredentialsFile(profileName, creds, opts) {
|
|
351
|
+
if (profileName === "") throw new Error("writeProfileCredentialsFile: profile name must not be empty.");
|
|
352
|
+
if (/[\r\n[\]]/.test(profileName)) throw new Error(`writeProfileCredentialsFile: profile name ${displayIdent(profileName)} contains a forbidden character (any of CR, LF, '[', ']' would corrupt the INI file or the docker -e env var).`);
|
|
353
|
+
const dir = await mkdtemp(path.join(tmpdir(), "cdkd-profile-creds-"));
|
|
354
|
+
const hostPath = path.join(dir, "credentials");
|
|
355
|
+
opts?.onDirCreated?.(hostPath);
|
|
356
|
+
const lines = [
|
|
357
|
+
`[${profileName}]`,
|
|
358
|
+
`aws_access_key_id = ${creds.accessKeyId}`,
|
|
359
|
+
`aws_secret_access_key = ${creds.secretAccessKey}`
|
|
360
|
+
];
|
|
361
|
+
if (creds.sessionToken) lines.push(`aws_session_token = ${creds.sessionToken}`);
|
|
362
|
+
try {
|
|
363
|
+
await writeFile(hostPath, lines.join("\n") + "\n", { mode: 384 });
|
|
364
|
+
} catch (err) {
|
|
365
|
+
let removed = true;
|
|
366
|
+
await rm(dir, {
|
|
367
|
+
recursive: true,
|
|
368
|
+
force: true
|
|
369
|
+
}).catch(() => {
|
|
370
|
+
removed = false;
|
|
371
|
+
});
|
|
372
|
+
if (removed) try {
|
|
373
|
+
opts?.onDirRemoved?.(hostPath);
|
|
374
|
+
} catch {}
|
|
375
|
+
throw err;
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
hostPath,
|
|
379
|
+
containerPath: CONTAINER_AWS_CREDENTIALS_PATH,
|
|
380
|
+
profileName,
|
|
381
|
+
dispose: async () => {
|
|
382
|
+
await rm(dir, {
|
|
383
|
+
recursive: true,
|
|
384
|
+
force: true
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function strandedProfileCredentialsNotice(hostPath) {
|
|
390
|
+
if (hostPath === void 0) return void 0;
|
|
391
|
+
return `The AWS credentials file mounted into the containers is NOT removed: delete ${displayIdent(hostPath)} once you tear them down.`;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// src/local/local-aws-wiring.ts
|
|
395
|
+
async function activateLocalAwsWiring(options) {
|
|
396
|
+
assertAwsEmulatorValue(options.awsEmulator);
|
|
397
|
+
try {
|
|
398
|
+
await activateWorkloadAwsWiring({
|
|
399
|
+
awsEmulator: options.awsEmulator,
|
|
400
|
+
caBundle: options.caBundle,
|
|
401
|
+
profile: options.profile,
|
|
402
|
+
pull: options.pull
|
|
403
|
+
});
|
|
404
|
+
} catch (err) {
|
|
405
|
+
throw new CdkdError(err instanceof Error ? err.message : String(err), "LOCAL_AWS_WIRING_FAILED", err instanceof Error ? err : void 0);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
async function activateLocalAwsAndRoleArn(options) {
|
|
409
|
+
await activateLocalAwsWiring(options);
|
|
410
|
+
await applyRoleArnForLocal({
|
|
411
|
+
roleArn: options.roleArn,
|
|
412
|
+
region: options.region
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
function assertAwsEmulatorValue(flag) {
|
|
416
|
+
const value = resolveAwsEmulatorOption(flag);
|
|
417
|
+
if (typeof value !== "string") return;
|
|
418
|
+
const where = `--aws-emulator (or ${awsEmulatorEnvName()})`;
|
|
419
|
+
let u;
|
|
420
|
+
try {
|
|
421
|
+
u = new URL(value);
|
|
422
|
+
} catch {
|
|
423
|
+
u = void 0;
|
|
424
|
+
}
|
|
425
|
+
if (u === void 0 ? /^[a-z][a-z0-9+.-]*:\/\/[^/?#]*@/i.test(value) || /[?#]/.test(value) : u.username !== "" || u.password !== "" || u.search !== "" || u.hash !== "") throw new CdkdError(`${where} must be a bare scheme://host:port URL; the value carries a user name, password, query or fragment, which is not shown here. Remove it.`, "LOCAL_AWS_WIRING_FAILED");
|
|
426
|
+
if (u === void 0 || u.protocol !== "https:" && u.protocol !== "http:") throw new CdkdError(`${where} takes an http(s) URL such as https://127.0.0.1:9297, and the value given is not one. The URL is OPTIONAL, so a value right after the flag is taken as the URL: put --aws-emulator after the target, or write --aws-emulator=<url>.`, "LOCAL_AWS_WIRING_FAILED");
|
|
427
|
+
}
|
|
428
|
+
async function applyLocalAwsWiring(wiring, env, extraMounts, takenContainerPaths) {
|
|
429
|
+
const defaults = wiring.mode === "forward" && !env["AWS_ACCESS_KEY_ID"] ? await resolveHostDefaultCredentials() : void 0;
|
|
430
|
+
const wiredEnv = applyWorkloadAwsWiringToEnv(env, wiring, defaults);
|
|
431
|
+
const mounts = extraMounts.filter((m) => wiring.mode !== "emulator" || m.containerPath !== "/cdkd-aws/credentials");
|
|
432
|
+
const taken = /* @__PURE__ */ new Set([...takenContainerPaths, ...mounts.map((m) => m.containerPath)]);
|
|
433
|
+
for (const m of wiring.mounts) if (!taken.has(m.containerPath)) mounts.push({
|
|
434
|
+
...m,
|
|
435
|
+
readOnly: true
|
|
436
|
+
});
|
|
437
|
+
return {
|
|
438
|
+
env: wiredEnv,
|
|
439
|
+
extraMounts: mounts
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
function loopbackPortsFor(wiring, env, network) {
|
|
443
|
+
return network === "host" ? [] : effectiveLoopbackPorts(env, wiring);
|
|
444
|
+
}
|
|
445
|
+
async function prepareLocalLoopbackForwarder(wiring) {
|
|
446
|
+
try {
|
|
447
|
+
await ensureForwarderImage(wiring.skipPull === true);
|
|
448
|
+
} catch (err) {
|
|
449
|
+
if (wiring.mode === "emulator") throw new CdkdError(`--aws-emulator: the loopback forwarder image could not be pulled: ${err.message}`, "LOCAL_AWS_EMULATOR_FORWARDER_PULL_FAILED");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
async function attachLocalLoopbackForwarder(containerId, ports) {
|
|
453
|
+
const wiring = getActiveWorkloadAwsWiring$1();
|
|
454
|
+
if (!wiring) return;
|
|
455
|
+
try {
|
|
456
|
+
await (ports === void 0 ? attachLoopbackForwarder(containerId, wiring) : attachLoopbackForwarder(containerId, wiring, ports));
|
|
457
|
+
} catch (err) {
|
|
458
|
+
throw new CdkdError(err instanceof Error ? err.message : String(err), "LOCAL_AWS_EMULATOR_FORWARDER_FAILED", err instanceof Error ? err : void 0);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
async function profileCredentialsForWorkload(profile, resolve) {
|
|
462
|
+
if (!profile || localAwsEmulatorActive()) return void 0;
|
|
463
|
+
return resolve(profile);
|
|
464
|
+
}
|
|
465
|
+
function setContainerRegion(env, region) {
|
|
466
|
+
if (!region) return;
|
|
467
|
+
const folded = canonicalizeRegion(region);
|
|
468
|
+
env["AWS_REGION"] = folded;
|
|
469
|
+
env["AWS_DEFAULT_REGION"] = folded;
|
|
470
|
+
}
|
|
471
|
+
function localAwsEmulatorActive() {
|
|
472
|
+
return getActiveWorkloadAwsWiring$1()?.mode === "emulator";
|
|
473
|
+
}
|
|
474
|
+
function localAwsEmulatorCredentials() {
|
|
475
|
+
const wiring = getActiveWorkloadAwsWiring$1();
|
|
476
|
+
return wiring?.mode === "emulator" ? wiring.emulatorCredentials : void 0;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// src/cli/aws-emulator-activation.ts
|
|
480
|
+
async function activateAwsEmulatorForCommand(flag) {
|
|
481
|
+
try {
|
|
482
|
+
const wiring = await resolveWorkloadAwsWiring({
|
|
483
|
+
awsEmulator: resolveAwsEmulatorOption(flag),
|
|
484
|
+
skipPull: true
|
|
485
|
+
});
|
|
486
|
+
setActiveWorkloadAwsWiring(wiring);
|
|
487
|
+
const endpoint = wiring.emulatorEndpoint;
|
|
488
|
+
if (wiring.mode !== "emulator" || endpoint === void 0) throw new Error("--aws-emulator: the AWS Emulator wiring did not resolve to an endpoint.");
|
|
489
|
+
setAwsEndpointOverride({
|
|
490
|
+
endpoint: endpoint.url,
|
|
491
|
+
...wiring.caHostPath !== void 0 && { caPem: readFileSync(wiring.caHostPath, "utf8") },
|
|
492
|
+
...wiring.emulatorCredentials !== void 0 && { credentials: wiring.emulatorCredentials }
|
|
493
|
+
});
|
|
494
|
+
const url = endpoint.url;
|
|
495
|
+
getLogger().info(safeMsg`Using AWS Emulator at ${url} for every AWS call.`);
|
|
496
|
+
} catch (err) {
|
|
497
|
+
throw new CdkdError(err instanceof Error ? err.message : String(err), "AWS_EMULATOR_UNAVAILABLE", err instanceof Error ? err : void 0);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// src/cli/options/aws-emulator.ts
|
|
502
|
+
function awsEmulatorOption() {
|
|
503
|
+
return new Option("--aws-emulator [url]", `Run against a local AWS Emulator (default https://127.0.0.1:9297; the port selects ~/.aws/emulator/<port>/): every AWS call uses the emulator's endpoint, CA and keys only; --profile, --role-arn and credential env vars are ignored (env: ${awsEmulatorEnvName()})`);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// src/cli/aws-emulator.ts
|
|
507
|
+
const LOCAL_COMMAND = "local";
|
|
508
|
+
const CREDENTIAL_ENV_KEYS = [
|
|
509
|
+
"AWS_ACCESS_KEY_ID",
|
|
510
|
+
"AWS_SECRET_ACCESS_KEY",
|
|
511
|
+
"AWS_SESSION_TOKEN",
|
|
512
|
+
"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
|
|
513
|
+
];
|
|
514
|
+
function addAwsEmulatorOptions(cmd) {
|
|
515
|
+
for (const sub of cmd.commands) {
|
|
516
|
+
if (cmd.parent === null && sub.name() === LOCAL_COMMAND) continue;
|
|
517
|
+
const declares = (long) => sub.options.some((o) => o.long === long);
|
|
518
|
+
if (declares("--profile") && !declares("--aws-emulator")) sub.addOption(awsEmulatorOption());
|
|
519
|
+
addAwsEmulatorOptions(sub);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
function declaresAwsEmulator(cmd) {
|
|
523
|
+
for (let c = cmd; c !== null; c = c.parent) if (c.options.some((o) => o.long === "--aws-emulator")) return true;
|
|
524
|
+
return false;
|
|
525
|
+
}
|
|
526
|
+
function underLocalCommand(cmd) {
|
|
527
|
+
for (let c = cmd; c !== null; c = c.parent) if (c.parent !== null && c.parent.parent === null && c.name() === LOCAL_COMMAND) return true;
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
function clearOption(cmd, attr) {
|
|
531
|
+
let cleared = false;
|
|
532
|
+
for (let c = cmd; c !== null; c = c.parent) if (c.getOptionValue(attr) !== void 0) {
|
|
533
|
+
c.setOptionValueWithSource(attr, void 0, "default");
|
|
534
|
+
cleared = true;
|
|
535
|
+
}
|
|
536
|
+
return cleared;
|
|
537
|
+
}
|
|
538
|
+
function prepareAwsEmulatorForCommand(actionCommand) {
|
|
539
|
+
if (!declaresAwsEmulator(actionCommand)) return void 0;
|
|
540
|
+
const flag = actionCommand.optsWithGlobals().awsEmulator;
|
|
541
|
+
assertAwsEmulatorValue(flag);
|
|
542
|
+
const value = resolveAwsEmulatorOption(flag);
|
|
543
|
+
if (value === void 0) return void 0;
|
|
544
|
+
const local = underLocalCommand(actionCommand);
|
|
545
|
+
const ignored = [];
|
|
546
|
+
if (clearOption(actionCommand, "profile")) ignored.push("--profile");
|
|
547
|
+
if (!local && clearOption(actionCommand, "roleArn")) ignored.push("--role-arn");
|
|
548
|
+
const scrubbed = [
|
|
549
|
+
...local ? [] : ["CDKD_ROLE_ARN"],
|
|
550
|
+
...EMULATOR_SCRUBBED_ENV_KEYS,
|
|
551
|
+
...CREDENTIAL_ENV_KEYS
|
|
552
|
+
];
|
|
553
|
+
for (const key of scrubbed) if (process.env[key] !== void 0) {
|
|
554
|
+
if (process.env[key] !== "") ignored.push(key);
|
|
555
|
+
delete process.env[key];
|
|
556
|
+
}
|
|
557
|
+
for (const key of Object.keys(process.env)) if (key.startsWith("AWS_ENDPOINT_URL") || key === "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS") {
|
|
558
|
+
if (process.env[key] !== "") ignored.push(key);
|
|
559
|
+
delete process.env[key];
|
|
560
|
+
}
|
|
561
|
+
if (ignored.length > 0) {
|
|
562
|
+
const names = ignored.join(", ");
|
|
563
|
+
onStderr(() => getLogger().info(safeMsg`--aws-emulator: ignoring ${names}; every AWS call uses the emulator's keys.`));
|
|
564
|
+
}
|
|
565
|
+
const endpoint = parseAwsEndpoint(value === true ? DEFAULT_AWS_EMULATOR_URL : value, "--aws-emulator");
|
|
566
|
+
const url = endpoint.hostname === "localhost" ? endpoint.url.replace("//localhost", "//127.0.0.1") : endpoint.url;
|
|
567
|
+
const caBundle = actionCommand.optsWithGlobals().caBundle;
|
|
568
|
+
pointEnvironmentAtEmulator(url, endpoint.port, caBundle);
|
|
569
|
+
if (local) return void 0;
|
|
570
|
+
setAwsEndpointOverrideSource(getAwsEndpointOverride);
|
|
571
|
+
return () => onStderr(() => activateAwsEmulatorForCommand(flag));
|
|
572
|
+
}
|
|
573
|
+
function onStderr(fn) {
|
|
574
|
+
if (isStdoutReservedForPayload()) return fn();
|
|
575
|
+
reserveStdoutForPayload();
|
|
576
|
+
let result;
|
|
577
|
+
try {
|
|
578
|
+
result = fn();
|
|
579
|
+
} catch (err) {
|
|
580
|
+
releaseStdoutForPayload();
|
|
581
|
+
throw err;
|
|
582
|
+
}
|
|
583
|
+
if (result instanceof Promise) return result.finally(releaseStdoutForPayload);
|
|
584
|
+
releaseStdoutForPayload();
|
|
585
|
+
return result;
|
|
586
|
+
}
|
|
587
|
+
function pointEnvironmentAtEmulator(url, port, caBundle) {
|
|
588
|
+
const run = readEmulatorRunFiles(port);
|
|
589
|
+
const runFile = (name) => {
|
|
590
|
+
const p = join(run.dir, name);
|
|
591
|
+
return run.present && existsSync(p) ? p : devNull;
|
|
592
|
+
};
|
|
593
|
+
process.env["AWS_ENDPOINT_URL"] = url;
|
|
594
|
+
const config = runFile("config");
|
|
595
|
+
process.env["AWS_CONFIG_FILE"] = config;
|
|
596
|
+
if (!process.env["AWS_REGION"] && !process.env["AWS_DEFAULT_REGION"] && config !== devNull) {
|
|
597
|
+
const region = defaultProfileRegion(readFileSync(config, "utf8"));
|
|
598
|
+
if (region !== void 0) process.env["AWS_REGION"] = region;
|
|
599
|
+
}
|
|
600
|
+
process.env["AWS_SHARED_CREDENTIALS_FILE"] = runFile("emulator_credentials");
|
|
601
|
+
process.env["AWS_EC2_METADATA_DISABLED"] = "true";
|
|
602
|
+
const ca = caBundle !== void 0 && caBundle !== "" ? caBundle : runFile("ca.pem");
|
|
603
|
+
setPasteableAwsCaBundle(url.startsWith("https:") && ca !== devNull ? ca : void 0);
|
|
604
|
+
}
|
|
605
|
+
function defaultProfileRegion(ini) {
|
|
606
|
+
let inDefault = false;
|
|
607
|
+
for (const raw of ini.split(/\r?\n/)) {
|
|
608
|
+
const line = raw.trim();
|
|
609
|
+
const section = /^\[\s*(.+?)\s*\]$/.exec(line);
|
|
610
|
+
if (section) {
|
|
611
|
+
inDefault = section[1] === "default" || section[1] === "profile default";
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
const kv = /^region\s*=\s*([a-z0-9-]+)\s*$/i.exec(line);
|
|
615
|
+
if (inDefault && kv) return kv[1].toLowerCase();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
336
619
|
// src/cli/region-options.ts
|
|
337
620
|
function foldRegionOption(options) {
|
|
338
621
|
if (options.region !== void 0) options.region = canonicalizeRegion(options.region);
|
|
@@ -1857,7 +2140,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1857
2140
|
// src/provisioning/register-providers.ts
|
|
1858
2141
|
let providerClasses;
|
|
1859
2142
|
function loadProviderClasses() {
|
|
1860
|
-
providerClasses ??= import("./provider-classes-
|
|
2143
|
+
providerClasses ??= import("./provider-classes-DmCFkSIr.js");
|
|
1861
2144
|
return providerClasses;
|
|
1862
2145
|
}
|
|
1863
2146
|
function registerAllProviders(registry, classes) {
|
|
@@ -25094,149 +25377,6 @@ function collectMultiple(value, previous) {
|
|
|
25094
25377
|
return [...previous ?? [], value];
|
|
25095
25378
|
}
|
|
25096
25379
|
|
|
25097
|
-
// src/local/local-role-arn.ts
|
|
25098
|
-
async function applyRoleArnForLocal(opts) {
|
|
25099
|
-
await applyRoleArnIfSet(opts);
|
|
25100
|
-
const role = getAssumedRoleCredentials();
|
|
25101
|
-
if (role === void 0) return;
|
|
25102
|
-
recordAssumedRole(getPreAssumeEnvCredentials(), {
|
|
25103
|
-
accessKeyId: role.accessKeyId,
|
|
25104
|
-
secretAccessKey: role.secretAccessKey,
|
|
25105
|
-
sessionToken: role.sessionToken
|
|
25106
|
-
});
|
|
25107
|
-
}
|
|
25108
|
-
|
|
25109
|
-
// src/cli/commands/local-profile-credentials-file.ts
|
|
25110
|
-
const CONTAINER_AWS_CREDENTIALS_PATH = "/cdkd-aws/credentials";
|
|
25111
|
-
async function writeProfileCredentialsFile(profileName, creds, opts) {
|
|
25112
|
-
if (profileName === "") throw new Error("writeProfileCredentialsFile: profile name must not be empty.");
|
|
25113
|
-
if (/[\r\n[\]]/.test(profileName)) throw new Error(`writeProfileCredentialsFile: profile name ${displayIdent(profileName)} contains a forbidden character (any of CR, LF, '[', ']' would corrupt the INI file or the docker -e env var).`);
|
|
25114
|
-
const dir = await mkdtemp(path.join(tmpdir(), "cdkd-profile-creds-"));
|
|
25115
|
-
const hostPath = path.join(dir, "credentials");
|
|
25116
|
-
opts?.onDirCreated?.(hostPath);
|
|
25117
|
-
const lines = [
|
|
25118
|
-
`[${profileName}]`,
|
|
25119
|
-
`aws_access_key_id = ${creds.accessKeyId}`,
|
|
25120
|
-
`aws_secret_access_key = ${creds.secretAccessKey}`
|
|
25121
|
-
];
|
|
25122
|
-
if (creds.sessionToken) lines.push(`aws_session_token = ${creds.sessionToken}`);
|
|
25123
|
-
try {
|
|
25124
|
-
await writeFile(hostPath, lines.join("\n") + "\n", { mode: 384 });
|
|
25125
|
-
} catch (err) {
|
|
25126
|
-
let removed = true;
|
|
25127
|
-
await rm(dir, {
|
|
25128
|
-
recursive: true,
|
|
25129
|
-
force: true
|
|
25130
|
-
}).catch(() => {
|
|
25131
|
-
removed = false;
|
|
25132
|
-
});
|
|
25133
|
-
if (removed) try {
|
|
25134
|
-
opts?.onDirRemoved?.(hostPath);
|
|
25135
|
-
} catch {}
|
|
25136
|
-
throw err;
|
|
25137
|
-
}
|
|
25138
|
-
return {
|
|
25139
|
-
hostPath,
|
|
25140
|
-
containerPath: CONTAINER_AWS_CREDENTIALS_PATH,
|
|
25141
|
-
profileName,
|
|
25142
|
-
dispose: async () => {
|
|
25143
|
-
await rm(dir, {
|
|
25144
|
-
recursive: true,
|
|
25145
|
-
force: true
|
|
25146
|
-
});
|
|
25147
|
-
}
|
|
25148
|
-
};
|
|
25149
|
-
}
|
|
25150
|
-
function strandedProfileCredentialsNotice(hostPath) {
|
|
25151
|
-
if (hostPath === void 0) return void 0;
|
|
25152
|
-
return `The AWS credentials file mounted into the containers is NOT removed: delete ${displayIdent(hostPath)} once you tear them down.`;
|
|
25153
|
-
}
|
|
25154
|
-
|
|
25155
|
-
// src/local/local-aws-wiring.ts
|
|
25156
|
-
async function activateLocalAwsWiring(options) {
|
|
25157
|
-
assertAwsEmulatorValue(options.awsEmulator);
|
|
25158
|
-
try {
|
|
25159
|
-
await activateWorkloadAwsWiring({
|
|
25160
|
-
awsEmulator: options.awsEmulator,
|
|
25161
|
-
caBundle: options.caBundle,
|
|
25162
|
-
profile: options.profile,
|
|
25163
|
-
pull: options.pull
|
|
25164
|
-
});
|
|
25165
|
-
} catch (err) {
|
|
25166
|
-
throw new CdkdError(err instanceof Error ? err.message : String(err), "LOCAL_AWS_WIRING_FAILED", err instanceof Error ? err : void 0);
|
|
25167
|
-
}
|
|
25168
|
-
}
|
|
25169
|
-
async function activateLocalAwsAndRoleArn(options) {
|
|
25170
|
-
await activateLocalAwsWiring(options);
|
|
25171
|
-
await applyRoleArnForLocal({
|
|
25172
|
-
roleArn: options.roleArn,
|
|
25173
|
-
region: options.region
|
|
25174
|
-
});
|
|
25175
|
-
}
|
|
25176
|
-
function assertAwsEmulatorValue(flag) {
|
|
25177
|
-
const value = resolveAwsEmulatorOption(flag);
|
|
25178
|
-
if (typeof value !== "string") return;
|
|
25179
|
-
const where = `--aws-emulator (or ${awsEmulatorEnvName()})`;
|
|
25180
|
-
let u;
|
|
25181
|
-
try {
|
|
25182
|
-
u = new URL(value);
|
|
25183
|
-
} catch {
|
|
25184
|
-
u = void 0;
|
|
25185
|
-
}
|
|
25186
|
-
if (u === void 0 ? /^[a-z][a-z0-9+.-]*:\/\/[^/?#]*@/i.test(value) || /[?#]/.test(value) : u.username !== "" || u.password !== "" || u.search !== "" || u.hash !== "") throw new CdkdError(`${where} must be a bare scheme://host:port URL; the value carries a user name, password, query or fragment, which is not shown here. Remove it.`, "LOCAL_AWS_WIRING_FAILED");
|
|
25187
|
-
if (u === void 0 || u.protocol !== "https:" && u.protocol !== "http:") throw new CdkdError(`${where} takes an http(s) URL such as https://127.0.0.1:9297, and the value given is not one. The URL is OPTIONAL, so a value right after the flag is taken as the URL: put --aws-emulator after the target, or write --aws-emulator=<url>.`, "LOCAL_AWS_WIRING_FAILED");
|
|
25188
|
-
}
|
|
25189
|
-
async function applyLocalAwsWiring(wiring, env, extraMounts, takenContainerPaths) {
|
|
25190
|
-
const defaults = wiring.mode === "forward" && !env["AWS_ACCESS_KEY_ID"] ? await resolveHostDefaultCredentials() : void 0;
|
|
25191
|
-
const wiredEnv = applyWorkloadAwsWiringToEnv(env, wiring, defaults);
|
|
25192
|
-
const mounts = extraMounts.filter((m) => wiring.mode !== "emulator" || m.containerPath !== "/cdkd-aws/credentials");
|
|
25193
|
-
const taken = /* @__PURE__ */ new Set([...takenContainerPaths, ...mounts.map((m) => m.containerPath)]);
|
|
25194
|
-
for (const m of wiring.mounts) if (!taken.has(m.containerPath)) mounts.push({
|
|
25195
|
-
...m,
|
|
25196
|
-
readOnly: true
|
|
25197
|
-
});
|
|
25198
|
-
return {
|
|
25199
|
-
env: wiredEnv,
|
|
25200
|
-
extraMounts: mounts
|
|
25201
|
-
};
|
|
25202
|
-
}
|
|
25203
|
-
function loopbackPortsFor(wiring, env, network) {
|
|
25204
|
-
return network === "host" ? [] : effectiveLoopbackPorts(env, wiring);
|
|
25205
|
-
}
|
|
25206
|
-
async function prepareLocalLoopbackForwarder(wiring) {
|
|
25207
|
-
try {
|
|
25208
|
-
await ensureForwarderImage(wiring.skipPull === true);
|
|
25209
|
-
} catch (err) {
|
|
25210
|
-
if (wiring.mode === "emulator") throw new CdkdError(`--aws-emulator: the loopback forwarder image could not be pulled: ${err.message}`, "LOCAL_AWS_EMULATOR_FORWARDER_PULL_FAILED");
|
|
25211
|
-
}
|
|
25212
|
-
}
|
|
25213
|
-
async function attachLocalLoopbackForwarder(containerId, ports) {
|
|
25214
|
-
const wiring = getActiveWorkloadAwsWiring$1();
|
|
25215
|
-
if (!wiring) return;
|
|
25216
|
-
try {
|
|
25217
|
-
await (ports === void 0 ? attachLoopbackForwarder(containerId, wiring) : attachLoopbackForwarder(containerId, wiring, ports));
|
|
25218
|
-
} catch (err) {
|
|
25219
|
-
throw new CdkdError(err instanceof Error ? err.message : String(err), "LOCAL_AWS_EMULATOR_FORWARDER_FAILED", err instanceof Error ? err : void 0);
|
|
25220
|
-
}
|
|
25221
|
-
}
|
|
25222
|
-
async function profileCredentialsForWorkload(profile, resolve) {
|
|
25223
|
-
if (!profile || localAwsEmulatorActive()) return void 0;
|
|
25224
|
-
return resolve(profile);
|
|
25225
|
-
}
|
|
25226
|
-
function setContainerRegion(env, region) {
|
|
25227
|
-
if (!region) return;
|
|
25228
|
-
const folded = canonicalizeRegion(region);
|
|
25229
|
-
env["AWS_REGION"] = folded;
|
|
25230
|
-
env["AWS_DEFAULT_REGION"] = folded;
|
|
25231
|
-
}
|
|
25232
|
-
function localAwsEmulatorActive() {
|
|
25233
|
-
return getActiveWorkloadAwsWiring$1()?.mode === "emulator";
|
|
25234
|
-
}
|
|
25235
|
-
function localAwsEmulatorCredentials() {
|
|
25236
|
-
const wiring = getActiveWorkloadAwsWiring$1();
|
|
25237
|
-
return wiring?.mode === "emulator" ? wiring.emulatorCredentials : void 0;
|
|
25238
|
-
}
|
|
25239
|
-
|
|
25240
25380
|
// src/utils/local-aws-failure.ts
|
|
25241
25381
|
function describeLocalAwsFailureForWarn(err, operation) {
|
|
25242
25382
|
if (err instanceof CdkdError) return withoutTrailingPeriod(displaySafe(err.message));
|
|
@@ -33179,13 +33319,6 @@ function createLocalCommand() {
|
|
|
33179
33319
|
setEmbedConfig(CDKD_EMBED_CONFIG);
|
|
33180
33320
|
setAwsEndpointOverrideSource(getAwsEndpointOverride);
|
|
33181
33321
|
const local = new Command("local").description("Local execution of Lambda functions (RIE) and ECS task definitions (Docker required)");
|
|
33182
|
-
local.hook("preAction", (_local, action) => {
|
|
33183
|
-
try {
|
|
33184
|
-
assertAwsEmulatorValue(action.opts()["awsEmulator"]);
|
|
33185
|
-
} catch (err) {
|
|
33186
|
-
handleError(err);
|
|
33187
|
-
}
|
|
33188
|
-
});
|
|
33189
33322
|
const invoke = new Command("invoke").description("Run a Lambda function locally in a Docker container (RIE-backed). Target accepts a CDK display path (MyStack/MyApi/Handler) or stack-qualified logical ID (MyStack:MyApiHandler1234ABCD). Single-stack apps may omit the stack prefix.").argument("<target>", "CDK display path or stack-qualified logical ID of the Lambda to invoke").addOption(new Option("-e, --event <file>", "JSON event payload file (default: {})")).addOption(new Option("--event-stdin", "Read event JSON from stdin").default(false)).addOption(new Option("--env-vars <file>", "JSON env-var overrides (SAM-compatible: {\"LogicalId\":{\"KEY\":\"VALUE\"}})")).addOption(new Option("--no-pull", "Skip docker pull (use cached image) — no-op for IMAGE local-build path; `docker build` does not pull base layers by default")).addOption(new Option("--no-build", "Skip docker build on the IMAGE local-build path (use the previously-built tag). Requires the deterministic tag to already be in the local registry; errors with an actionable message when missing. No-op for ZIP Lambdas and the IMAGE ECR-pull path. Compatible with --no-pull.")).addOption(new Option("--debug-port <port>", "Node --inspect-brk port (default: off)")).addOption(new Option("--container-host <host>", "Host to bind the RIE port to").default("127.0.0.1")).addOption(new Option("--assume-role [arn]", "Assume the Lambda's deployed execution role and forward STS-issued temp credentials to the container so the handler runs with the deployed function's narrow permissions (closes the \"developer admin / function narrow\" skew). Three forms: (1) `--assume-role <arn>` assumes the explicit ARN; (2) `--assume-role` (bare) auto-resolves the function's execution role ARN from cdkd state (requires --from-state); (3) `--no-assume-role` explicitly opts out (forces dev creds even with --from-state). Off by default — when omitted, the developer's shell credentials are forwarded unchanged (SAM-compatible default). STS failures degrade to a warn + dev-creds fallback.")).addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) even when --from-state is set, and suppress the \"run with --assume-role\" hint. Distinct from omitting the flag, which still prints that hint.")).addOption(new Option("--layer-role-arn <arn>", "Role to sts:AssumeRole before calling lambda:GetLayerVersion on every literal-ARN entry in Properties.Layers. Use only when the dev credentials cannot read the layer — typically cross-account layers. AWS-published public layers (e.g. Lambda Powertools) are readable from every account and need no role.")).addOption(new Option("--ecr-role-arn <arn>", "Role ARN to assume before authenticating against ECR for cross-account / centralized registries. Issues sts:AssumeRole via the default credential chain and uses the temporary credentials for ecr:GetAuthorizationToken + docker pull. Required when the caller does not have direct cross-account access to the target repository. A same-account pull in ANY region does not need this flag: the ECR client is built for the image URI's own region, so crossing a region costs nothing extra.")).addOption(new Option("--from-state", "Read cdkd S3 state for the target stack and substitute Ref / Fn::GetAtt / Fn::Sub in env vars with the deployed physical IDs / attributes. Off by default — keep PR 1 warn-and-drop semantics; turn on for stacks already deployed via cdkd deploy.").default(false)).addOption(new Option("--from-cfn-stack [cfn-stack-name]", "Read a deployed CloudFormation stack via ListStackResources and substitute Ref / Fn::ImportValue in env vars with the deployed physical IDs / exports. Use for CDK apps deployed via the upstream CDK CLI (`cdk deploy`). Bare form uses the cdkd stack name; pass an explicit value when CFn stack name differs. Mutually exclusive with --from-state. Fn::GetAtt is warn-and-dropped in v1 (CFn ListStackResources does not return per-attribute values).")).addOption(new Option("--stack-region <region>", "Region of the state record to read. Used with --from-state when the same stack name has state in multiple regions, and with --from-cfn-stack as the CFn client region (cdkd does not have a separate --cfn-stack-region flag).").argParser(parseStackRegion)).action(withErrorHandling(localInvokeCommand));
|
|
33190
33323
|
[
|
|
33191
33324
|
...commonOptions,
|
|
@@ -33214,6 +33347,12 @@ function buildProgram() {
|
|
|
33214
33347
|
program.name("cdkd").description("Drop-in CDK CLI for existing CDK apps - up to 15x faster deploys via direct AWS SDK calls instead of CloudFormation").version(getCdkdVersion());
|
|
33215
33348
|
setS3ClientDefaultsDebugLog((message) => getLogger().debug(message));
|
|
33216
33349
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
33350
|
+
let activateAwsEmulator;
|
|
33351
|
+
try {
|
|
33352
|
+
activateAwsEmulator = prepareAwsEmulatorForCommand(actionCommand);
|
|
33353
|
+
} catch (err) {
|
|
33354
|
+
handleError(err);
|
|
33355
|
+
}
|
|
33217
33356
|
const { profile } = actionCommand.optsWithGlobals();
|
|
33218
33357
|
setPasteableAwsProfile(profile);
|
|
33219
33358
|
const { stateBucket, roleArn } = actionCommand.optsWithGlobals();
|
|
@@ -33222,9 +33361,15 @@ function buildProgram() {
|
|
|
33222
33361
|
profile,
|
|
33223
33362
|
stateBucket,
|
|
33224
33363
|
statePrefix: prefixFromCli ? actionCommand.optsWithGlobals().statePrefix : void 0,
|
|
33225
|
-
roleArn: roleArn !== void 0
|
|
33364
|
+
roleArn: roleArn !== void 0,
|
|
33365
|
+
awsEmulator: actionCommand.getOptionValueSourceWithGlobals("awsEmulator") === "cli" ? actionCommand.optsWithGlobals().awsEmulator : void 0
|
|
33226
33366
|
});
|
|
33227
33367
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|
|
33368
|
+
if (activateAwsEmulator !== void 0) try {
|
|
33369
|
+
await activateAwsEmulator();
|
|
33370
|
+
} catch (err) {
|
|
33371
|
+
handleError(err);
|
|
33372
|
+
}
|
|
33228
33373
|
await resolveS3ClientDefaults({ profile });
|
|
33229
33374
|
});
|
|
33230
33375
|
program.addCommand(createBootstrapCommand());
|
|
@@ -33247,6 +33392,7 @@ function buildProgram() {
|
|
|
33247
33392
|
program.addCommand(createLocalCommand());
|
|
33248
33393
|
program.addCommand(createExportCommand());
|
|
33249
33394
|
guardStackRegionOptions(program);
|
|
33395
|
+
addAwsEmulatorOptions(program);
|
|
33250
33396
|
setPasteableVerbFlags(collectVerbFlags(program));
|
|
33251
33397
|
return program;
|
|
33252
33398
|
}
|
|
@@ -33264,4 +33410,4 @@ function collectVerbFlags(program) {
|
|
|
33264
33410
|
}
|
|
33265
33411
|
|
|
33266
33412
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
33267
|
-
//# sourceMappingURL=program-
|
|
33413
|
+
//# sourceMappingURL=program-BQH8NPXj.js.map
|