@go-to-k/cdkd 0.301.2 → 0.301.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{asg-provider--t5d-gjf.js → asg-provider-Di3xOH3L.js} +8 -15
- package/dist/asg-provider-Di3xOH3L.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine--5XWdjW3.js → deploy-engine-CZaafy9R.js} +299 -102
- package/dist/deploy-engine-CZaafy9R.js.map +1 -0
- package/dist/{iam-policy-targets-DFk7zr0Q.js → iam-policy-targets-BkeM7IXi.js} +6 -3
- package/dist/iam-policy-targets-BkeM7IXi.js.map +1 -0
- package/dist/{iam-role-provider-Bwgqyn6-.js → iam-role-provider-De0ZPOAF.js} +4 -4
- package/dist/iam-role-provider-De0ZPOAF.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{neptune-provider-DjEVKBcV.js → neptune-provider-DTUriVz3.js} +12 -12
- package/dist/neptune-provider-DTUriVz3.js.map +1 -0
- package/dist/{program-DEPit8lD.js → program-CYtSW-WU.js} +29 -208
- package/dist/program-CYtSW-WU.js.map +1 -0
- package/dist/{provider-classes-CDxfoC_T.js → provider-classes-59TTNMFB.js} +301 -268
- package/dist/provider-classes-59TTNMFB.js.map +1 -0
- package/dist/{rds-provider-BvZhdkOC.js → rds-provider-Dadp11aB.js} +12 -12
- package/dist/rds-provider-Dadp11aB.js.map +1 -0
- package/dist/{version-DUYEmFtp.js → version-Cx2pAgJv.js} +2 -2
- package/dist/{version-DUYEmFtp.js.map → version-Cx2pAgJv.js.map} +1 -1
- package/package.json +2 -2
- package/dist/asg-provider--t5d-gjf.js.map +0 -1
- package/dist/deploy-engine--5XWdjW3.js.map +0 -1
- package/dist/iam-policy-targets-DFk7zr0Q.js.map +0 -1
- package/dist/iam-role-provider-Bwgqyn6-.js.map +0 -1
- package/dist/neptune-provider-DjEVKBcV.js.map +0 -1
- package/dist/program-DEPit8lD.js.map +0 -1
- package/dist/provider-classes-CDxfoC_T.js.map +0 -1
- package/dist/rds-provider-BvZhdkOC.js.map +0 -1
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { a as runWithStackAwsClients, i as resetAwsClients, o as setAwsClients, t as AwsClients } from "./aws-clients-B_CEQGE1.js";
|
|
2
2
|
import { A as UNRENDERABLE, B as safeMsg, D as SAFE_MSG_ALTERED_CHAR, F as displaySafe, H as terminalSafe, I as displayStackName, L as isPasteableIdent, M as cutMarker, N as displayAwsMessage, O as SECRET_REF_MAX_CODE_POINTS, P as displayIdent, T as withStackName, U as truncateCodePoints, V as stringifyJsonPayload, _ as derivesPatternBName, a as getLogger, f as getLiveRenderer, h as PATTERN_B_RESOURCE_TYPES, k as STACK_REF_MAX_CODE_POINTS, l as runStackBuffered, m as PATTERN_B_NAME_PROPERTIES, o as isStdoutReservedForPayload, p as PATTERN_B_NAME_OPTIONS, r as safeStringify, s as reserveStdoutForPayload, t as describeAwsFailure, v as explicitNamePropertyFor, w as withSkipPrefix, y as generateResourceName, z as plainIdentOr } from "./aws-failure-text-BEQfs6za.js";
|
|
3
|
-
import { $t as ambientCredentialConfig, Bn as shellBoundedDisplay, Bt as formatLockOperation, Cn as StateError, D as VALUE_NOT_SHOWN, Dn as normalizeAwsError, E as assertRegionMatch, Fn as isInertUnquoted, Ft as UNREPRODUCIBLE_LOCK_CLAUSE, G as runDeleteAttempt, Gt as DEFAULT_STATE_PREFIX, Hn as withheldTargetClause, In as pasteableCommand, It as buildForceUnlockCommand, Jt as producerCoordinateKey, Kt as injectiveKey, Lt as buildLockContentionMessage, Nn as commandHole, On as withErrorHandling, P as remedyLogicalId, Qt as ambientClientDefaults, Rn as plainOrDescribed, Rt as forceQuitRecoveryClause, Sn as StackTerminationProtectionError, T as RESOURCE_NOT_FOUND, Un as setPasteableRunFlags, Vn as shellQuote, Vt as formatLockOwner, Wn as setPasteableVerbFlags, Wt as CUSTOM_RESOURCE_RESPONSE_PREFIX, Xt as setPasteableAwsProfile, Yt as producerRecordKey, Z as isAwsCliLiteral, Zt as withPasteableAwsProfile, _n as PartialFailureError, ar as isRetryableTransientError, bn as ResourceUpdateNotSupportedError, cn as DeployCancelledError, dn as LocalInvokeBuildError$1, dr as markNonRetryable, en as clientDefaultsFor, fn as LocalStartServiceError, ft as logicalIdShown, gn as NestedStackChildDirectDestroyError, hn as MalformedProducerRecordRefusalError, in as CdkdError, it as isInterruptedWaitError, jn as SHELL_ACTIVE_WHY, kn as TIMEOUT_FLAG_RESOURCE_TYPE, ln as DynamicReferenceRegionAmbiguousError, lr as isMarkedNonRetryable, mt as resourceTypeShown, n as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, nn as AccountIdUnavailableError, nr as isAmbiguousOutcomeError, nt as endCommandInterruptScope, on as CrossAccountSecretRefusalError, or as isTransientServerError, rt as interruptWatchListenerCount, s as readRecordedPrincipals, sr as retryClassificationText, t as IAM_PRINCIPAL_NAME, tn as credentialFingerprint, tt as beginCommandInterruptScope, un as IntrinsicResolutionRefusalError, ur as isThrottlingError, vn as ProvisioningError, wn as SynthesisError, xn as StackHasActiveImportsError, yn as ResourceTimeoutError, zn as quotedOrDescribed, zt as formatLockExpiry } from "./iam-policy-targets-
|
|
4
|
-
import { a as setAssumedRoleCredentials, l as runInStackAwsScope, n as awsClientDefaults, r as getAssumedRoleCredentials, u as formatAuthority } from "./aws-client-defaults-DBXBcg0J.js";
|
|
5
|
-
import { $a as unpreviewableOrphanRecords, $c as stripControlChars, $i as hasReadableOutputs, $n as unsupportedFinalSnapshotError, $o as carryLogOnlyValues, $r as poisonRenderedSpellingsCollidingIn, $s as crossPrefixDeniedWarning, $t as isJournaledOrphan, A as diffSecurity, Aa as refuseMalformedOutputs, Ac as readBootstrapMarkerBody, Ai as isImpossibleEmptyStoredAttribute, Al as StageLoadError, An as collectPublishedOutputNames, Ao as prefetchCreateOnlyPropertyPaths, Ar as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, As as recordPhysicalNameCopy, At as NESTED_PENDING_PARENT_REASON, B as readProtection, Ba as refuseMalformedResourcePropertiesForDrift, Bc as finchSecretArgvRefusal, Bi as withSharedDrainBudget, Bl as renderAssemblyPathEscape, Bn as secretNamePrintingBags, Bo as isMarkedCoordinate, Br as deleteSkipReason, Bs as STATE_SOURCED_BASELINE_RULES, Bt as collectNestedChildUnaddressed, Ca as refuseDivergentRecordRegionForDestroy, Cc as AssetModeResolver, Ci as classifyReplaySecretRegion, Cl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Cn as secretSafeKeyDisplay, Cr as isCustomResource, Cs as pathCrossesDottedKey, Ct as dropFailedCommands, D as findServiceTokenRefusals, Da as refuseMalformedOrphans, Dc as getBootstrapMarkerKey, Di as isUnboundTemplateParameter, Dl as canonicalizeRegion, Dn as isWholeDynamicReferenceValue, Dr as isCustomResourceType$1, Dt as loadJournaledOrphans, E as deferredServiceTokenWarning, Ea as refuseMalformedOrphanRecordsForDestroy, Ec as ensureAssetStorage, Ei as coerceParameterTypedValue, El as PARTITION_TABLE, En as exportNameSecretExposure, Er as readsNoEchoDeleteValues, Es as recordNestedStackParameterExpressions, Et as journaledOrphanLines, F as recordedProtectionEvidence, Fa as refuseMalformedResourceEntriesForDestroy, Fc as resolveDockerContextDirectory, Fi as AWS_NO_VALUE, Fl as nullPrototypeRecord, Fn as completedReplayEntries, Fs as recordMaskOnlyValuesIn, Ft as nestedChildStackName$1, Ga as refuseMalformedResourcesForExport, Gc as partitionSensitiveEnv, Gi as STATE_REGION_DIVERGED, Gl as resolveBucketRegion, Gn as ATOMIC_FINAL_SNAPSHOT_TYPES, Go as noEchoCoordinatesOf, Gs as isSingleDynamicReferenceToken, Ha as refuseMalformedResourcePropertiesForOrphan, Hc as getDockerCmd, Hl as injectAwsRegion, Hn as stateSecretNameNeedles, Ho as maskReadbackAtCoordinates, Hr as isWaitAbandonedError, Hs as STATE_SOURCED_READBACK_RULES, Ht as withNestedStackContext, I as recordedProtectionNote, Ia as refuseMalformedResourceEntriesForImport, Ic as describeDockerCapturedOutput, Ii as cfnRefValueFromPhysicalId, Il as ownValue, In as journaledOrphanPrintingBag, Ir as RollbackInlinePolicyWriters, Is as recordNoEchoAttributeValues, It as recordDisplacedSkips, Ja as repairMalformedOrphansForReadOnly, Jc as redactedDockerCause, Ji as UNREADABLE_RESOURCES_MAP_ROW, Jn as ccRoutedFinalSnapshotError, Js as S3StateBackend, Jt as withStackRecords, Ka as refuseMalformedState, Kc as redactDockerArgvValues, Ki as STATE_RESOURCES_MALFORMED, Kn as PRE_DELETE_SNAPSHOT_TYPES, Ko as noEchoLeavesOf, Ks as LockManager, Kt as destroyStackRecordsView, L as PROTECTION_PROPERTY_BY_TYPE, La as refuseMalformedResourceEntriesForImportSave, Lc as describeDockerExecFailure, Li as isStalePlaceholderArnAttribute, Ll as absoluteAssemblyPathEscape, Ln as maskEventTextWithBoundBags, Lo as DagBuilder, Lr as UNSPECIFIED_SKIP_REASON, Ls as recordNoEchoParameterFreshValue, M as noEchoComparisonForTemplate, Ma as refuseMalformedResourceAttributesForOrphan, Mc as validateContainerRepoName, Mi as carriesFetchableDynamicReference, Ml as defineOwnKey, Mn as bindingSkippedOutputs, Mo as describeTypeWithThrottleRetry, Mr as customResourceResponseExpirationWarning, Ms as carriesSecretMask, Mt as displacedPhysicalIdShown, N as noEchoExactEchoLeavesOf, Na as refuseMalformedResourceEntries, Nc as buildDenyExternalAccessPolicy, Ni as isNamelessDynamicReferenceError, Nl as hasOwnKey, Nn as DEFAULT_RESOURCE_TIMEOUT_MS, No as withRetry, Nr as CloudControlProvider, Ns as provenPublicValue, Nt as dropSettledNestedJournals, O as serviceTokenBlockingReason, Oa as refuseMalformedOrphansForDestroy, Oc as isCrossRegionRedirect, Oi as parameterTypeMayLoseSecretIdentity, Ol as derivePartitionAndUrlSuffix, On as noEchoParameterValueSeed, Os as physicalNameCopiesOf, Ot as makeForeignHolderScan, P as noEchoParameterNamesOf, Pa as refuseMalformedResourceEntriesForDeploy, Pc as buildDockerImage, Pi as keepsSecretReferenceToken, Pl as hasPlainPrototype, Pn as DEFAULT_RESOURCE_WARN_AFTER_MS, Pr as slowCcOperationTimeoutMs, Ps as recordMaskOnlyValue, Qa as repairMalformedResourcesForReadOnly, Qc as escapeRegExp, Qi as hasReadableOrphans, Qn as refusesFinalSnapshot, Qo as liveMatchesUnresolvedTokenFrame, Qr as IntrinsicFunctionResolver, Qs as applyCrossPrefixScan, Qt as demoteSupersededOrphans, R as isProtectionValueActive, Ra as refuseMalformedResourceEntriesForOrphan, Rc as describeDockerFailure, Ri as refStateLookupFromResource, Rl as describeFileReadFailure, Rn as orphanRecordsPrintingBag, Ro as TemplateParser, Rr as deleteIndeterminateGuards, Rs as recordProvenPublicExpression, Rt as revertedNestedRowIds, Sa as previewableOrphanRecords, Sc as rewriteTemplateAssetReferences, Si as classifyRecordedSecretRegion, Sl as uploadCfnTemplate, Sn as secretBearingStateKeyWarning, Sr as ccBrokenReason, Ss as isUncertifiedBaselineMaskPosition, St as deleteJournaledOrphans, T as recordRetainedForReadoption, Ta as refuseMalformedOrphanRecords, Tc as assertAssetBucketRegion, Ti as regionLessSecretName, Tl as expectedOwnerParam, Tn as exportNameNoEchoParameters, Tr as TemplateNoEchoReresolver, Ts as inheritNestedStackParameterAssociations, Tt as isHandledOrphan, Ua as refuseMalformedResourcesForDeploy, Uc as isDockerClientEnvKey, Ui as declaresNoEcho, Ul as injectedAwsRegionValue, Un as storedSecretNameNeedles, Uo as maskWholeValue, Us as TEMPLATE_SOURCED_RULES, Ut as replayFailedOperations, Va as refuseMalformedResourcePropertiesForExport, Vc as formatDockerLoginError, Vi as parameterInputsFor, Vl as resolveAssemblyPath, Vn as secretNamedRecordNeedles, Vo as maskAtCoordinates, Vs as STATE_SOURCED_CROSS_GENERATION_RULES, Vt as getCurrentNestedStackContext, Wa as refuseMalformedResourcesForDestroy, Wc as isMalformedEnvKey, Wi as JSON_LISTING_HOLE_VALUE, Wn as extractDeploymentEventError, Wo as maskedLeafCoordinatesOf, Ws as WHOLE_DYNAMIC_REFERENCE_PATTERN, Wt as replayRollback, Xa as repairMalformedResourceEntriesForReadOnly, Xc as runDockerStreaming, Xi as deployRefusesOrphanRowsReason, Xn as effectiveDeletionPolicy, Xo as readsNoEchoSource, Xr as DiffCalculator, Xs as CrossPrefixReadError, Ya as repairMalformedOutputsForReadOnly, Yc as runDockerForeground, Yi as accountArgs, Yn as createPreDeleteFinalSnapshot, Yo as readbackPathFor, Ys as rebuildClientForBucketRegion, Yt as removeProtectionTypeList, Za as repairMalformedResourcePropertiesForReadOnly, Zc as warnFinchArgvExposure, Zi as displayLogicalId, Zn as isFinalSnapshotError, Zo as valueAtCoordinate, Zr as INTRINSIC_KEYS, Zs as CrossPrefixScanCache, Zt as recordAfterRollbackUpdate, _ as keptWholeReasonText, _a as malformedResourceEntriesWarning, _c as stringifyValue, _l as ssmResolvedValueType, _n as orphanNeedsIdentity, _s as scrubResourceRecord, _t as planOrphanAdoption, a as inheritedProvenanceForChildDiff, aa as malformedExportSourceWarning, ac as exportNamesCarriedFrom, ai as explicitRoleArnOrThrow, al as getDefaultStateBucketName, an as replacementNeverSwapped, ao as unwrittenCreateOnlyReplacement, ar as ledgerForStack, as as recordLogOnlyParameterValue, at as createReadOnlyAttributeHealerFactory, ba as malformedScrubResourceEntriesRefusalMessage, bc as createAssetRedirectResolver, bl as MIGRATE_TMP_PREFIX, bn as exportAliasCollisionScrubWarning, br as CC_BROKEN_REASON, bs as DYNAMIC_REFERENCE_TOKEN_SCAN, bt as pendingRequestCount, c as isAbsoluteAssetPath, ca as malformedLocalResourcesWarning, cc as hasUnverifiableParameterRefusal, ci as AWS_CREDENTIAL_ENV_KEYS, cl as resolveApp, cn as findNestedStackTypeChanges, co as hasNoCloudControlHandlers, cs as unionOfSecretBags, ct as gray, d as templateIdentity, da as malformedOrphanRowsKeptWarning, dc as isReadableBag, di as envCredentialsAreAssumedRole, dl as resolveSkipPrefix, do as MULTI_REGION_RECREATE_BLOCKED_TYPES, ds as maskSecretsInError, dt as yellow, ea as hasReadableResources, ec as isAccessDenied, ei as producerLookupOver, el as stripForDisplay, en as isReplacementOrphan, eo as unreadableOrphanRecords, er as maskingRetryLogger, es as createUnionSecretMasker, f as conditionFingerprint, fa as malformedOrphansRefusalMessage, fc as orphansAfterRollback, fl as resolveStateBucketWithDefault, fo as isStatefulRecreateTargetForReplace, fs as maskSecretsInText, ft as computeParameterTaint, g as isSecretBearingReferenceString, ga as malformedRenderedContainersWarning, gc as isSensitiveAttributeName, gi as recordedReferenceRegions, gl as warnDeprecatedNoPrefixCliFlag, gn as updatePartialReason, gs as redactSecretsForState, gt as makeSiblingClaimReader, h as readRecordedConditionVerdicts, ha as malformedOutputsWarning, hc as AssetPublisher, hi as recordedOutputReferenceRegions, hl as stateBucketExistenceConfirmed, hn as updatePartialMessage, ht as resourcesNamingDeclaredParameter, i as crossStackOutputProvenanceSource, ia as malformedExportNamesWarning, ic as describeRegionValueKind, ii as assertSendableRoleArn, il as synthesisStatusMessage, in as recordUnderIdIsNotOwn, is as printingCorpusOf, it as formatResourceLine, j as noEchoAttributeNamesOf, ja as refuseMalformedOutputsForDestroy, jc as validateAssetBucketName, ji as carriesDynamicReference, jl as processStackMessages, jn as isExportAliasCollision, jo as templateResourceTypes, jr as applyCustomResourceResponseExpiration, js as splitGetAttStringForm, jt as displacedOpClause, k as withResourceDeadline, ka as refuseMalformedOrphansForOrphan, kc as parseBootstrapMarker, ki as getAccountInfo, kl as AssemblyReader, kn as collectDeclaredOutputNames, kr as withPrintingSecrets, kt as sameJournaledOrphans, l as listNestedTemplateRows, la as malformedOrphanRecordsRefusalMessage, lc as importableOutputKeys, li as applyCallerIdentityCredentials, ll as resolveAutoAssetStorage, lo as findReplacedReadersOfRecreateTargets, ls as createSecretMasker, lt as green, m as parentSuppliedValues, ma as malformedOutputsRefusalMessage, mc as shouldRetainResource, ml as resolveUseCdkBootstrapAssets, mo as renderStatefulReason, mt as reachableDivergentParameters, n as IMPLICIT_DELETE_DEPENDENCIES, na as isReadableResourceEntry, nc as splitImportedOps, ni as applyRoleArnIfSet, nl as getDockerImageBySourceHash, nn as planRollback, no as withheldAccountClause, nr as findDestructiveChanges, ns as literalSplitDelimitersOf, o as childTemplateLoader, oa as malformedLocalOutputsWarning, oc as hasReadableExportSet, oi as isIamRoleArn, ol as getLegacyStateBucketName, on as resolveReplacementOldType, os as recordLogOnlyValue, ot as bold, p as conditionInputsFrom, pa as malformedOrphansWarning, pc as orphansCarriedFrom, pi as keepHeldTokenProvenance, pl as resolveStateBucketWithDefaultAndSource, po as isStatefulRecreateTargetSync, ps as markSameGenerationBag, pt as namesAnyDeclaredParameter, qa as repairMalformedOrphanRecordsForReadOnly, qc as redactedCause, qi as UNREADABLE_ORPHANS_CONTAINER_ROW, qn as buildFinalSnapshotIdentifier, qo as noEchoOutputsComparison, qs as isLockInfoExpired, r as computeImplicitDeleteEdges, ra as malformedDriftResourcePropertiesWarning, rc as acceptedCreateOnlyDropsOf, ri as assertFlagRoleArn, rl as Synthesizer, rn as recheckFailedPlan, ro as findActionableSilentDrops, rr as formatDestructiveChange, rs as logOnlyValueCount, s as findNestedTemplateTreeDefect, sa as malformedLocalResourceEntriesWarning, sc as hasReasonlessBaselineRefusal, si as sendableAssumeRoleCommand, sl as loadCdkJson, sn as seedsDeleteFirstGuard, so as NO_CC_HANDLERS_REASON, sr as withCreateTokenLedger, ss as shareLogOnlyValues, st as cyan, t as DeployEngine, ta as isReadableOrphanRecord, tc as isNotImplemented, ti as refuseUnreadableCdkCrossAccountRefs, tl as AssetManifestLoader, tn as planFailedOps, to as unreadableResourceEntries, tr as constructPathOf, ts as hasMaskableValues, u as renderNestedTemplateTreeDefect, ua as malformedOrphanRecordsWarning, uc as importableOutputs, ui as callerEnvCredentials, ul as resolveCaptureObservedState, un as inheritProducerRegions, uo as shownType, us as errorCauseChain, ut as red, v as mergeNoChangeOutputs, va as malformedResourcePropertiesWarning, vc as WorkGraph, vl as CFN_TEMPLATE_BODY_LIMIT, vn as WITHHELD_NAME_DISPLAY, vs as withPhysicalNameCopies, vt as DeploymentEventsReader, w as keptForReadoption, wc as BOOTSTRAP_MARKER_PREFIX, wi as producerRegionsFromState, wl as decodeListingKey, wn as carriedExportAliasExposure, wr as wouldReturnToSdkProvider, ws as identityKeyFor, wt as dropFailedHint, xa as malformedStateRefusalMessage, xc as loadPublishableAssetManifest, xl as findLargeInlineResources, xn as secretBearing, xr as ProviderRegistry, xs as dynamicReferenceTokens, xt as resolvePendingCloudControlRequests, y as makeCanonicalizePropertiesFn, ya as malformedResourcesWarning, yc as buildAssetRedirectMap, yl as CFN_TEMPLATE_URL_LIMIT, yn as displayTextOrWithheld, yt as DeploymentEventsStore, z as perType, za as refuseMalformedResourcePropertiesForDestroy, zc as dockerSpawnEnvWithSensitive, zl as displayAssemblyPath, zn as secretNamePrintingBag, zo as canonicalCoordinates, zr as deleteLeftInPlace, zs as wholeStringLeavesOf, zt as withNestedRevertRun } from "./deploy-engine--5XWdjW3.js";
|
|
6
|
-
import { t as getCdkdVersion } from "./version-
|
|
3
|
+
import { $t as ambientCredentialConfig, Bn as shellBoundedDisplay, Bt as formatLockOperation, Cn as StateError, D as VALUE_NOT_SHOWN, Dn as normalizeAwsError, E as assertRegionMatch, Fn as isInertUnquoted, Ft as UNREPRODUCIBLE_LOCK_CLAUSE, G as runDeleteAttempt, Gt as DEFAULT_STATE_PREFIX, Hn as withheldTargetClause, In as pasteableCommand, It as buildForceUnlockCommand, Jt as producerCoordinateKey, Kt as injectiveKey, Lt as buildLockContentionMessage, Nn as commandHole, On as withErrorHandling, P as remedyLogicalId, Qt as ambientClientDefaults, Rn as plainOrDescribed, Rt as forceQuitRecoveryClause, Sn as StackTerminationProtectionError, T as RESOURCE_NOT_FOUND, Un as setPasteableRunFlags, Vn as shellQuote, Vt as formatLockOwner, Wn as setPasteableVerbFlags, Wt as CUSTOM_RESOURCE_RESPONSE_PREFIX, Xt as setPasteableAwsProfile, Yt as producerRecordKey, Z as isAwsCliLiteral, Zt as withPasteableAwsProfile, _n as PartialFailureError, ar as isRetryableTransientError, bn as ResourceUpdateNotSupportedError, cn as DeployCancelledError, dn as LocalInvokeBuildError$1, dr as markNonRetryable, en as clientDefaultsFor, fn as LocalStartServiceError, ft as logicalIdShown, gn as NestedStackChildDirectDestroyError, hn as MalformedProducerRecordRefusalError, in as CdkdError, it as isInterruptedWaitError, jn as SHELL_ACTIVE_WHY, kn as TIMEOUT_FLAG_RESOURCE_TYPE, ln as DynamicReferenceRegionAmbiguousError, lr as isMarkedNonRetryable, mt as resourceTypeShown, n as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, nn as AccountIdUnavailableError, nr as isAmbiguousOutcomeError, nt as endCommandInterruptScope, on as CrossAccountSecretRefusalError, or as isTransientServerError, rt as interruptWatchListenerCount, s as readRecordedPrincipals, sr as retryClassificationText, t as IAM_PRINCIPAL_NAME, tn as credentialFingerprint, tt as beginCommandInterruptScope, un as IntrinsicResolutionRefusalError, ur as isThrottlingError, vn as ProvisioningError, wn as SynthesisError, xn as StackHasActiveImportsError, yn as ResourceTimeoutError, zn as quotedOrDescribed, zt as formatLockExpiry } from "./iam-policy-targets-BkeM7IXi.js";
|
|
4
|
+
import { a as setAssumedRoleCredentials, i as getPreAssumeEnvCredentials, l as runInStackAwsScope, n as awsClientDefaults, r as getAssumedRoleCredentials, u as formatAuthority } from "./aws-client-defaults-DBXBcg0J.js";
|
|
5
|
+
import { $a as repairMalformedResourcesForReadOnly, $c as escapeRegExp, $i as hasReadableOrphans, $n as unsupportedFinalSnapshotError, $o as liveMatchesUnresolvedTokenFrame, $r as IntrinsicFunctionResolver, $s as applyCrossPrefixScan, $t as isJournaledOrphan, A as diffSecurity, Aa as refuseMalformedOrphansForOrphan, Ac as parseBootstrapMarker, Ai as getAccountInfo, Al as AssemblyReader, An as collectPublishedOutputNames, Ar as withPrintingSecrets, At as NESTED_PENDING_PARENT_REASON, B as readProtection, Ba as refuseMalformedResourcePropertiesForDestroy, Bc as dockerSpawnEnvWithSensitive, Bl as displayAssemblyPath, Bn as secretNamePrintingBags, Bo as canonicalCoordinates, Br as deleteLeftInPlace, Bs as wholeStringLeavesOf, Bt as collectNestedChildUnaddressed, Ca as previewableOrphanRecords, Cc as rewriteTemplateAssetReferences, Ci as classifyRecordedSecretRegion, Cl as uploadCfnTemplate, Cn as secretSafeKeyDisplay, Cr as isCustomResource, Cs as isUncertifiedBaselineMaskPosition, Ct as dropFailedCommands, D as findServiceTokenRefusals, Da as refuseMalformedOrphanRecordsForDestroy, Dc as ensureAssetStorage, Di as coerceParameterTypedValue, Dl as PARTITION_TABLE, Dn as isWholeDynamicReferenceValue, Dr as readsNoEchoDeleteValues, Ds as recordNestedStackParameterExpressions, Dt as loadJournaledOrphans, E as deferredServiceTokenWarning, Ea as refuseMalformedOrphanRecords, Ec as assertAssetBucketRegion, Ei as regionLessSecretName, El as expectedOwnerParam, En as exportNameSecretExposure, Er as TemplateNoEchoReresolver, Es as inheritNestedStackParameterAssociations, Et as journaledOrphanLines, F as recordedProtectionEvidence, Fa as refuseMalformedResourceEntriesForDeploy, Fc as buildDockerImage, Fi as keepsSecretReferenceToken, Fl as hasPlainPrototype, Fn as completedReplayEntries, Fr as slowCcOperationTimeoutMs, Fs as recordMaskOnlyValue, Ft as nestedChildStackName$1, Ga as refuseMalformedResourcesForDestroy, Gc as isMalformedEnvKey, Gi as JSON_LISTING_HOLE_VALUE, Gn as ATOMIC_FINAL_SNAPSHOT_TYPES, Go as maskedLeafCoordinatesOf, Gs as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ha as refuseMalformedResourcePropertiesForExport, Hc as formatDockerLoginError, Hi as parameterInputsFor, Hl as resolveAssemblyPath, Hn as stateSecretNameNeedles, Ho as maskAtCoordinates, Hs as STATE_SOURCED_CROSS_GENERATION_RULES, Ht as withNestedStackContext, I as recordedProtectionNote, Ia as refuseMalformedResourceEntriesForDestroy, Ic as resolveDockerContextDirectory, Ii as AWS_NO_VALUE, Il as nullPrototypeRecord, In as journaledOrphanPrintingBag, Is as recordMaskOnlyValuesIn, It as recordDisplacedSkips, Ja as repairMalformedOrphanRecordsForReadOnly, Jc as redactedCause, Ji as UNREADABLE_ORPHANS_CONTAINER_ROW, Jn as ccRoutedFinalSnapshotError, Jo as noEchoOutputsComparison, Js as isLockInfoExpired, Jt as withStackRecords, Ka as refuseMalformedResourcesForExport, Kc as partitionSensitiveEnv, Ki as STATE_REGION_DIVERGED, Kl as resolveBucketRegion, Kn as PRE_DELETE_SNAPSHOT_TYPES, Ko as noEchoCoordinatesOf, Ks as isSingleDynamicReferenceToken, Kt as destroyStackRecordsView, L as PROTECTION_PROPERTY_BY_TYPE, La as refuseMalformedResourceEntriesForImport, Lc as describeDockerCapturedOutput, Li as cfnRefValueFromPhysicalId, Ll as ownValue, Ln as maskEventTextWithBoundBags, Lr as RollbackInlinePolicyWriters, Ls as recordNoEchoAttributeValues, M as noEchoComparisonForTemplate, Ma as refuseMalformedOutputsForDestroy, Mc as validateAssetBucketName, Mi as carriesDynamicReference, Ml as processStackMessages, Mn as bindingSkippedOutputs, Mo as templateResourceTypes, Mr as applyCustomResourceResponseExpiration, Ms as splitGetAttStringForm, Mt as displacedPhysicalIdShown, N as noEchoExactEchoLeavesOf, Na as refuseMalformedResourceAttributesForOrphan, Nc as validateContainerRepoName, Ni as carriesFetchableDynamicReference, Nl as defineOwnKey, Nn as DEFAULT_RESOURCE_TIMEOUT_MS, No as describeTypeWithThrottleRetry, Nr as customResourceResponseExpirationWarning, Ns as carriesSecretMask, Nt as dropSettledNestedJournals, O as serviceTokenBlockingReason, Oa as refuseMalformedOrphans, Oc as getBootstrapMarkerKey, Oi as isUnboundTemplateParameter, Ol as canonicalizeRegion, On as noEchoParameterValueSeed, Or as isCustomResourceType$1, Ot as makeForeignHolderScan, P as noEchoParameterNamesOf, Pa as refuseMalformedResourceEntries, Pc as buildDenyExternalAccessPolicy, Pi as isNamelessDynamicReferenceError, Pl as hasOwnKey, Pn as DEFAULT_RESOURCE_WARN_AFTER_MS, Po as withRetry, Pr as CloudControlProvider, Ps as provenPublicValue, Qa as repairMalformedResourcePropertiesForReadOnly, Qc as warnFinchArgvExposure, Qi as displayLogicalId, Qn as refusesFinalSnapshot, Qo as valueAtCoordinate, Qr as INTRINSIC_KEYS, Qs as CrossPrefixScanCache, Qt as demoteSupersededOrphans, R as isProtectionValueActive, Ra as refuseMalformedResourceEntriesForImportSave, Rc as describeDockerExecFailure, Ri as isStalePlaceholderArnAttribute, Rl as absoluteAssemblyPathEscape, Rn as orphanRecordsPrintingBag, Ro as DagBuilder, Rr as UNSPECIFIED_SKIP_REASON, Rs as recordNoEchoParameterFreshValue, Rt as revertedNestedRowIds, Sa as malformedStateRefusalMessage, Sc as loadPublishableAssetManifest, Sl as findLargeInlineResources, Sn as secretBearingStateKeyWarning, Sr as ccBrokenReason, Ss as dynamicReferenceTokens, St as deleteJournaledOrphans, T as recordRetainedForReadoption, Tc as BOOTSTRAP_MARKER_PREFIX, Ti as producerRegionsFromState, Tl as decodeListingKey, Tn as exportNameNoEchoParameters, Ts as identityKeyFor, Tt as isHandledOrphan, Ua as refuseMalformedResourcePropertiesForOrphan, Uc as getDockerCmd, Ul as injectAwsRegion, Un as storedSecretNameNeedles, Uo as maskReadbackAtCoordinates, Ur as isWaitAbandonedError, Us as STATE_SOURCED_READBACK_RULES, Ut as replayFailedOperations, Va as refuseMalformedResourcePropertiesForDrift, Vc as finchSecretArgvRefusal, Vi as withSharedDrainBudget, Vl as renderAssemblyPathEscape, Vn as secretNamedRecordNeedles, Vo as isMarkedCoordinate, Vr as deleteSkipReason, Vs as STATE_SOURCED_BASELINE_RULES, Vt as getCurrentNestedStackContext, Wa as refuseMalformedResourcesForDeploy, Wc as isDockerClientEnvKey, Wi as declaresNoEcho, Wl as injectedAwsRegionValue, Wn as extractDeploymentEventError, Wo as maskWholeValue, Ws as TEMPLATE_SOURCED_RULES, Wt as replayRollback, Xa as repairMalformedOutputsForReadOnly, Xc as runDockerForeground, Xi as accountArgs, Xn as effectiveDeletionPolicy, Xo as readbackPathFor, Xs as rebuildClientForBucketRegion, Ya as repairMalformedOrphansForReadOnly, Yc as redactedDockerCause, Yi as UNREADABLE_RESOURCES_MAP_ROW, Yn as createPreDeleteFinalSnapshot, Ys as S3StateBackend, Yt as removeProtectionTypeList, Za as repairMalformedResourceEntriesForReadOnly, Zc as runDockerStreaming, Zi as deployRefusesOrphanRowsReason, Zn as isFinalSnapshotError, Zo as readsNoEchoSource, Zr as DiffCalculator, Zs as CrossPrefixReadError, Zt as recordAfterRollbackUpdate, _ as keptWholeReasonText, _a as malformedRenderedContainersWarning, _c as isSensitiveAttributeName, _i as recordedReferenceRegions, _l as warnDeprecatedNoPrefixCliFlag, _n as orphanNeedsIdentity, _s as redactSecretsForState, _t as planOrphanAdoption, a as inheritedProvenanceForChildDiff, aa as malformedExportNamesWarning, ac as describeRegionValueKind, ai as assertSendableRoleArn, al as synthesisStatusMessage, an as replacementNeverSwapped, ar as ledgerForStack, as as printingCorpusOf, at as createReadOnlyAttributeHealerFactory, ba as malformedResourcesWarning, bc as buildAssetRedirectMap, bl as CFN_TEMPLATE_URL_LIMIT, bn as exportAliasCollisionScrubWarning, br as CC_BROKEN_REASON, bt as pendingRequestCount, c as isAbsoluteAssetPath, ca as malformedLocalResourceEntriesWarning, cc as hasReasonlessBaselineRefusal, ci as sendableAssumeRoleCommand, cl as loadCdkJson, cn as findNestedStackTypeChanges, co as NO_CC_HANDLERS_REASON, cs as shareLogOnlyValues, ct as gray, d as templateIdentity, da as malformedOrphanRecordsWarning, dc as importableOutputs, di as callerEnvCredentials, dl as resolveCaptureObservedState, do as shownType, ds as errorCauseChain, dt as yellow, ea as hasReadableOutputs, ec as crossPrefixDeniedWarning, ei as poisonRenderedSpellingsCollidingIn, el as stripControlChars, en as isReplacementOrphan, eo as unpreviewableOrphanRecords, er as maskingRetryLogger, es as carryLogOnlyValues, f as conditionFingerprint, fa as malformedOrphanRowsKeptWarning, fc as isReadableBag, fi as envCredentialsAreAssumedRole, fl as resolveSkipPrefix, fo as MULTI_REGION_RECREATE_BLOCKED_TYPES, fs as maskSecretsInError, ft as computeParameterTaint, g as isSecretBearingReferenceString, ga as malformedOutputsWarning, gc as AssetPublisher, gi as recordedOutputReferenceRegions, gl as stateBucketExistenceConfirmed, gn as updatePartialReason, gt as makeSiblingClaimReader, h as readRecordedConditionVerdicts, ha as malformedOutputsRefusalMessage, hc as shouldRetainResource, hl as resolveUseCdkBootstrapAssets, hn as updatePartialMessage, ho as renderStatefulReason, ht as resourcesNamingDeclaredParameter, i as crossStackOutputProvenanceSource, ia as malformedDriftResourcePropertiesWarning, ic as acceptedCreateOnlyDropsOf, ii as assertFlagRoleArn, il as Synthesizer, in as recordUnderIdIsNotOwn, io as findActionableSilentDrops, is as logOnlyValueCount, it as formatResourceLine, j as noEchoAttributeNamesOf, ja as refuseMalformedOutputs, jc as readBootstrapMarkerBody, ji as isImpossibleEmptyStoredAttribute, jl as StageLoadError, jn as isExportAliasCollision, jo as prefetchCreateOnlyPropertyPaths, jr as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, js as recordPhysicalNameCopy, jt as displacedOpClause, k as withResourceDeadline, ka as refuseMalformedOrphansForDestroy, kc as isCrossRegionRedirect, ki as parameterTypeMayLoseSecretIdentity, kl as derivePartitionAndUrlSuffix, kn as collectDeclaredOutputNames, ks as physicalNameCopiesOf, kt as sameJournaledOrphans, l as listNestedTemplateRows, la as malformedLocalResourcesWarning, lc as hasUnverifiableParameterRefusal, li as AWS_CREDENTIAL_ENV_KEYS, ll as resolveApp, lo as hasNoCloudControlHandlers, ls as unionOfSecretBags, lt as green, m as parentSuppliedValues, ma as malformedOrphansWarning, mc as orphansCarriedFrom, mi as keepHeldTokenProvenance, ml as resolveStateBucketWithDefaultAndSource, mo as isStatefulRecreateTargetSync, ms as markSameGenerationBag, mt as reachableDivergentParameters, n as IMPLICIT_DELETE_DEPENDENCIES, na as isReadableOrphanRecord, nc as isNotImplemented, ni as refuseUnreadableCdkCrossAccountRefs, nl as AssetManifestLoader, nn as planRollback, no as unreadableResourceEntries, nr as findDestructiveChanges, ns as hasMaskableValues, o as childTemplateLoader, oa as malformedExportSourceWarning, oc as exportNamesCarriedFrom, oi as explicitRoleArnOrThrow, ol as getDefaultStateBucketName, on as resolveReplacementOldType, oo as unwrittenCreateOnlyReplacement, os as recordLogOnlyParameterValue, ot as bold, p as conditionInputsFrom, pa as malformedOrphansRefusalMessage, pc as orphansAfterRollback, pl as resolveStateBucketWithDefault, po as isStatefulRecreateTargetForReplace, ps as maskSecretsInText, pt as namesAnyDeclaredParameter, qa as refuseMalformedState, qc as redactDockerArgvValues, qi as STATE_RESOURCES_MALFORMED, qn as buildFinalSnapshotIdentifier, qo as noEchoLeavesOf, qs as LockManager, r as computeImplicitDeleteEdges, ra as isReadableResourceEntry, rc as splitImportedOps, ri as applyRoleArnIfSet, rl as getDockerImageBySourceHash, rn as recheckFailedPlan, ro as withheldAccountClause, rr as formatDestructiveChange, rs as literalSplitDelimitersOf, s as findNestedTemplateTreeDefect, sa as malformedLocalOutputsWarning, sc as hasReadableExportSet, si as isIamRoleArn, sl as getLegacyStateBucketName, sn as seedsDeleteFirstGuard, sr as withCreateTokenLedger, ss as recordLogOnlyValue, st as cyan, t as DeployEngine, ta as hasReadableResources, tc as isAccessDenied, ti as producerLookupOver, tl as stripForDisplay, tn as planFailedOps, to as unreadableOrphanRecords, tr as constructPathOf, ts as createUnionSecretMasker, u as renderNestedTemplateTreeDefect, ua as malformedOrphanRecordsRefusalMessage, uc as importableOutputKeys, ui as applyCallerIdentityCredentials, ul as resolveAutoAssetStorage, un as inheritProducerRegions, uo as findReplacedReadersOfRecreateTargets, us as createSecretMasker, ut as red, v as mergeNoChangeOutputs, va as malformedResourceEntriesWarning, vc as stringifyValue, vl as ssmResolvedValueType, vn as WITHHELD_NAME_DISPLAY, vs as scrubResourceRecord, vt as DeploymentEventsReader, w as keptForReadoption, wa as refuseDivergentRecordRegionForDestroy, wc as AssetModeResolver, wi as classifyReplaySecretRegion, wl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, wn as carriedExportAliasExposure, wr as wouldReturnToSdkProvider, ws as pathCrossesDottedKey, wt as dropFailedHint, xa as malformedScrubResourceEntriesRefusalMessage, xc as createAssetRedirectResolver, xl as MIGRATE_TMP_PREFIX, xn as secretBearing, xr as ProviderRegistry, xs as DYNAMIC_REFERENCE_TOKEN_SCAN, xt as resolvePendingCloudControlRequests, y as makeCanonicalizePropertiesFn, ya as malformedResourcePropertiesWarning, yc as WorkGraph, yl as CFN_TEMPLATE_BODY_LIMIT, yn as displayTextOrWithheld, ys as withPhysicalNameCopies, yt as DeploymentEventsStore, z as perType, za as refuseMalformedResourceEntriesForOrphan, zc as describeDockerFailure, zi as refStateLookupFromResource, zl as describeFileReadFailure, zn as secretNamePrintingBag, zo as TemplateParser, zr as deleteIndeterminateGuards, zs as recordProvenPublicExpression, zt as withNestedRevertRun } from "./deploy-engine-CZaafy9R.js";
|
|
6
|
+
import { t as getCdkdVersion } from "./version-Cx2pAgJv.js";
|
|
7
7
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
8
8
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
9
9
|
import { GetRoleCommand, GetUserCommand } from "@aws-sdk/client-iam";
|
|
10
|
-
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
11
10
|
import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
12
11
|
import { DescribeSecurityGroupRulesCommand } from "@aws-sdk/client-ec2";
|
|
13
12
|
import { CloudFormationClient, CreateChangeSetCommand, DeleteChangeSetCommand, DeleteStackCommand, DescribeChangeSetCommand, DescribeStackEventsCommand, DescribeStackResourcesCommand, DescribeStacksCommand, ExecuteChangeSetCommand, GetTemplateCommand, UpdateStackCommand, waitUntilChangeSetCreateComplete, waitUntilStackDeleteComplete, waitUntilStackImportComplete, waitUntilStackUpdateComplete } from "@aws-sdk/client-cloudformation";
|
|
14
13
|
import { GetSecretValueCommand, SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
|
|
15
14
|
import { GetParameterCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
16
|
-
import { DescribeLogStreamsCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
17
|
-
import { BedrockAgentCoreControlClient } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
15
|
+
import { DescribeLogStreamsCommand, ResourceNotFoundException as ResourceNotFoundException$1 } from "@aws-sdk/client-cloudwatch-logs";
|
|
18
16
|
import * as fs from "node:fs";
|
|
19
17
|
import { cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
|
|
20
18
|
import * as path from "node:path";
|
|
@@ -28,8 +26,8 @@ import { Command, InvalidArgumentError, Option } from "commander";
|
|
|
28
26
|
import * as readline$1 from "node:readline/promises";
|
|
29
27
|
import readline from "node:readline/promises";
|
|
30
28
|
import { Document, Pair, Scalar, YAMLMap, YAMLSeq, isScalar, parse, stringify, visit } from "yaml";
|
|
31
|
-
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, addAlbSpecificOptions, addCommonEcsServiceOptions, addStartServiceSpecificOptions, albStrategy, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildStageMap, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, filterRoutesByApiIdentifier, firstUsableRegion, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readMtlsMaterialsFromDisk, resolveAgentCoreTarget, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostGatewayExtraHosts, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
|
|
32
|
-
import {
|
|
29
|
+
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, addAlbSpecificOptions, addCommonEcsServiceOptions, addStartServiceSpecificOptions, albStrategy, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildStageMap, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, filterRoutesByApiIdentifier, firstUsableRegion, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readMtlsMaterialsFromDisk, recordAssumedRole, resolveAgentCoreTarget, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostGatewayExtraHosts, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
|
|
30
|
+
import { createLocalStartAgentCoreCommand, createLocalStartCloudFrontCommand, createLocalStateProvider, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resolveCfnFallbackRegion, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync } from "cdk-local";
|
|
33
31
|
import { createServer } from "node:net";
|
|
34
32
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
35
33
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
@@ -1778,7 +1776,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
1778
1776
|
});
|
|
1779
1777
|
}
|
|
1780
1778
|
} catch (e) {
|
|
1781
|
-
if (e instanceof ResourceNotFoundException$
|
|
1779
|
+
if (e instanceof ResourceNotFoundException$1) {
|
|
1782
1780
|
let regionVerified = true;
|
|
1783
1781
|
if (clients.expectedRegionDiverged) {
|
|
1784
1782
|
regionVerified = false;
|
|
@@ -2561,7 +2559,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
2561
2559
|
//#region src/provisioning/register-providers.ts
|
|
2562
2560
|
let providerClasses;
|
|
2563
2561
|
function loadProviderClasses() {
|
|
2564
|
-
providerClasses ??= import("./provider-classes-
|
|
2562
|
+
providerClasses ??= import("./provider-classes-59TTNMFB.js");
|
|
2565
2563
|
return providerClasses;
|
|
2566
2564
|
}
|
|
2567
2565
|
function registerAllProviders(registry, classes) {
|
|
@@ -10981,7 +10979,7 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
10981
10979
|
const markedRefused = marked === void 0 ? [] : maskPreserved.unpreservablePaths.filter((path) => isMarkedCoordinate(revertPathSegments(path), marked));
|
|
10982
10980
|
const markedAmong = markedRefused.length > 0;
|
|
10983
10981
|
const markedPaths = maskSecretsInText(markedRefused.join(", "), secrets);
|
|
10984
|
-
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): refused to revert ${maskSecretsInText(maskPreserved.unpreservablePaths.join(", "), secrets)} — the recorded baseline holds only the redaction mask there, and AWS reports nothing to preserve, so cdkd has no value it may write. ${markedAmong ? `Where a NoEcho template parameter feeds a path (${markedPaths}), deploy the stack with the parameter's value to set it. For the other paths,
|
|
10982
|
+
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): refused to revert ${maskSecretsInText(maskPreserved.unpreservablePaths.join(", "), secrets)} — the recorded baseline holds only the redaction mask there, and AWS reports nothing to preserve, so cdkd has no value it may write. ${markedAmong ? `Where a NoEcho template parameter feeds a path (${markedPaths}), deploy the stack with the parameter's value to set it. For the other paths, four` : "Four"} causes leave such a mask, and the record does not say which: a NoEcho custom-resource value (force that custom resource to update — change one of its properties, e.g. a nonce — and re-deploy, so its handler runs again and supplies the value); the Fn::Base64 encoding of a secret value, which cdkd never records (deploy a change to this resource, which sends it the encoded value again); two secret values that overlap inside the value, which no single reference renders (change the property, or rotate one of the secrets, so that they no longer overlap, and deploy that change); or a readback position cdkd could not certify when the baseline was captured (deploy a change to this resource, so its baseline is re-captured). A re-deploy that leaves this resource unchanged sends it nothing, so it resolves this refusal for none of them.`);
|
|
10985
10983
|
return;
|
|
10986
10984
|
}
|
|
10987
10985
|
newProperties = maskPreserved.properties;
|
|
@@ -15736,7 +15734,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
|
|
|
15736
15734
|
blocked.push({
|
|
15737
15735
|
logicalId,
|
|
15738
15736
|
resourceType,
|
|
15739
|
-
reason: `cdkd state holds only the redaction mask ('***') for at least one property, and cdkd cannot re-derive the value. There are
|
|
15737
|
+
reason: `cdkd state holds only the redaction mask ('***') for at least one property, and cdkd cannot re-derive the value. There are four ways a record comes to hold it. (1) A NoEcho custom-resource value: forcing the custom resource to update does NOT clear this — the handler supplies the value to the deploy and cdkd re-masks it on the way into state, so the export still has nothing to declare. Stop setting NoEcho on that response and re-deploy, then export again. (2) The Fn::Base64 encoding of a secret value (a {{resolve:...}} dynamic reference under Fn::Base64, such as EC2 UserData): cdkd never records that encoding, so re-deploying the same template does not clear this. Stop encoding the secret into the property (have the resource read the secret at run time instead — not by writing the secret's plaintext into the template, which cdkd would then record in state in the clear) and re-deploy, then export again. (3) The value was SPLICED from a masked record of ANOTHER resource — by 'cdkd orphan --force', or by 'cdkd import' resolving an Fn::GetAtt or a Ref over a value the Cloud Control fallback had masked. Repair the record that HOLDS the mask with cdkd import ${commandHole("stack")} --resource ${commandHole("logicalId")}=${commandHole("physicalId")} --force (granting cloudformation:DescribeType first if the import warned that it could not read the schema), then re-run whichever command wrote this property. (4) Two secret values cdkd resolved overlap inside the value, so no single {{resolve:...}} reference renders it: change the property (or rotate one of the secrets) so that they no longer overlap, re-deploy, then export again. In every case you can also export this stack without that resource and adopt it into CloudFormation by hand. See https://github.com/go-to-k/cdkd/issues/2274.`
|
|
15740
15738
|
});
|
|
15741
15739
|
continue;
|
|
15742
15740
|
}
|
|
@@ -22161,6 +22159,14 @@ function hasSdkMetadata(error) {
|
|
|
22161
22159
|
return error.$metadata !== void 0;
|
|
22162
22160
|
}
|
|
22163
22161
|
|
|
22162
|
+
//#endregion
|
|
22163
|
+
//#region src/local/local-role-arn.ts
|
|
22164
|
+
async function applyRoleArnForLocal(opts) {
|
|
22165
|
+
await applyRoleArnIfSet(opts);
|
|
22166
|
+
if (getAssumedRoleCredentials() === void 0) return;
|
|
22167
|
+
recordAssumedRole(getPreAssumeEnvCredentials());
|
|
22168
|
+
}
|
|
22169
|
+
|
|
22164
22170
|
//#endregion
|
|
22165
22171
|
//#region src/cli/commands/local-state-loader.ts
|
|
22166
22172
|
async function loadStateForStack(stackName, synthRegion, opts) {
|
|
@@ -22503,175 +22509,7 @@ const fromStateFactory = (options) => {
|
|
|
22503
22509
|
};
|
|
22504
22510
|
const cdkdExtraStateProviders = { fromState: fromStateFactory };
|
|
22505
22511
|
function createLocalStateProvider$1(options, cdkdStackName, synthRegion) {
|
|
22506
|
-
|
|
22507
|
-
if (provider instanceof CfnLocalStateProvider) bindCallerIdentityClients(provider, options.profile);
|
|
22508
|
-
else if (isCfnFlagPresent(options) && cannotLeaveUnbound(options.profile)) throw new Error(cfnProviderRefusal(["a --from-cfn-stack provider that is not CfnLocalStateProvider"]));
|
|
22509
|
-
return provider;
|
|
22510
|
-
}
|
|
22511
|
-
function cannotLeaveUnbound(profile) {
|
|
22512
|
-
if (getAssumedRoleCredentials() === void 0) return false;
|
|
22513
|
-
return !(profile || process.env["AWS_PROFILE"]);
|
|
22514
|
-
}
|
|
22515
|
-
function cfnProviderRefusal(drift) {
|
|
22516
|
-
return `--from-cfn-stack cannot run under --role-arn with this cdk-local version: it has ${drift.join(", ")}, so cdkd cannot make it read the stack with your own credentials instead of the role's. Pass --profile <name> (your own profile), or use the cdk-local version this cdkd release ships with.`;
|
|
22517
|
-
}
|
|
22518
|
-
const CFN_PROVIDER_CLIENT_GETTERS = [
|
|
22519
|
-
"getClient",
|
|
22520
|
-
"getLambdaClient",
|
|
22521
|
-
"getSsmClient",
|
|
22522
|
-
"getAgentCoreControlClient"
|
|
22523
|
-
];
|
|
22524
|
-
const CFN_PROVIDER_CLIENT_SLOTS = [
|
|
22525
|
-
"client",
|
|
22526
|
-
"lambdaClient",
|
|
22527
|
-
"ssmClient",
|
|
22528
|
-
"agentCoreControlClient"
|
|
22529
|
-
];
|
|
22530
|
-
const CFN_PROVIDER_PROTOTYPE_MEMBERS = [
|
|
22531
|
-
"constructor",
|
|
22532
|
-
...CFN_PROVIDER_CLIENT_GETTERS,
|
|
22533
|
-
"resolveTemplateSsmParameters",
|
|
22534
|
-
"resolveDeployedFunctionEnv",
|
|
22535
|
-
"resolveLambdaExecutionRoleArn",
|
|
22536
|
-
"resolveAgentCoreRuntimeRoleArn",
|
|
22537
|
-
"load",
|
|
22538
|
-
"getLastLoadError",
|
|
22539
|
-
"buildCrossStackResolver",
|
|
22540
|
-
"dispose"
|
|
22541
|
-
];
|
|
22542
|
-
function cfnProviderShapeDrift(provider) {
|
|
22543
|
-
const proto = Object.getPrototypeOf(provider);
|
|
22544
|
-
const allowed = CFN_PROVIDER_PROTOTYPE_MEMBERS;
|
|
22545
|
-
const slots = CFN_PROVIDER_CLIENT_SLOTS;
|
|
22546
|
-
const drift = [];
|
|
22547
|
-
for (const name of CFN_PROVIDER_CLIENT_GETTERS) if (typeof proto?.[name] !== "function") drift.push(`no ${name}()`);
|
|
22548
|
-
for (let p = proto; p !== null && p !== Object.prototype; p = Object.getPrototypeOf(p)) for (const name of Object.getOwnPropertyNames(p)) if (!allowed.includes(name)) drift.push(`an unknown ${name}()`);
|
|
22549
|
-
for (const slot of CFN_PROVIDER_CLIENT_SLOTS) if (!Object.hasOwn(provider, slot)) drift.push(`no ${slot} slot`);
|
|
22550
|
-
if (typeof provider.region !== "string" || !Object.hasOwn(provider, "region")) drift.push("no region field");
|
|
22551
|
-
for (const name of Object.getOwnPropertyNames(provider)) if (/Client$/.test(name) && !slots.includes(name)) drift.push(`an unknown ${name} slot`);
|
|
22552
|
-
return drift;
|
|
22553
|
-
}
|
|
22554
|
-
function bindCallerIdentityClients(provider, profile) {
|
|
22555
|
-
const drift = cfnProviderShapeDrift(provider);
|
|
22556
|
-
if (drift.length > 0) {
|
|
22557
|
-
if (!cannotLeaveUnbound(profile)) return;
|
|
22558
|
-
throw new Error(cfnProviderRefusal(drift));
|
|
22559
|
-
}
|
|
22560
|
-
const slots = provider;
|
|
22561
|
-
const live = () => {
|
|
22562
|
-
if (slots.disposed) throw new Error("CfnLocalStateProvider used after dispose()");
|
|
22563
|
-
};
|
|
22564
|
-
const config = () => ({
|
|
22565
|
-
region: slots.region,
|
|
22566
|
-
...profile && { profile }
|
|
22567
|
-
});
|
|
22568
|
-
slots.getClient = () => {
|
|
22569
|
-
live();
|
|
22570
|
-
return slots.client ??= new CloudFormationClient({
|
|
22571
|
-
...awsClientDefaults({
|
|
22572
|
-
profile,
|
|
22573
|
-
ignoreAssumedRole: true
|
|
22574
|
-
}),
|
|
22575
|
-
...config()
|
|
22576
|
-
});
|
|
22577
|
-
};
|
|
22578
|
-
slots.getLambdaClient = () => {
|
|
22579
|
-
live();
|
|
22580
|
-
return slots.lambdaClient ??= new LambdaClient({
|
|
22581
|
-
...awsClientDefaults({
|
|
22582
|
-
profile,
|
|
22583
|
-
ignoreAssumedRole: true
|
|
22584
|
-
}),
|
|
22585
|
-
...config()
|
|
22586
|
-
});
|
|
22587
|
-
};
|
|
22588
|
-
slots.getSsmClient = () => {
|
|
22589
|
-
live();
|
|
22590
|
-
return slots.ssmClient ??= new SSMClient({
|
|
22591
|
-
...awsClientDefaults({
|
|
22592
|
-
profile,
|
|
22593
|
-
ignoreAssumedRole: true
|
|
22594
|
-
}),
|
|
22595
|
-
...config()
|
|
22596
|
-
});
|
|
22597
|
-
};
|
|
22598
|
-
slots.getAgentCoreControlClient = () => {
|
|
22599
|
-
live();
|
|
22600
|
-
return slots.agentCoreControlClient ??= new BedrockAgentCoreControlClient({
|
|
22601
|
-
...awsClientDefaults({
|
|
22602
|
-
profile,
|
|
22603
|
-
ignoreAssumedRole: true
|
|
22604
|
-
}),
|
|
22605
|
-
...config()
|
|
22606
|
-
});
|
|
22607
|
-
};
|
|
22608
|
-
}
|
|
22609
|
-
function engineCredentialTripleChannel(containers) {
|
|
22610
|
-
return {
|
|
22611
|
-
what: `the role's AWS credentials are copied into ${containers}, so that code runs as the role`,
|
|
22612
|
-
flagOnly: true
|
|
22613
|
-
};
|
|
22614
|
-
}
|
|
22615
|
-
const ENGINE_ECS_SECRETS_CHANNEL = {
|
|
22616
|
-
what: "ECS task secrets are fetched with the role and injected as plaintext into the container's environment",
|
|
22617
|
-
flagOnly: false
|
|
22618
|
-
};
|
|
22619
|
-
const ENGINE_DYNAMIC_REFERENCE_CHANNEL = {
|
|
22620
|
-
what: "CloudFormation dynamic references ({{resolve:...}}) are fetched with the role and injected as plaintext into the container's environment",
|
|
22621
|
-
flagOnly: false
|
|
22622
|
-
};
|
|
22623
|
-
const ENGINE_ASSUME_ROLE_CHANNEL = {
|
|
22624
|
-
what: "the role --assume-role / --assume-task-role assumes for the container is assumed BY the --role-arn role, so the container can receive a role you could not assume yourself",
|
|
22625
|
-
flagOnly: false
|
|
22626
|
-
};
|
|
22627
|
-
function engineFromCfnStackChannel(alsoReads) {
|
|
22628
|
-
return {
|
|
22629
|
-
what: "--from-cfn-stack reads the deployed stack, including SecureString parameters decrypted into the container's environment" + (alsoReads ? `, and ${alsoReads}` : ""),
|
|
22630
|
-
flagOnly: false
|
|
22631
|
-
};
|
|
22632
|
-
}
|
|
22633
|
-
function engineFromStateChannel(reads) {
|
|
22634
|
-
return {
|
|
22635
|
-
what: `--from-state makes the engine read ${reads}`,
|
|
22636
|
-
flagOnly: false
|
|
22637
|
-
};
|
|
22638
|
-
}
|
|
22639
|
-
const ENGINE_ACCOUNT_ID_CHANNEL = {
|
|
22640
|
-
what: "${AWS::AccountId} resolves to the role's account in the container's environment, secret references and image URIs",
|
|
22641
|
-
flagOnly: false
|
|
22642
|
-
};
|
|
22643
|
-
function warnEngineRoleExposure(cmd, commandName, channels, fromCfnStackChannel = engineFromCfnStackChannel(), fromStateChannel) {
|
|
22644
|
-
cmd.hook("preAction", (_thisCommand, actionCommand) => {
|
|
22645
|
-
const options = actionCommand.optsWithGlobals();
|
|
22646
|
-
const message = engineRoleExposureWarning(commandName, channels, fromCfnStackChannel, {
|
|
22647
|
-
roleArn: options.roleArn || process.env["CDKD_ROLE_ARN"],
|
|
22648
|
-
profileFlag: options.profile,
|
|
22649
|
-
envProfile: process.env["AWS_PROFILE"],
|
|
22650
|
-
fromCfnStack: isCfnFlagPresent(options),
|
|
22651
|
-
assumesForWorkload: isAssumeRequested(options.assumeRole) || isAssumeRequested(options.assumeTaskRole),
|
|
22652
|
-
fromState: options.fromState === true
|
|
22653
|
-
}, fromStateChannel);
|
|
22654
|
-
if (message !== void 0) getLogger().warn(message);
|
|
22655
|
-
});
|
|
22656
|
-
return cmd;
|
|
22657
|
-
}
|
|
22658
|
-
function isAssumeRequested(value) {
|
|
22659
|
-
if (typeof value === "string") return value !== "";
|
|
22660
|
-
if (value !== null && typeof value === "object") return Object.keys(value).length > 0;
|
|
22661
|
-
return value === true;
|
|
22662
|
-
}
|
|
22663
|
-
function engineRoleExposureWarning(commandName, channels, fromCfnStackChannel, input, fromStateChannel) {
|
|
22664
|
-
if (!input.roleArn || !isIamRoleArn(input.roleArn) || input.profileFlag) return void 0;
|
|
22665
|
-
const all = [
|
|
22666
|
-
...channels,
|
|
22667
|
-
...input.assumesForWorkload ? [ENGINE_ASSUME_ROLE_CHANNEL] : [],
|
|
22668
|
-
...input.fromCfnStack ? [fromCfnStackChannel] : [],
|
|
22669
|
-
...input.fromState && fromStateChannel ? [fromStateChannel] : []
|
|
22670
|
-
];
|
|
22671
|
-
const envProfileSet = !!input.envProfile;
|
|
22672
|
-
const open = envProfileSet ? all.filter((c) => c.flagOnly) : all;
|
|
22673
|
-
if (open.length === 0) return void 0;
|
|
22674
|
-
return `cdkd local ${commandName}: --role-arn ${envProfileSet ? "is set, and the exported AWS_PROFILE does not cover what follows (only the --profile flag does)" : "is set and no profile is selected"}, so the local emulation engine resolves these AS THE ROLE and hands them to your local code: ${open.map((c) => c.what).join("; ")}. Pass --profile <name> with your own profile to keep them on your identity, or do not pass a role whose permissions you would not give the code in the container.`;
|
|
22512
|
+
return createLocalStateProvider(options, cdkdStackName, synthRegion, cdkdExtraStateProviders);
|
|
22675
22513
|
}
|
|
22676
22514
|
|
|
22677
22515
|
//#endregion
|
|
@@ -24153,7 +23991,7 @@ async function assumeRoleForEcr(roleArn, callerRegion, credentialConfig, logger)
|
|
|
24153
23991
|
assertSendableRoleArn(roleArn, (message) => new LocalInvokeBuildError$1(message));
|
|
24154
23992
|
logger.debug(`Assuming role ${displayIdent(roleArn, { maxCodePoints: 613 })} for ECR pull...`);
|
|
24155
23993
|
const sts = new STSClient({
|
|
24156
|
-
...clientDefaultsFor(credentialConfig),
|
|
23994
|
+
...clientDefaultsFor(credentialConfig, true),
|
|
24157
23995
|
...callerRegion && { region: callerRegion }
|
|
24158
23996
|
});
|
|
24159
23997
|
try {
|
|
@@ -25103,7 +24941,7 @@ async function localStartApiCommand(target, options) {
|
|
|
25103
24941
|
}
|
|
25104
24942
|
warnIfDeprecatedRegion(options);
|
|
25105
24943
|
if (options.layerRoleArn !== void 0) explicitRoleArnOrThrow("--layer-role-arn", options.layerRoleArn);
|
|
25106
|
-
await
|
|
24944
|
+
await applyRoleArnForLocal({
|
|
25107
24945
|
roleArn: options.roleArn,
|
|
25108
24946
|
region: options.region
|
|
25109
24947
|
});
|
|
@@ -25184,7 +25022,7 @@ async function localStartApiCommand(target, options) {
|
|
|
25184
25022
|
const direct = buildCorsConfigByApiId(stack.template);
|
|
25185
25023
|
for (const [k, v] of direct) corsConfigByApiId.set(k, v);
|
|
25186
25024
|
}
|
|
25187
|
-
const stateByStack = options.fromState || isCfnFlagPresent
|
|
25025
|
+
const stateByStack = options.fromState || isCfnFlagPresent(options) ? await loadStateForRoutedStacks(targetStacks, routes, routesWithAuth, options) : /* @__PURE__ */ new Map();
|
|
25188
25026
|
const profileCredentials = options.profile ? await resolveProfileCredentials(options.profile) : void 0;
|
|
25189
25027
|
if (options.profile && profileCredentials && !profileCredsFile) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials, {
|
|
25190
25028
|
onDirCreated: (hostPath) => {
|
|
@@ -27256,7 +27094,7 @@ async function localRunTaskCommand(target, options) {
|
|
|
27256
27094
|
try {
|
|
27257
27095
|
if (typeof options.assumeTaskRole === "string") assertFlagRoleArn("--assume-task-role", options.assumeTaskRole);
|
|
27258
27096
|
if (options.ecrRoleArn !== void 0) assertFlagRoleArn("--ecr-role-arn", options.ecrRoleArn);
|
|
27259
|
-
await
|
|
27097
|
+
await applyRoleArnForLocal({
|
|
27260
27098
|
roleArn: options.roleArn,
|
|
27261
27099
|
region: options.region
|
|
27262
27100
|
});
|
|
@@ -27635,11 +27473,6 @@ function createLocalStartServiceCommand() {
|
|
|
27635
27473
|
await runEcsServiceEmulator(targets, options, serviceStrategy(), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
27636
27474
|
}));
|
|
27637
27475
|
addStartServiceSpecificOptions(cmd);
|
|
27638
|
-
warnEngineRoleExposure(cmd, "start-service", [
|
|
27639
|
-
ENGINE_ECS_SECRETS_CHANNEL,
|
|
27640
|
-
ENGINE_ACCOUNT_ID_CHANNEL,
|
|
27641
|
-
ENGINE_DYNAMIC_REFERENCE_CHANNEL
|
|
27642
|
-
]);
|
|
27643
27476
|
return adoptDeprecatedRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
27644
27477
|
}
|
|
27645
27478
|
|
|
@@ -27955,7 +27788,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
27955
27788
|
try {
|
|
27956
27789
|
if (typeof options.assumeRole === "string") explicitRoleArnOrThrow("--assume-role", options.assumeRole, (message) => new CdkdError(message, "LOCAL_INVOKE_AGENTCORE_ASSUME_ROLE_INVALID"));
|
|
27957
27790
|
if (options.ecrRoleArn !== void 0) assertFlagRoleArn("--ecr-role-arn", options.ecrRoleArn, (message) => new CdkdError(message, "LOCAL_INVOKE_AGENTCORE_ECR_ROLE_ARN_INVALID"));
|
|
27958
|
-
await
|
|
27791
|
+
await applyRoleArnForLocal({
|
|
27959
27792
|
roleArn: options.roleArn,
|
|
27960
27793
|
region: options.region
|
|
27961
27794
|
});
|
|
@@ -28844,11 +28677,6 @@ function createLocalStartAgentCoreCommand$1() {
|
|
|
28844
28677
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
28845
28678
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
28846
28679
|
cmd.addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) unchanged, and suppress the \"re-run with --assume-role\" hint that omitting the flag prints when deployed state is loaded."));
|
|
28847
|
-
warnEngineRoleExposure(cmd, "start-agentcore", [
|
|
28848
|
-
engineCredentialTripleChannel("the agent container"),
|
|
28849
|
-
ENGINE_ACCOUNT_ID_CHANNEL,
|
|
28850
|
-
ENGINE_DYNAMIC_REFERENCE_CHANNEL
|
|
28851
|
-
]);
|
|
28852
28680
|
return adoptDeprecatedRegionFlag(cmd);
|
|
28853
28681
|
}
|
|
28854
28682
|
|
|
@@ -28859,18 +28687,11 @@ function createLocalStartAlbCommand() {
|
|
|
28859
28687
|
await runEcsServiceEmulator(targets, options, albStrategy(options), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
28860
28688
|
}));
|
|
28861
28689
|
addAlbSpecificOptions(cmd);
|
|
28862
|
-
warnEngineRoleExposure(cmd, "start-alb", [
|
|
28863
|
-
engineCredentialTripleChannel("the ALB's Lambda target-group containers"),
|
|
28864
|
-
ENGINE_ECS_SECRETS_CHANNEL,
|
|
28865
|
-
ENGINE_ACCOUNT_ID_CHANNEL,
|
|
28866
|
-
ENGINE_DYNAMIC_REFERENCE_CHANNEL
|
|
28867
|
-
]);
|
|
28868
28690
|
return adoptDeprecatedRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
28869
28691
|
}
|
|
28870
28692
|
|
|
28871
28693
|
//#endregion
|
|
28872
28694
|
//#region src/cli/commands/local-start-cloudfront.ts
|
|
28873
|
-
const STATE_SOURCE_ENGINE_READS = "a deployed S3 origin's objects and distribution config and the KeyValueStore entries, and the ${AWS::AccountId} in the Function URL / Lambda@Edge environment resolves to the role's account";
|
|
28874
28695
|
function createLocalStartCloudFrontCommand$1() {
|
|
28875
28696
|
const cmd = createLocalStartCloudFrontCommand({
|
|
28876
28697
|
embedConfig: getEmbedConfig(),
|
|
@@ -28881,7 +28702,6 @@ function createLocalStartCloudFrontCommand$1() {
|
|
|
28881
28702
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
28882
28703
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
28883
28704
|
cmd.addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) unchanged, and suppress the \"re-run with --assume-role\" hint that omitting the flag prints when deployed state is loaded."));
|
|
28884
|
-
warnEngineRoleExposure(cmd, "start-cloudfront", [engineCredentialTripleChannel("the Function URL and Lambda@Edge containers"), ENGINE_DYNAMIC_REFERENCE_CHANNEL], engineFromCfnStackChannel(STATE_SOURCE_ENGINE_READS), engineFromStateChannel(STATE_SOURCE_ENGINE_READS));
|
|
28885
28705
|
return adoptDeprecatedRegionFlag(cmd);
|
|
28886
28706
|
}
|
|
28887
28707
|
|
|
@@ -28917,7 +28737,8 @@ const CDKD_EMBED_CONFIG = {
|
|
|
28917
28737
|
error: (message, ...args) => forwardToCdkdLogger("error", message, args),
|
|
28918
28738
|
setLevel: (level) => getLogger().setLevel(level),
|
|
28919
28739
|
getLevel: () => getLogger().getLevel()
|
|
28920
|
-
}
|
|
28740
|
+
},
|
|
28741
|
+
workloadIdentity: "caller"
|
|
28921
28742
|
};
|
|
28922
28743
|
async function localInvokeCommand(target, options) {
|
|
28923
28744
|
const logger = getLogger();
|
|
@@ -28983,7 +28804,7 @@ async function localInvokeCommand(target, options) {
|
|
|
28983
28804
|
if (typeof options.assumeRole === "string") explicitRoleArnOrThrow("--assume-role", options.assumeRole);
|
|
28984
28805
|
if (options.layerRoleArn !== void 0) explicitRoleArnOrThrow("--layer-role-arn", options.layerRoleArn);
|
|
28985
28806
|
if (options.ecrRoleArn !== void 0) assertFlagRoleArn("--ecr-role-arn", options.ecrRoleArn);
|
|
28986
|
-
await
|
|
28807
|
+
await applyRoleArnForLocal({
|
|
28987
28808
|
roleArn: options.roleArn,
|
|
28988
28809
|
region: options.region
|
|
28989
28810
|
});
|
|
@@ -29630,4 +29451,4 @@ function collectVerbFlags(program) {
|
|
|
29630
29451
|
|
|
29631
29452
|
//#endregion
|
|
29632
29453
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, resolvedResourceTimeoutMs as s, canonicalizeIpv4Cidr as t };
|
|
29633
|
-
//# sourceMappingURL=program-
|
|
29454
|
+
//# sourceMappingURL=program-CYtSW-WU.js.map
|