@cdkd/cli 0.353.3 → 0.354.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-C5srQQ9o.js → ambient-client-defaults-BDRSTcYT.js} +3 -3
- package/dist/{ambient-client-defaults-C5srQQ9o.js.map → ambient-client-defaults-BDRSTcYT.js.map} +1 -1
- package/dist/{asg-provider-tB1k8Uwh.js → asg-provider-DhlT9esh.js} +427 -13
- package/dist/asg-provider-DhlT9esh.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-D4u5m0jm.js → custom-resource-runtime-Awo4Qqci.js} +6 -6
- package/dist/{custom-resource-runtime-D4u5m0jm.js.map → custom-resource-runtime-Awo4Qqci.js.map} +1 -1
- package/dist/{db-associated-roles-BnaNi5RN.js → db-associated-roles-vY4j5XbM.js} +2 -2
- package/dist/{db-associated-roles-BnaNi5RN.js.map → db-associated-roles-vY4j5XbM.js.map} +1 -1
- package/dist/{delete-started-C2CSl-I6.js → delete-started-Dzdlx4Og.js} +4 -4
- package/dist/{delete-started-C2CSl-I6.js.map → delete-started-Dzdlx4Og.js.map} +1 -1
- package/dist/{deploy-engine-BVpckkRS.js → deploy-engine-Th5M81Fb.js} +977 -208
- package/dist/deploy-engine-Th5M81Fb.js.map +1 -0
- package/dist/{diff-calculator-BCU775Mq.js → diff-calculator-BHt-qLqK.js} +41 -17
- package/dist/diff-calculator-BHt-qLqK.js.map +1 -0
- package/dist/{update-policy-CwlmV_Gu.js → ec2-termination-protection-BhT7P1Qr.js} +157 -15
- package/dist/ec2-termination-protection-BhT7P1Qr.js.map +1 -0
- package/dist/{ecr-uri-XUGi32Yg.js → ecr-uri-B-QP8AHe.js} +2 -2
- package/dist/{ecr-uri-XUGi32Yg.js.map → ecr-uri-B-QP8AHe.js.map} +1 -1
- package/dist/{expected-bucket-owner-C4dNW0qP.js → expected-bucket-owner-TY_MPzst.js} +2 -2
- package/dist/{expected-bucket-owner-C4dNW0qP.js.map → expected-bucket-owner-TY_MPzst.js.map} +1 -1
- package/dist/{iam-role-provider-DJEUwSEl.js → iam-role-provider-KBcDwrRv.js} +8 -8
- package/dist/{iam-role-provider-DJEUwSEl.js.map → iam-role-provider-KBcDwrRv.js.map} +1 -1
- package/dist/{image-plan-DzYuesLu.js → image-plan-BEsB3Dmo.js} +15 -18
- package/dist/image-plan-BEsB3Dmo.js.map +1 -0
- package/dist/index.d.ts +26 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DPzmJjGz.js → logger-B2SyJOAf.js} +2 -2
- package/dist/{logger-DPzmJjGz.js.map → logger-B2SyJOAf.js.map} +1 -1
- package/dist/{neptune-provider-BOGkXyqL.js → neptune-provider-BR3kEieW.js} +7 -7
- package/dist/{neptune-provider-BOGkXyqL.js.map → neptune-provider-BR3kEieW.js.map} +1 -1
- package/dist/{program-BiexuIhK.js → program-QwXOnrpm.js} +305 -84
- package/dist/program-QwXOnrpm.js.map +1 -0
- package/dist/{provider-classes-DQeVpjrY.js → provider-classes-DMsbNzf6.js} +250 -66
- package/dist/provider-classes-DMsbNzf6.js.map +1 -0
- package/dist/{rds-provider-DAsMfyF7.js → rds-provider-D1eagWNh.js} +10 -10
- package/dist/{rds-provider-DAsMfyF7.js.map → rds-provider-D1eagWNh.js.map} +1 -1
- package/dist/{read-replica-CsjvBe-D.js → read-replica-BJFu-OeG.js} +3 -3
- package/dist/{read-replica-CsjvBe-D.js.map → read-replica-BJFu-OeG.js.map} +1 -1
- package/dist/{replacement-rules-p8Qw0DJO.js → replacement-rules-DhOfKveI.js} +3 -3
- package/dist/{replacement-rules-p8Qw0DJO.js.map → replacement-rules-DhOfKveI.js.map} +1 -1
- package/dist/{resource-deadline-CM7iQyoh.js → resource-deadline-D_epAMej.js} +4 -4
- package/dist/{resource-deadline-CM7iQyoh.js.map → resource-deadline-D_epAMej.js.map} +1 -1
- package/dist/{restore-source-guard-DISHGYsK.js → restore-source-guard-B_-RdrjK.js} +4 -4
- package/dist/{restore-source-guard-DISHGYsK.js.map → restore-source-guard-B_-RdrjK.js.map} +1 -1
- package/dist/{run-cli-BVB8mILG.js → run-cli-ozO7hy96.js} +2 -2
- package/dist/{run-cli-BVB8mILG.js.map → run-cli-ozO7hy96.js.map} +1 -1
- package/dist/{version-Be5vs808.js → version-snoNU0xA.js} +2 -2
- package/dist/{version-Be5vs808.js.map → version-snoNU0xA.js.map} +1 -1
- package/package.json +2 -1
- package/dist/asg-provider-tB1k8Uwh.js.map +0 -1
- package/dist/deploy-engine-BVpckkRS.js.map +0 -1
- package/dist/diff-calculator-BCU775Mq.js.map +0 -1
- package/dist/image-plan-DzYuesLu.js.map +0 -1
- package/dist/program-BiexuIhK.js.map +0 -1
- package/dist/provider-classes-DQeVpjrY.js.map +0 -1
- package/dist/update-policy-CwlmV_Gu.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-KBcDwrRv.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-B2SyJOAf.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as planVectorIndexUpdates, $
|
|
10
|
-
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-
|
|
11
|
-
import {
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-BDRSTcYT.js";
|
|
5
|
+
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-D_epAMej.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-snoNU0xA.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Dzdlx4Og.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-QwXOnrpm.js";
|
|
9
|
+
import { $ as planVectorIndexUpdates, $a as isSettledInstanceState, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Co as s3BucketArn, Ct as TABLE_INDEX_NOUN, Da as getCurrentResourceSecrets, Do as s3BucketWebsiteUrl, Dt as waitForIndexesSettled, Eo as s3BucketRegionalDomainName, Es as passedParameterClassesOf, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressSkip, G as streamMemberRefusals, Ga as withIndeterminateGuard, Gc as findSdkUnwiredProperties, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ic as accountArgs, J as isTtlAlreadyDisabled, Jc as withoutSdkUnwiredProperties, Ji as secretNamedAttributeNamesOf, K as streamPolicyMatchesDeclared, Kr as getCurrentProducerRegions, Kt as lookupEachName, L as STREAM_POLICY_KEY, La as waitForLambdaFunctionActive, Lc as withheldAccountClause, Lo as parseWebACLArn, Mr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Nr as isRedactedRecordedValue, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as redactedDeleteAddressFields, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Sl as renderNestedTemplateTreeDefect, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketDualStackDomainName, Tt as maskedLogger, U as streamDeclaresPolicy, V as planStreamMemberOps, Vl as rewriteTemplateAssetReferences, Vo as outputReferenceProvenanceOf, W as streamDeclaresTags, Wa as deleteSkipReason, Wt as chunks, X as planTimeToLive, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Yn as withoutSiblingOwnedSgRules, Z as readTtlSpec, Zn as sgProtocolKey, _l as stringifyValue, _r as acquireIdempotencyToken, _s as toFiniteNumber, _t as compensateRemovedDeletionProtection, at as contributorInsightsRefusals, bi as replacedDeleteFailureVerdict, bl as isAbsoluteAssetPath, bt as resolveDynamoDbDeleteBudgetMs, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectPrincipalsAttachingPolicy, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, eo as APPSYNC_APIKEY_ARN_RESOURCE_PATH, et as readbackVectorIndexes, ft as stripIndexContributorInsights, gi as awaitInFlightSibling, gs as toCfnInteger, gt as beginDeleteWait, gu as displayAssemblyPath, hr as reserveStackCreateToken, hs as isWarmThroughputDecrease, ht as DYNAMODB_DELETE_POLL_COST_MS, hu as describeFileReadFailure, it as CONTRIBUTOR_INSIGHTS_KEY, jc as refuseMalformedResourcesForDestroy, jt as isTruthyCfnBoolean, kl as decodeListingKey, kt as S3_AUTO_DELETE_OBJECTS_TAG, la as collectGroupsAddedBySiblings, lt as readContributorInsightsSpec, ma as withoutSiblingOwned, ms as coerceWarmThroughput$1, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pa as withoutSiblingAttachedArns, pr as earliestDefined, ps as WARM_THROUGHPUT_MEMBERS, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qn as siblingOwnedSgRuleIdentities, qo as getAccountInfo, qt as withApiLimit, rn as revertNestedChildFromJournal, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as maskedSecretSegment, tt as vectorIndexesForCreate, ua as collectManagedPolicyArnsAttachedBySiblings, ut as reverseMapIndexContributorInsights, vi as getStackRecords, vt as deleteBudgetKey, vu as renderAssemblyPathEscape, wo as s3BucketDomainName, wt as deleteTableWithIndexBusyRetry, xc as refuseMalformedNestedChildOutputs, xl as listNestedTemplateRows, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, yl as findNestedTemplateTreeDefect, yt as resolveDynamoDbDeleteBudgetClock, yu as resolveAssemblyPath, z as declaredStreamPolicyMember, za as waitForGoneAfterDelete } from "./deploy-engine-Th5M81Fb.js";
|
|
10
|
+
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-B_-RdrjK.js";
|
|
11
|
+
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-BhT7P1Qr.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-
|
|
15
|
-
import { RDSProvider } from "./rds-provider-
|
|
16
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
17
|
-
import { ASGProvider } from "./asg-provider-
|
|
14
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-DhOfKveI.js";
|
|
15
|
+
import { RDSProvider } from "./rds-provider-D1eagWNh.js";
|
|
16
|
+
import { NeptuneProvider } from "./neptune-provider-BR3kEieW.js";
|
|
17
|
+
import { ASGProvider } from "./asg-provider-DhlT9esh.js";
|
|
18
18
|
import { createHash, randomUUID } from "node:crypto";
|
|
19
19
|
import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
|
|
20
20
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -18563,12 +18563,12 @@ var EventBridgeBusProvider = class {
|
|
|
18563
18563
|
}
|
|
18564
18564
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
18565
18565
|
this.logger.debug(`Deleting EventBus ${logicalId}: ${physicalId}`);
|
|
18566
|
-
|
|
18566
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
18567
18567
|
try {
|
|
18568
|
-
|
|
18569
|
-
await this.eventBridgeClient.send(new DeleteEventBusCommand({ Name: physicalId }));
|
|
18568
|
+
await this.deleteBusOnceManagedRulesClear(logicalId, physicalId, resourceType, mask);
|
|
18570
18569
|
this.logger.debug(`Successfully deleted EventBus ${logicalId}`);
|
|
18571
18570
|
} catch (error) {
|
|
18571
|
+
if (error instanceof ProvisioningError || isInterruptedWaitError(error)) throw error;
|
|
18572
18572
|
if (error instanceof ResourceNotFoundException$2) {
|
|
18573
18573
|
const clientRegion = await this.eventBridgeClient.config.region();
|
|
18574
18574
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
@@ -18582,48 +18582,69 @@ var EventBridgeBusProvider = class {
|
|
|
18582
18582
|
return;
|
|
18583
18583
|
}
|
|
18584
18584
|
const cause = error instanceof Error ? error : void 0;
|
|
18585
|
-
const failure = this.wrapMaskedError(
|
|
18586
|
-
|
|
18587
|
-
throw stripped ? markDeleteStarted(marked) : marked;
|
|
18585
|
+
const failure = this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to delete EventBus ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18586
|
+
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(failure) : failure;
|
|
18588
18587
|
}
|
|
18589
18588
|
}
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
}
|
|
18595
|
-
async
|
|
18596
|
-
|
|
18589
|
+
managedRuleWait = {
|
|
18590
|
+
pollIntervalMs: 5e3,
|
|
18591
|
+
timeoutMs: 12e4,
|
|
18592
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
18593
|
+
};
|
|
18594
|
+
async deleteBusOnceManagedRulesClear(logicalId, busName, resourceType, mask) {
|
|
18595
|
+
const { pollIntervalMs, timeoutMs, sleep } = this.managedRuleWait;
|
|
18596
|
+
const deadline = Date.now() + timeoutMs;
|
|
18597
|
+
const watch = startInterruptWatch(`EventBus ${logicalId} managed-rule wait`);
|
|
18598
|
+
let retriedEmptyListing = false;
|
|
18597
18599
|
try {
|
|
18598
|
-
|
|
18599
|
-
if (rules.length === 0) return false;
|
|
18600
|
-
found = true;
|
|
18601
|
-
this.logger.debug(`Cleaning up ${rules.length} rule(s) on bus ${busName}`);
|
|
18602
|
-
for (const rule of rules) {
|
|
18603
|
-
if (!rule.Name) continue;
|
|
18600
|
+
for (;;) {
|
|
18604
18601
|
try {
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18602
|
+
await this.eventBridgeClient.send(new DeleteEventBusCommand({ Name: busName }));
|
|
18603
|
+
return;
|
|
18604
|
+
} catch (error) {
|
|
18605
|
+
if (!isBusHasRulesRefusal(error)) throw error;
|
|
18606
|
+
}
|
|
18607
|
+
const rules = await this.listRulesOnBus(busName);
|
|
18608
|
+
const unmanaged = rules.filter((rule) => !rule.managedBy);
|
|
18609
|
+
if (unmanaged.length > 0) throw this.busHasRulesError(logicalId, busName, resourceType, mask, `${unmanaged.length} rule(s) this stack does not delete: ${unmanaged.map((rule) => rule.name).join(", ")}. Delete or move them, then re-run`);
|
|
18610
|
+
if (Date.now() >= deadline) {
|
|
18611
|
+
const seconds = Math.round(timeoutMs / 1e3);
|
|
18612
|
+
throw this.busHasRulesError(logicalId, busName, resourceType, mask, rules.length === 0 ? `rules ListRules does not report, ${seconds}s after the first refusal. Check the bus for rules, then re-run` : `rule(s) an AWS service manages, still there ${seconds}s later: ${rules.map((rule) => `${rule.name} (${rule.managedBy})`).join(", ")}. AWS removes each when the resource that owns it (an archive, a schema discoverer) is deleted; delete that resource if this stack does not own it, then re-run`);
|
|
18613
|
+
}
|
|
18614
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
18615
|
+
if (rules.length === 0 && !retriedEmptyListing) {
|
|
18616
|
+
retriedEmptyListing = true;
|
|
18617
|
+
continue;
|
|
18618
|
+
}
|
|
18619
|
+
await sleep(pollIntervalMs);
|
|
18621
18620
|
}
|
|
18622
|
-
}
|
|
18623
|
-
|
|
18624
|
-
this.logger.debug(`Failed to list rules on bus ${busName}: ${describeAwsFailure(error).detail}`);
|
|
18621
|
+
} finally {
|
|
18622
|
+
watch.dispose();
|
|
18625
18623
|
}
|
|
18626
|
-
|
|
18624
|
+
}
|
|
18625
|
+
async listRulesOnBus(busName) {
|
|
18626
|
+
const rules = [];
|
|
18627
|
+
let nextToken;
|
|
18628
|
+
do {
|
|
18629
|
+
const page = await this.eventBridgeClient.send(new ListRulesCommand({
|
|
18630
|
+
EventBusName: busName,
|
|
18631
|
+
NextToken: nextToken
|
|
18632
|
+
}));
|
|
18633
|
+
for (const rule of page.Rules ?? []) if (rule.Name) rules.push({
|
|
18634
|
+
name: rule.Name,
|
|
18635
|
+
...rule.ManagedBy && { managedBy: rule.ManagedBy }
|
|
18636
|
+
});
|
|
18637
|
+
nextToken = page.NextToken;
|
|
18638
|
+
} while (nextToken);
|
|
18639
|
+
return rules;
|
|
18640
|
+
}
|
|
18641
|
+
busHasRulesError(logicalId, busName, resourceType, mask, remaining) {
|
|
18642
|
+
return markNonRetryable(markNotGone(new ProvisioningError(mask(safeMsg`Failed to delete EventBus ${logicalId}: AWS refuses to delete an event bus that has rules, and ${busName} still has ${remaining}.`), resourceType, logicalId, busName)));
|
|
18643
|
+
}
|
|
18644
|
+
getAttribute(physicalId, _resourceType, attributeName) {
|
|
18645
|
+
if (attributeName === "Arn") return Promise.resolve(void 0);
|
|
18646
|
+
if (attributeName === "Name") return Promise.resolve(physicalId);
|
|
18647
|
+
return Promise.resolve(void 0);
|
|
18627
18648
|
}
|
|
18628
18649
|
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
18629
18650
|
try {
|
|
@@ -18672,6 +18693,9 @@ var EventBridgeBusProvider = class {
|
|
|
18672
18693
|
return null;
|
|
18673
18694
|
}
|
|
18674
18695
|
};
|
|
18696
|
+
function isBusHasRulesRefusal(error) {
|
|
18697
|
+
return error instanceof Error && error.name === "ValidationException" && /has rules/i.test(error.message);
|
|
18698
|
+
}
|
|
18675
18699
|
|
|
18676
18700
|
// src/provisioning/providers/ec2/sg-support.ts
|
|
18677
18701
|
const SG_INGRESS_IP_PROTOCOL_DEFAULT = "-1";
|
|
@@ -30470,6 +30494,86 @@ async function importImpl$27(input) {
|
|
|
30470
30494
|
}
|
|
30471
30495
|
}
|
|
30472
30496
|
|
|
30497
|
+
// src/provisioning/providers/agentcore-runtime/wait.ts
|
|
30498
|
+
const RUNTIME_WAIT_POLL_MS = 5e3;
|
|
30499
|
+
const RUNTIME_WAIT_MAX_POLLS = 360;
|
|
30500
|
+
const IN_FLIGHT = /* @__PURE__ */ new Set(["CREATING", "UPDATING"]);
|
|
30501
|
+
async function waitForRuntimeReady(deps, agentRuntimeId, logicalId, resourceType, operation, mask) {
|
|
30502
|
+
deps.debug(`Waiting for BedrockAgentCore Runtime ${agentRuntimeId} to be READY after ${operation}`);
|
|
30503
|
+
const failure = (text) => new ProvisioningError(`BedrockAgentCore Runtime ${logicalId} (${agentRuntimeId}) ${text}`, resourceType, logicalId, agentRuntimeId);
|
|
30504
|
+
const watch = startInterruptWatch(`BedrockAgentCore Runtime ${logicalId} ${operation} wait`);
|
|
30505
|
+
try {
|
|
30506
|
+
let status;
|
|
30507
|
+
for (let poll = 1; poll <= 360; poll++) {
|
|
30508
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
30509
|
+
let runtime;
|
|
30510
|
+
try {
|
|
30511
|
+
runtime = await deps.client.send(new GetAgentRuntimeCommand({ agentRuntimeId }));
|
|
30512
|
+
} catch (error) {
|
|
30513
|
+
const failed = describeAwsFailure(error);
|
|
30514
|
+
if (isRetryableTransientError(error, error instanceof Error ? error.message : "")) {
|
|
30515
|
+
deps.debug(mask(`Status read of runtime ${agentRuntimeId} failed transiently (${failed.detail}); polling on`));
|
|
30516
|
+
await deps.sleep(RUNTIME_WAIT_POLL_MS);
|
|
30517
|
+
continue;
|
|
30518
|
+
}
|
|
30519
|
+
throw markNonRetryable(new ProvisioningError(`BedrockAgentCore Runtime ${logicalId} (${agentRuntimeId}) could not be read while cdkd waited for READY after ${operation}: ${failed.summary}`, resourceType, logicalId, agentRuntimeId, error instanceof Error ? error : void 0));
|
|
30520
|
+
}
|
|
30521
|
+
status = runtime.status;
|
|
30522
|
+
if (status === "READY") return runtime;
|
|
30523
|
+
if (status === "CREATE_FAILED" || status === "UPDATE_FAILED") {
|
|
30524
|
+
deps.debug(mask(`Runtime ${agentRuntimeId} failureReason: ${runtime.failureReason ?? "(none)"}`));
|
|
30525
|
+
throw markNonRetryable(failure(`entered ${status} during ${operation}; its failureReason (GetAgentRuntime) says why`));
|
|
30526
|
+
}
|
|
30527
|
+
if (status === void 0 || !IN_FLIGHT.has(status)) throw markNonRetryable(failure(`reported status ${status ?? "(none)"} while cdkd waited for READY after ${operation}`));
|
|
30528
|
+
deps.debug(`Runtime ${agentRuntimeId} is ${status} (poll ${poll}/${360})`);
|
|
30529
|
+
await deps.sleep(RUNTIME_WAIT_POLL_MS);
|
|
30530
|
+
}
|
|
30531
|
+
throw markNonRetryable(failure(`was still ${status} ${360 * RUNTIME_WAIT_POLL_MS / 1e3}s after the ${operation}; re-run once it is READY, or pass --no-wait to return without waiting`));
|
|
30532
|
+
} finally {
|
|
30533
|
+
watch.dispose();
|
|
30534
|
+
}
|
|
30535
|
+
}
|
|
30536
|
+
async function waitForRuntimeSettledBeforeDelete(deps, agentRuntimeId, logicalId) {
|
|
30537
|
+
const watch = startInterruptWatch(`BedrockAgentCore Runtime ${logicalId} pre-delete wait`);
|
|
30538
|
+
try {
|
|
30539
|
+
for (let poll = 1; poll <= 360; poll++) {
|
|
30540
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
30541
|
+
let status;
|
|
30542
|
+
try {
|
|
30543
|
+
status = (await deps.client.send(new GetAgentRuntimeCommand({ agentRuntimeId }))).status;
|
|
30544
|
+
} catch (error) {
|
|
30545
|
+
deps.debug(`Pre-delete read of runtime ${agentRuntimeId} failed (${describeAwsFailure(error).summary}); deleting without waiting`);
|
|
30546
|
+
return;
|
|
30547
|
+
}
|
|
30548
|
+
if (status === void 0 || !IN_FLIGHT.has(status)) return;
|
|
30549
|
+
deps.debug(`Runtime ${agentRuntimeId} is ${status}; waiting before the delete (poll ${poll}/${360})`);
|
|
30550
|
+
await deps.sleep(RUNTIME_WAIT_POLL_MS);
|
|
30551
|
+
}
|
|
30552
|
+
deps.debug(`Runtime ${agentRuntimeId} is still in flight; deleting anyway`);
|
|
30553
|
+
} finally {
|
|
30554
|
+
watch.dispose();
|
|
30555
|
+
}
|
|
30556
|
+
}
|
|
30557
|
+
async function retireFailedRuntimeCreate(deps, agentRuntimeId, region, mask) {
|
|
30558
|
+
try {
|
|
30559
|
+
await deps.client.send(new DeleteAgentRuntimeCommand({ agentRuntimeId }));
|
|
30560
|
+
deps.debug(`Deleted runtime ${agentRuntimeId} left by the failed create`);
|
|
30561
|
+
return "";
|
|
30562
|
+
} catch (cleanupError) {
|
|
30563
|
+
if (cleanupError instanceof ResourceNotFoundException$6) return "";
|
|
30564
|
+
const failed = describeAwsFailure(cleanupError);
|
|
30565
|
+
deps.debug(mask(`Delete of runtime ${agentRuntimeId} after the failed create failed: ${failed.detail}`));
|
|
30566
|
+
return ` The runtime ${agentRuntimeId} it created could not be deleted (${failed.summary}); delete it with: ${deleteRuntimeCommand(agentRuntimeId, region, mask)}`;
|
|
30567
|
+
}
|
|
30568
|
+
}
|
|
30569
|
+
function keptIdempotentRuntimeNote(agentRuntimeId, region, mask) {
|
|
30570
|
+
return ` The template declares a ClientToken, so AWS may have returned an existing runtime for it: cdkd left runtime ${agentRuntimeId} in place. If this deploy created it, delete it with: ${deleteRuntimeCommand(agentRuntimeId, region, mask)}`;
|
|
30571
|
+
}
|
|
30572
|
+
function deleteRuntimeCommand(agentRuntimeId, region, mask) {
|
|
30573
|
+
const aws = pasteableAwsCommand(mask);
|
|
30574
|
+
return aws`aws bedrock-agentcore-control delete-agent-runtime --agent-runtime-id ${agentRuntimeId}${region ? aws` --region ${region}` : aws``}`.render();
|
|
30575
|
+
}
|
|
30576
|
+
|
|
30473
30577
|
// src/provisioning/providers/agentcore-runtime-provider.ts
|
|
30474
30578
|
const RUNTIME_TAGS_WHAT = "a map of tag keys to scalar values or a list of tags with a non-empty string Key and a scalar Value";
|
|
30475
30579
|
function desiredRuntimeTags(raw, resourceType, logicalId, physicalId) {
|
|
@@ -30503,6 +30607,20 @@ var AgentCoreRuntimeProvider = class {
|
|
|
30503
30607
|
client;
|
|
30504
30608
|
logger = getLogger().child("AgentCoreRuntimeProvider");
|
|
30505
30609
|
sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
30610
|
+
waitDeps() {
|
|
30611
|
+
return {
|
|
30612
|
+
client: this.client,
|
|
30613
|
+
sleep: (ms) => this.sleep(ms),
|
|
30614
|
+
debug: (message) => this.logger.debug(message)
|
|
30615
|
+
};
|
|
30616
|
+
}
|
|
30617
|
+
async settledStatus(agentRuntimeId, logicalId, resourceType, operation, responseStatus, mask) {
|
|
30618
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
30619
|
+
this.logger.debug(safeMsg`Skipping the READY wait for BedrockAgentCore Runtime ${logicalId} after ${operation} (CDKD_NO_WAIT=true)`);
|
|
30620
|
+
return responseStatus;
|
|
30621
|
+
}
|
|
30622
|
+
return (await waitForRuntimeReady(this.waitDeps(), agentRuntimeId, logicalId, resourceType, operation, mask)).status;
|
|
30623
|
+
}
|
|
30506
30624
|
async sendCreateTagCall(send) {
|
|
30507
30625
|
for (let attempt = 0;; attempt++) try {
|
|
30508
30626
|
return await send();
|
|
@@ -30575,16 +30693,36 @@ var AgentCoreRuntimeProvider = class {
|
|
|
30575
30693
|
createdRuntimeId = agentRuntimeId;
|
|
30576
30694
|
reportCreatedResource(logicalId, resourceType, agentRuntimeId);
|
|
30577
30695
|
this.logger.debug(`Created BedrockAgentCore Runtime: ${agentRuntimeId} (${agentRuntimeArn})`);
|
|
30696
|
+
const status = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "create", response.status, maskerOrIdentity(context?.maskSecrets));
|
|
30578
30697
|
if (desiredTags.length > 0) await this.ensureCreateTags(agentRuntimeId, agentRuntimeArn, desiredTags);
|
|
30579
30698
|
return {
|
|
30580
30699
|
physicalId: agentRuntimeId,
|
|
30581
|
-
attributes: this.buildAttributes(
|
|
30700
|
+
attributes: this.buildAttributes({
|
|
30701
|
+
...response,
|
|
30702
|
+
status
|
|
30703
|
+
}, agentRuntimeName)
|
|
30582
30704
|
};
|
|
30583
30705
|
} catch (error) {
|
|
30584
30706
|
if (createdRuntimeId !== void 0) markAuxiliaryFailure(error, logicalId);
|
|
30707
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
30708
|
+
let survivor;
|
|
30709
|
+
if (createdRuntimeId !== void 0 && !isInterruptedWaitError(error)) {
|
|
30710
|
+
const region = await this.client.config.region().catch(() => void 0);
|
|
30711
|
+
survivor = properties["ClientToken"] !== void 0 ? keptIdempotentRuntimeNote(createdRuntimeId, region, mask) : await retireFailedRuntimeCreate(this.waitDeps(), createdRuntimeId, region, mask);
|
|
30712
|
+
}
|
|
30585
30713
|
const cause = error instanceof Error ? error : void 0;
|
|
30586
|
-
|
|
30587
|
-
if (
|
|
30714
|
+
let thrown;
|
|
30715
|
+
if (error instanceof CdkdError) thrown = survivor ? new ProvisioningError(`${error.message}${survivor}`, resourceType, logicalId, void 0, error) : error;
|
|
30716
|
+
else thrown = this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create BedrockAgentCore Runtime ${logicalId}: ${text}${survivor ?? ""}`, resourceType, logicalId, void 0, cause));
|
|
30717
|
+
if (createdRuntimeId !== void 0) {
|
|
30718
|
+
if (survivor === "") {
|
|
30719
|
+
retractCreatedResource(logicalId, resourceType, createdRuntimeId);
|
|
30720
|
+
markNonRetryable(thrown);
|
|
30721
|
+
} else {
|
|
30722
|
+
if (survivor !== void 0) markNonRetryable(thrown);
|
|
30723
|
+
markCreatedBeforeFailure(thrown, logicalId, resourceType, createdRuntimeId);
|
|
30724
|
+
}
|
|
30725
|
+
}
|
|
30588
30726
|
throw thrown;
|
|
30589
30727
|
}
|
|
30590
30728
|
}
|
|
@@ -30616,11 +30754,15 @@ var AgentCoreRuntimeProvider = class {
|
|
|
30616
30754
|
const response = await this.client.send(new UpdateAgentRuntimeCommand(input));
|
|
30617
30755
|
const agentRuntimeId = response.agentRuntimeId;
|
|
30618
30756
|
await this.syncTags(logicalId, resourceType, physicalId, response.agentRuntimeArn, previousProperties["Tags"], properties["Tags"], mask);
|
|
30757
|
+
const status = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "update", response.status, mask);
|
|
30619
30758
|
this.logger.debug(`Successfully updated BedrockAgentCore Runtime ${logicalId}`);
|
|
30620
30759
|
return {
|
|
30621
30760
|
physicalId: agentRuntimeId,
|
|
30622
30761
|
wasReplaced: false,
|
|
30623
|
-
attributes: this.buildAttributes(
|
|
30762
|
+
attributes: this.buildAttributes({
|
|
30763
|
+
...response,
|
|
30764
|
+
status
|
|
30765
|
+
}, properties["AgentRuntimeName"])
|
|
30624
30766
|
};
|
|
30625
30767
|
} catch (error) {
|
|
30626
30768
|
if (error instanceof CdkdError) throw error;
|
|
@@ -30663,6 +30805,7 @@ var AgentCoreRuntimeProvider = class {
|
|
|
30663
30805
|
}
|
|
30664
30806
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
30665
30807
|
this.logger.debug(`Deleting BedrockAgentCore Runtime ${logicalId}: ${physicalId}`);
|
|
30808
|
+
await waitForRuntimeSettledBeforeDelete(this.waitDeps(), physicalId, logicalId);
|
|
30666
30809
|
try {
|
|
30667
30810
|
await this.client.send(new DeleteAgentRuntimeCommand({ agentRuntimeId: physicalId }));
|
|
30668
30811
|
this.logger.debug(`Successfully deleted BedrockAgentCore Runtime ${logicalId}`);
|
|
@@ -42590,7 +42733,7 @@ function update$17(logicalId, physicalId, resourceType, properties, previousProp
|
|
|
42590
42733
|
case "AWS::ServiceDiscovery::PrivateDnsNamespace": return this.updateNamespace(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets);
|
|
42591
42734
|
case "AWS::ServiceDiscovery::HttpNamespace": return this.updateHttpNamespace(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets);
|
|
42592
42735
|
case "AWS::ServiceDiscovery::PublicDnsNamespace": return this.updatePublicDnsNamespace(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets);
|
|
42593
|
-
case "AWS::ServiceDiscovery::Service": return this.updateService(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets, context?.changedProperties);
|
|
42736
|
+
case "AWS::ServiceDiscovery::Service": return this.updateService(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets, context?.changedProperties, context?.unsettledProperties);
|
|
42594
42737
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
42595
42738
|
}
|
|
42596
42739
|
}
|
|
@@ -42933,7 +43076,7 @@ async function createService(logicalId, resourceType, properties, maskSecrets) {
|
|
|
42933
43076
|
throw thrown;
|
|
42934
43077
|
}
|
|
42935
43078
|
}
|
|
42936
|
-
async function updateService(logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties) {
|
|
43079
|
+
async function updateService(logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties, unsettledProperties) {
|
|
42937
43080
|
this.logger.debug(`Updating service discovery service ${logicalId}: ${physicalId}`);
|
|
42938
43081
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
42939
43082
|
const client = this.getClient();
|
|
@@ -42961,13 +43104,24 @@ async function updateService(logicalId, physicalId, resourceType, properties, pr
|
|
|
42961
43104
|
};
|
|
42962
43105
|
}
|
|
42963
43106
|
let knownArn;
|
|
43107
|
+
let serviceChangeRefused = false;
|
|
43108
|
+
let liveAfterRefusal;
|
|
42964
43109
|
try {
|
|
42965
43110
|
if (hasServiceChange) {
|
|
42966
43111
|
if (servicePlan.keepRemovedFromLive) knownArn = await this.keepUndeclaredServiceFields(physicalId, serviceChange);
|
|
42967
|
-
|
|
42968
|
-
|
|
42969
|
-
|
|
42970
|
-
|
|
43112
|
+
let response = {};
|
|
43113
|
+
try {
|
|
43114
|
+
response = await client.send(new UpdateServiceCommand$1({
|
|
43115
|
+
Id: physicalId,
|
|
43116
|
+
Service: serviceChange
|
|
43117
|
+
}));
|
|
43118
|
+
} catch (error) {
|
|
43119
|
+
if (!isApiOnlyNamespaceRefusal(error)) throw error;
|
|
43120
|
+
serviceChangeRefused = true;
|
|
43121
|
+
liveAfterRefusal = await readServiceChangeFields(client, physicalId);
|
|
43122
|
+
this.logger.warn(safeMsg`Cloud Map cannot update service ${logicalId}: it is in an HTTP (API-only) namespace, ` + "where AWS refuses UpdateService. Its Description, DnsConfig and HealthCheckConfig changes were not applied, as in CloudFormation, and the state record keeps only values AWS is seen to hold; replace the service to change them.");
|
|
43123
|
+
}
|
|
43124
|
+
const operationId = response.OperationId;
|
|
42971
43125
|
if (operationId) await this.pollOperation(operationId, logicalId, resourceType, maskSecrets);
|
|
42972
43126
|
}
|
|
42973
43127
|
if (hasAttrUpsert || hasAttrRemove) {
|
|
@@ -43016,6 +43170,11 @@ async function updateService(logicalId, physicalId, resourceType, properties, pr
|
|
|
43016
43170
|
}
|
|
43017
43171
|
this.logger.debug(`Successfully updated service discovery service ${logicalId}`);
|
|
43018
43172
|
await this.warnUnappliedDnsConfigMembers(logicalId, physicalId, properties, unapplied);
|
|
43173
|
+
if (serviceChangeRefused) return {
|
|
43174
|
+
physicalId,
|
|
43175
|
+
wasReplaced: false,
|
|
43176
|
+
effectiveProperties: withServiceChangeKeysKept(properties, previousProperties, unsettledProperties, liveAfterRefusal)
|
|
43177
|
+
};
|
|
43019
43178
|
return {
|
|
43020
43179
|
physicalId,
|
|
43021
43180
|
wasReplaced: false
|
|
@@ -43092,6 +43251,31 @@ async function deleteService(logicalId, physicalId, resourceType, context) {
|
|
|
43092
43251
|
throw markNotGoneOnNotFoundClass(error, this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete service discovery service ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause)));
|
|
43093
43252
|
}
|
|
43094
43253
|
}
|
|
43254
|
+
function isApiOnlyNamespaceRefusal(error) {
|
|
43255
|
+
return error instanceof Error && error.name === "InvalidInput" && /API-only namespace/i.test(error.message);
|
|
43256
|
+
}
|
|
43257
|
+
const SERVICE_CHANGE_KEYS = [
|
|
43258
|
+
"Description",
|
|
43259
|
+
"DnsConfig",
|
|
43260
|
+
"HealthCheckConfig"
|
|
43261
|
+
];
|
|
43262
|
+
function withServiceChangeKeysKept(properties, previousProperties, unsettledProperties, live) {
|
|
43263
|
+
const kept = { ...properties };
|
|
43264
|
+
for (const key of SERVICE_CHANGE_KEYS) if (Object.hasOwn(previousProperties, key) && !unsettledProperties?.has(key) && live !== void 0 && isDeepStrictEqual(live[key], previousProperties[key])) kept[key] = structuredClone(previousProperties[key]);
|
|
43265
|
+
else delete kept[key];
|
|
43266
|
+
return kept;
|
|
43267
|
+
}
|
|
43268
|
+
async function readServiceChangeFields(client, serviceId) {
|
|
43269
|
+
try {
|
|
43270
|
+
const service = (await client.send(new GetServiceCommand({ Id: serviceId }))).Service;
|
|
43271
|
+
if (!service) return void 0;
|
|
43272
|
+
const live = {};
|
|
43273
|
+
for (const key of SERVICE_CHANGE_KEYS) if (service[key] !== void 0) live[key] = service[key];
|
|
43274
|
+
return live;
|
|
43275
|
+
} catch {
|
|
43276
|
+
return;
|
|
43277
|
+
}
|
|
43278
|
+
}
|
|
43095
43279
|
|
|
43096
43280
|
// src/provisioning/providers/servicediscovery/read-state.ts
|
|
43097
43281
|
async function getAttribute$6(physicalId, resourceType, attributeName) {
|
|
@@ -43411,8 +43595,8 @@ var ServiceDiscoveryProvider = class {
|
|
|
43411
43595
|
createService(logicalId, resourceType, properties, maskSecrets) {
|
|
43412
43596
|
return createService.call(this, logicalId, resourceType, properties, maskSecrets);
|
|
43413
43597
|
}
|
|
43414
|
-
updateService(logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties) {
|
|
43415
|
-
return updateService.call(this, logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties);
|
|
43598
|
+
updateService(logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties, unsettledProperties) {
|
|
43599
|
+
return updateService.call(this, logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets, changedProperties, unsettledProperties);
|
|
43416
43600
|
}
|
|
43417
43601
|
planServiceChange(properties, previousProperties, changedProperties) {
|
|
43418
43602
|
return planServiceChange.call(this, properties, previousProperties, changedProperties);
|
|
@@ -63410,4 +63594,4 @@ var ACMCertificateProvider = class {
|
|
|
63410
63594
|
};
|
|
63411
63595
|
|
|
63412
63596
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
63413
|
-
//# sourceMappingURL=provider-classes-
|
|
63597
|
+
//# sourceMappingURL=provider-classes-DMsbNzf6.js.map
|