@cdkd/cli 0.373.4 → 0.373.5
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-DtG0A5aG.js → ambient-client-defaults-D2ziUucm.js} +3 -3
- package/dist/{ambient-client-defaults-DtG0A5aG.js.map → ambient-client-defaults-D2ziUucm.js.map} +1 -1
- package/dist/{asg-provider-BmCui3zx.js → asg-provider-DXerSmY8.js} +8 -8
- package/dist/{asg-provider-BmCui3zx.js.map → asg-provider-DXerSmY8.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-pm6t9jBv.js → custom-resource-runtime-Z0UesGu4.js} +6 -6
- package/dist/{custom-resource-runtime-pm6t9jBv.js.map → custom-resource-runtime-Z0UesGu4.js.map} +1 -1
- package/dist/{db-associated-roles-C607MnbC.js → db-associated-roles-BVE6a5hy.js} +2 -2
- package/dist/{db-associated-roles-C607MnbC.js.map → db-associated-roles-BVE6a5hy.js.map} +1 -1
- package/dist/{delete-started-C_hilY_A.js → delete-started-C-Fplb9I.js} +4 -4
- package/dist/{delete-started-C_hilY_A.js.map → delete-started-C-Fplb9I.js.map} +1 -1
- package/dist/{deploy-engine-BEzzfllj.js → deploy-engine-7gPM_z0r.js} +158 -64
- package/dist/deploy-engine-7gPM_z0r.js.map +1 -0
- package/dist/{ec2-termination-protection-BeYoGs66.js → ec2-termination-protection-C3bNJVAK.js} +3 -3
- package/dist/{ec2-termination-protection-BeYoGs66.js.map → ec2-termination-protection-C3bNJVAK.js.map} +1 -1
- package/dist/{ecr-uri-DcNB-WSe.js → ecr-uri-Dy7a2hEI.js} +2 -2
- package/dist/{ecr-uri-DcNB-WSe.js.map → ecr-uri-Dy7a2hEI.js.map} +1 -1
- package/dist/{emr-cluster-provider-TaiGpHEX.js → emr-cluster-provider-DpzQ2tXe.js} +80 -16
- package/dist/emr-cluster-provider-DpzQ2tXe.js.map +1 -0
- package/dist/{expected-bucket-owner-DASdeJRs.js → expected-bucket-owner-NU2Veqhr.js} +2 -2
- package/dist/{expected-bucket-owner-DASdeJRs.js.map → expected-bucket-owner-NU2Veqhr.js.map} +1 -1
- package/dist/{iam-role-provider-ob3lrDNI.js → iam-role-provider-BK7LqipH.js} +12 -12
- package/dist/{iam-role-provider-ob3lrDNI.js.map → iam-role-provider-BK7LqipH.js.map} +1 -1
- package/dist/{identity-read-denied-CGR1hIyA.js → identity-read-denied-BnZ-p9kt.js} +4 -4
- package/dist/{identity-read-denied-CGR1hIyA.js.map → identity-read-denied-BnZ-p9kt.js.map} +1 -1
- package/dist/{image-plan-BWFMyIRS.js → image-plan-7isjcxk3.js} +10 -10
- package/dist/{image-plan-BWFMyIRS.js.map → image-plan-7isjcxk3.js.map} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-8a4raAC-.js → logger-CC9C99az.js} +2 -2
- package/dist/{logger-8a4raAC-.js.map → logger-CC9C99az.js.map} +1 -1
- package/dist/{neptune-provider-C8fiHA_U.js → neptune-provider-CjjpqzLj.js} +9 -9
- package/dist/{neptune-provider-C8fiHA_U.js.map → neptune-provider-CjjpqzLj.js.map} +1 -1
- package/dist/{program-BCit4cJS.js → program-Ce2id6tt.js} +549 -119
- package/dist/program-Ce2id6tt.js.map +1 -0
- package/dist/{provider-classes-BydpQUFi.js → provider-classes-BesMsi8i.js} +617 -127
- package/dist/provider-classes-BesMsi8i.js.map +1 -0
- package/dist/{rds-provider-Dv0lcb0m.js → rds-provider-j7YCssyt.js} +13 -13
- package/dist/{rds-provider-Dv0lcb0m.js.map → rds-provider-j7YCssyt.js.map} +1 -1
- package/dist/{read-replica-BQ87f_Oe.js → read-replica-B3tUZd7q.js} +3 -3
- package/dist/{read-replica-BQ87f_Oe.js.map → read-replica-B3tUZd7q.js.map} +1 -1
- package/dist/{redacted-delete-address-BrPnoyD9.js → redacted-delete-address-DAZayV8w.js} +4 -4
- package/dist/{redacted-delete-address-BrPnoyD9.js.map → redacted-delete-address-DAZayV8w.js.map} +1 -1
- package/dist/{replacement-rules-HtPsWZIV.js → replacement-rules-bf4K_Yka.js} +144 -53
- package/dist/replacement-rules-bf4K_Yka.js.map +1 -0
- package/dist/{created-resource-sink-DVzNDZ-N.js → resource-deadline-D6p4x_pl.js} +108 -5
- package/dist/resource-deadline-D6p4x_pl.js.map +1 -0
- package/dist/{restore-source-guard-BIaZBr57.js → restore-source-guard-DRxM4nEI.js} +4 -4
- package/dist/{restore-source-guard-BIaZBr57.js.map → restore-source-guard-DRxM4nEI.js.map} +1 -1
- package/dist/{run-cli-OPPhPXxz.js → run-cli-B1pXbQh9.js} +2 -2
- package/dist/{run-cli-OPPhPXxz.js.map → run-cli-B1pXbQh9.js.map} +1 -1
- package/dist/{secret-reference-immutable-OIvSuvpM.js → secret-reference-immutable-CGZO-iyw.js} +6 -6
- package/dist/{secret-reference-immutable-OIvSuvpM.js.map → secret-reference-immutable-CGZO-iyw.js.map} +1 -1
- package/dist/{settle-own-write-members-fY5JNYhA.js → settle-own-write-members-WuNz0klP.js} +10 -10
- package/dist/{settle-own-write-members-fY5JNYhA.js.map → settle-own-write-members-WuNz0klP.js.map} +1 -1
- package/dist/{tag-list-CmpwQ18R.js → tag-list-DiQb3Tm9.js} +4 -4
- package/dist/{tag-list-CmpwQ18R.js.map → tag-list-DiQb3Tm9.js.map} +1 -1
- package/dist/update-removal-CBAhk3SI.js +82 -0
- package/dist/update-removal-CBAhk3SI.js.map +1 -0
- package/dist/{version-DwQIlsjN.js → version-CdLI5JxZ.js} +2 -2
- package/dist/{version-DwQIlsjN.js.map → version-CdLI5JxZ.js.map} +1 -1
- package/package.json +1 -1
- package/dist/created-resource-sink-DVzNDZ-N.js.map +0 -1
- package/dist/deploy-engine-BEzzfllj.js.map +0 -1
- package/dist/emr-cluster-provider-TaiGpHEX.js.map +0 -1
- package/dist/program-BCit4cJS.js.map +0 -1
- package/dist/provider-classes-BydpQUFi.js.map +0 -1
- package/dist/replacement-rules-HtPsWZIV.js.map +0 -1
- package/dist/resource-deadline-nSheE7zd.js +0 -186
- package/dist/resource-deadline-nSheE7zd.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } 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, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } from "./iam-role-provider-BK7LqipH.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, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-CC9C99az.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { $ as AccountIdUnavailableError, B as isTransientServerError, D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markNonRetryable, K as markRedactedCause, L as isExplicitDenyError, M as explicitDenyPolicyKind, O as relayedNameCollision, W as isThrottlingError, _ as ResourceUpdateNotSupportedError, i as credentialFingerprint, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, t as ambientClientDefaults, tt as CdkdError, x as hasReplayMayCollide, z as isRetryableTransientError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ 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 { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-
|
|
8
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
9
|
-
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-
|
|
10
|
-
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-
|
|
11
|
-
import { $ as streamTagsMatchDeclared, $i as getCurrentProducerRegions, $o as WaitConditionSignalStore, $t as contributorInsightsRefusals, Al as maskedSecretSegment, At as tableNameReleaseWait, Bo as memberReadFailure, Bt as waitForKinesisEnableActive, Ci as earliestDefined, Cn as hasCdkAutoDeleteTag, Co as isStoredExpression, Ct as mapSSESpecification, Di as acquireIdempotencyToken, Dl as toFiniteNumber, Dt as sseSpecificationRefusal, El as toCfnInteger, Eo as awaitInFlightSibling, Es as withIndeterminateGuard, Et as readCapacityNumber, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fo as SNS_DEFAULT_POLICY_ID, Ft as recordTagWrite, Fu as refuseMalformedNestedChildOutputs, G as declaredStreamTagsMember, Go as verbatimEchoDriftKeys, Gt as sendTtlWaitingOutRateLimit, Gu as refuseMalformedResourcesForDestroy, H as STREAM_POLICY_KEY, Ha as canonicalizeIpv6Cidr, Hn as childStackTags, Ho as reReadUntilSettled, Ht as isTtlRateLimited, Id as listNestedTemplateRows, Io as declaredMemberDocument, Is as isSettledInstanceState, It as settleWrittenTags, J as reverseMapStreamPolicy, Jd as decodeListingKey, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kn as licensedNameHolder, Ko as attemptedPolicyDocument, Kt as planVectorIndexUpdates, La as SG_RULE_ID_PATTERN, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Lo as declaredPolicyDocument, Ls as connectInstanceIdOf, Ma as replacedDeleteFailureVerdict, Md as stringifyValue, Mo as KMS_DEFAULT_KEY_POLICY_ID, Mt as clearTagWrites, Ol as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Oo as getStackRecords, Ot as sseSpecificationToSend, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Po as OWN_WRITE_REREAD_DELAYS_MS, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qt as completeTableContributorInsightsBaseline, Ra as cfnIngressPortValue, Rf as resolveAssemblyPath, Ro as efsPolicyMatchesDeclared, Rt as takeTagWrite, Sn as S3_AUTO_DELETE_OBJECTS_TAG, So as collectPrincipalsAttachingPolicy, St as isTableName, Ti as reserveStackCreateToken, Tl as isWarmThroughputDecrease, To as withoutSiblingOwned, Ts as deleteSkipReason, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as canonicalizeIpv4Cidr, Uo as settleDeclaredMember, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Va as sgProtocolKey, Vl as passedParameterClassesOf, Vn as childRowTags, Vo as policyDocumentMatchesDeclared, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wo as warnUnsettledMember, Wt as readTtlSpec, X as streamDeclaresTags, Xt as vectorIndexesShapeDetail, Xu as accountArgs, Y as streamDeclaresPolicy, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zt as CONTRIBUTOR_INSIGHTS_KEY, Zu as withheldAccountClause, _l as isLegacyHandleId, _n as deleteTableWithIndexBusyRetry, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, ac as s3BucketArn, ad as findSdkUnwiredProperties, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bn as waitForIndexesSettled, bo as collectGroupsAddedBySiblings, bs as waitForGoneAfterDelete, bt as hasUsableDeclaredCapacity, cc as s3BucketRegionalDomainName, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, dr as withNestedStackContext, dt as desiredBagIsInformative, el as getCurrentResourceSecrets, en as indexDeclaresContributorInsights, es as classifyHandleUrl, et as canonicalizeStaleIndexDescription, fd as normalizeRecordName, fn as resolveDynamoDbDeleteBudgetClock, ft as isRefusedWarmThroughput, gl as LEGACY_HANDLE_ID_PREFIX, gn as TABLE_INDEX_NOUN, gt as warmThroughputAlreadyMatches, hi as calculateResourceDrift, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ht as trimUnsentWarmMembers, ic as dnsEntryStrings, ii as withoutSiblingOwnedSgRules, in as reverseMapIndexContributorInsights, io as secretNamedAttributeNamesOf, it as gsiUnsendableChangeRefusal, jt as TAGS_BASELINE_REREAD_DELAYS_MS, ks as markWaitAbandoned, kt as tableDeleteGoneWait, lc as s3BucketWebsiteUrl, ln as beginDeleteWait, lt as coerceWarmThroughput, md as wireAttributeValue, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, mt as sentWarmThroughputMembers, ni as siblingOwnedSgRuleIdentities, nn as planIndexContributorInsightsOps, nt as deletionProtectionRefusal, oc as s3BucketDomainName, of as rewriteTemplateAssetReferences, on as stripIndexContributorInsights, or as revertNestedChildFromJournal, ot as projectIndexesOnto, pd as planSubscriptionAttributes, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qo as policyContentKey, qt as readbackVectorIndexes, rl as outputReferenceProvenanceOf, rn as readContributorInsightsSpec, rr as getNestedRevertRun, rt as desiredIndexEntriesByName, sc as s3BucketDualStackDomainName, sd as withoutSdkUnwiredProperties, sl as getAccountInfo, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tn as planContributorInsightsOp, ts as evaluateSignals, tt as declaresIndexList, un as compensateRemovedDeletionProtection, ur as getCurrentNestedStackContext, ut as declaresWarmThroughput, vn as maskedLogger, vs as waitForLambdaFunctionActive, vt as KINESIS_DISABLE_PENDING_STATUSES, wn as isTruthyCfnBoolean, wo as withoutSiblingAttachedArns, wt as maskLeafValue, xn as ECR_AUTO_DELETE_IMAGES_TAG, xo as collectManagedPolicyArnsAttachedBySiblings, xt as isPlainCapacityBlock, yc as parseWebACLArn, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, za as recordedSgRuleId, zo as lambdaPermissionMatchesDeclared, zt as waitForContributorInsightsSettled } from "./deploy-engine-
|
|
12
|
-
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-
|
|
13
|
-
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-
|
|
14
|
-
import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-
|
|
15
|
-
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-
|
|
4
|
+
import { $ as AccountIdUnavailableError, B as isTransientServerError, D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markNonRetryable, K as markRedactedCause, L as isExplicitDenyError, M as explicitDenyPolicyKind, O as relayedNameCollision, W as isThrottlingError, _ as ResourceUpdateNotSupportedError, i as credentialFingerprint, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, t as ambientClientDefaults, tt as CdkdError, x as hasReplayMayCollide, z as isRetryableTransientError } from "./ambient-client-defaults-D2ziUucm.js";
|
|
5
|
+
import { $t as markCreatedBeforeFailure, A as isPlainImportJson, At as compositeIdFormatMessage, B as markNotGone, Bt as isSecretDerivedValue, C as DriftReadRefusedError, D as holderRefusalRun, Dt as isInterruptedWaitError, E as holderRefusalMask, F as readNameProperty, G as rdsFamilyProtectionSite, H as deleteWithProtectionCompensation, Ht as maskerOrIdentity, I as refusalTypeShown, In as recordReferenceProvenanceEntry, It as segmentAfterAnchor, J as PROTECTION_FLIP_RETRY_WAIT_MS, Kt as clearCreatedBeforeFailure, L as remedyLogicalId, Lt as stateOrphanRecordRemedy, M as isQuotableImportValue, Mt as compositeIdSkipResult, N as normalizeAwsTagsToCfn, Nt as logicalIdShown, O as VALUE_NOT_SHOWN, Ot as startInterruptWatch, P as quotedRemedyLogicalId, Pt as packCompositeId, Q as isTerminalDbWaitStatus, Qi as injectiveKeyPrefix, Qt as markAuxiliaryFailure, R as resolveExplicitPhysicalId, Rn as snapshotPassProvenance, Rt as createMaskedLogSinks, S as withoutServerErrorRetries, St as recordedPrincipalsRepair, T as assertRegionMatch, U as logGroupProtectionSite, Un as hasMaskableValues, Ut as withDerivedNameMasks, Vr as recoverMaskedOutput, Vt as maskDeep, W as observeThenDisableProtection, Xi as withPasteableAwsProfile, Xr as recordAttributeIdCopy, Xt as isAuxiliaryFailure, Y as deleteAfterProtectionFlipWithFinalSnapshot, Yr as physicalNameCopiesOf, Z as isProceedDbStatus, Zi as injectiveKey, _ as createAttemptKey, _t as diffPrincipalNames, an as holdsMaskLeaf, at as ElapsedBudgetRegistry, b as replayedSendWindow, bn as markSameGenerationBag, bt as readPrincipalLists, cn as mentionsDynamicReference, ct as UNNAMEABLE_ID_CLAUSE, d as retractCreatedResource, dt as pasteableAwsCommand, en as markSupersedesEarlierCreate, et as ProtectionFlipRegistry, f as AMBIGUOUS_LATCH_TTL_MS, ft as protectedReplacementAdvice, g as ambiguousAttemptLead, gr as withoutPhysicalNameCopies, gt as SECRET_DERIVED_READ_LIVE, h as RecentIdSet, it as ElapsedBudget, j as isPlainImportValue, jt as compositeIdSeparatorRefusal, k as importRemedyCommand, kn as redactForState, kt as canonicalizeRoute53QueryName, l as reportCreatedResource, li as carriesSecretMask, lt as WITHHELD_AWS_COMMAND, m as CREATION_DATE_SKEW_MARGIN_MS, n as enclosingDeadlineRemainingMs, nt as protectionFlipKey, p as AmbiguousCreateLatch, pn as recordedSecrecyOf, pt as renderDisableCommand, q as userPoolProtectionSite, t as enclosingDeadlineExpired, ti as dynamicReferenceTokens, tt as isTerminalDeleteFailure, ut as isAwsCliLiteral, v as isInsideWindow, vt as holdsSecretDerivedEntry, w as RESOURCE_NOT_FOUND, x as setBounded, y as replayFollowedAmbiguousAttempt, yt as onlySecretDerived, zt as createMaskedRetryLogger } from "./resource-deadline-D6p4x_pl.js";
|
|
6
|
+
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ 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-CdLI5JxZ.js";
|
|
7
|
+
import { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-BnZ-p9kt.js";
|
|
8
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-C-Fplb9I.js";
|
|
9
|
+
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-Ce2id6tt.js";
|
|
10
|
+
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-DAZayV8w.js";
|
|
11
|
+
import { $ as streamTagsMatchDeclared, $i as getCurrentProducerRegions, $o as WaitConditionSignalStore, $t as contributorInsightsRefusals, Al as maskedSecretSegment, At as tableNameReleaseWait, Bo as memberReadFailure, Bt as waitForKinesisEnableActive, Ci as earliestDefined, Cn as hasCdkAutoDeleteTag, Co as isStoredExpression, Ct as mapSSESpecification, Di as acquireIdempotencyToken, Dl as toFiniteNumber, Dt as sseSpecificationRefusal, El as toCfnInteger, Eo as awaitInFlightSibling, Es as withIndeterminateGuard, Et as readCapacityNumber, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fo as SNS_DEFAULT_POLICY_ID, Ft as recordTagWrite, Fu as refuseMalformedNestedChildOutputs, G as declaredStreamTagsMember, Go as verbatimEchoDriftKeys, Gt as sendTtlWaitingOutRateLimit, Gu as refuseMalformedResourcesForDestroy, H as STREAM_POLICY_KEY, Ha as canonicalizeIpv6Cidr, Hn as childStackTags, Ho as reReadUntilSettled, Ht as isTtlRateLimited, Id as listNestedTemplateRows, Io as declaredMemberDocument, Is as isSettledInstanceState, It as settleWrittenTags, J as reverseMapStreamPolicy, Jd as decodeListingKey, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kn as licensedNameHolder, Ko as attemptedPolicyDocument, Kt as planVectorIndexUpdates, La as SG_RULE_ID_PATTERN, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Lo as declaredPolicyDocument, Ls as connectInstanceIdOf, Ma as replacedDeleteFailureVerdict, Md as stringifyValue, Mo as KMS_DEFAULT_KEY_POLICY_ID, Mt as clearTagWrites, Ol as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Oo as getStackRecords, Ot as sseSpecificationToSend, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Po as OWN_WRITE_REREAD_DELAYS_MS, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qt as completeTableContributorInsightsBaseline, Ra as cfnIngressPortValue, Rf as resolveAssemblyPath, Ro as efsPolicyMatchesDeclared, Rt as takeTagWrite, Sn as S3_AUTO_DELETE_OBJECTS_TAG, So as collectPrincipalsAttachingPolicy, St as isTableName, Ti as reserveStackCreateToken, Tl as isWarmThroughputDecrease, To as withoutSiblingOwned, Ts as deleteSkipReason, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as canonicalizeIpv4Cidr, Uo as settleDeclaredMember, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Va as sgProtocolKey, Vl as passedParameterClassesOf, Vn as childRowTags, Vo as policyDocumentMatchesDeclared, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wo as warnUnsettledMember, Wt as readTtlSpec, X as streamDeclaresTags, Xt as vectorIndexesShapeDetail, Xu as accountArgs, Y as streamDeclaresPolicy, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zt as CONTRIBUTOR_INSIGHTS_KEY, Zu as withheldAccountClause, _l as isLegacyHandleId, _n as deleteTableWithIndexBusyRetry, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, ac as s3BucketArn, ad as findSdkUnwiredProperties, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bn as waitForIndexesSettled, bo as collectGroupsAddedBySiblings, bs as waitForGoneAfterDelete, bt as hasUsableDeclaredCapacity, cc as s3BucketRegionalDomainName, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, dr as withNestedStackContext, dt as desiredBagIsInformative, el as getCurrentResourceSecrets, en as indexDeclaresContributorInsights, es as classifyHandleUrl, et as canonicalizeStaleIndexDescription, fd as normalizeRecordName, fn as resolveDynamoDbDeleteBudgetClock, ft as isRefusedWarmThroughput, gl as LEGACY_HANDLE_ID_PREFIX, gn as TABLE_INDEX_NOUN, gt as warmThroughputAlreadyMatches, hi as calculateResourceDrift, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ht as trimUnsentWarmMembers, ic as dnsEntryStrings, ii as withoutSiblingOwnedSgRules, in as reverseMapIndexContributorInsights, io as secretNamedAttributeNamesOf, it as gsiUnsendableChangeRefusal, jt as TAGS_BASELINE_REREAD_DELAYS_MS, ks as markWaitAbandoned, kt as tableDeleteGoneWait, lc as s3BucketWebsiteUrl, ln as beginDeleteWait, lt as coerceWarmThroughput, md as wireAttributeValue, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, mt as sentWarmThroughputMembers, ni as siblingOwnedSgRuleIdentities, nn as planIndexContributorInsightsOps, nt as deletionProtectionRefusal, oc as s3BucketDomainName, of as rewriteTemplateAssetReferences, on as stripIndexContributorInsights, or as revertNestedChildFromJournal, ot as projectIndexesOnto, pd as planSubscriptionAttributes, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qo as policyContentKey, qt as readbackVectorIndexes, rl as outputReferenceProvenanceOf, rn as readContributorInsightsSpec, rr as getNestedRevertRun, rt as desiredIndexEntriesByName, sc as s3BucketDualStackDomainName, sd as withoutSdkUnwiredProperties, sl as getAccountInfo, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tn as planContributorInsightsOp, ts as evaluateSignals, tt as declaresIndexList, un as compensateRemovedDeletionProtection, ur as getCurrentNestedStackContext, ut as declaresWarmThroughput, vn as maskedLogger, vs as waitForLambdaFunctionActive, vt as KINESIS_DISABLE_PENDING_STATUSES, wn as isTruthyCfnBoolean, wo as withoutSiblingAttachedArns, wt as maskLeafValue, xn as ECR_AUTO_DELETE_IMAGES_TAG, xo as collectManagedPolicyArnsAttachedBySiblings, xt as isPlainCapacityBlock, yc as parseWebACLArn, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, za as recordedSgRuleId, zo as lambdaPermissionMatchesDeclared, zt as waitForContributorInsightsSettled } from "./deploy-engine-7gPM_z0r.js";
|
|
12
|
+
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-DiQb3Tm9.js";
|
|
13
|
+
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-DRxM4nEI.js";
|
|
14
|
+
import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-CGZO-iyw.js";
|
|
15
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-WuNz0klP.js";
|
|
16
16
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
17
17
|
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
18
|
-
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-
|
|
22
|
-
import { RDSProvider } from "./rds-provider-
|
|
23
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
24
|
-
import { ASGProvider } from "./asg-provider-
|
|
18
|
+
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-C3bNJVAK.js";
|
|
19
|
+
import { a as withRemovalDefaults, i as removedTemplateKeys, t as clearOnUpdateRemoval } from "./update-removal-CBAhk3SI.js";
|
|
20
|
+
import { B as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-bf4K_Yka.js";
|
|
21
|
+
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-DpzQ2tXe.js";
|
|
22
|
+
import { RDSProvider } from "./rds-provider-j7YCssyt.js";
|
|
23
|
+
import { NeptuneProvider } from "./neptune-provider-CjjpqzLj.js";
|
|
24
|
+
import { ASGProvider } from "./asg-provider-DXerSmY8.js";
|
|
25
25
|
import { createHash, randomUUID } from "node:crypto";
|
|
26
26
|
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";
|
|
27
27
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteConflictException, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetLoginProfileCommand, 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";
|
|
@@ -41,7 +41,7 @@ import { AssociateKmsKeyCommand, CloudWatchLogsClient, CreateDeliveryCommand, Cr
|
|
|
41
41
|
import { BedrockAgentCoreControlClient, CreateAgentRuntimeCommand, CreateEvaluatorCommand, DeleteAgentRuntimeCommand, DeleteEvaluatorCommand, GetAgentRuntimeCommand, GetBrowserCommand, GetCodeInterpreterCommand, GetEvaluatorCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$6, ResourceNotFoundException as ResourceNotFoundException$6, TagResourceCommand as TagResourceCommand$9, UntagResourceCommand as UntagResourceCommand$9, UpdateAgentRuntimeCommand, UpdateEvaluatorCommand } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
42
42
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$1, CreateCacheClusterCommand, CreateCacheSubnetGroupCommand, DeleteCacheClusterCommand, DeleteCacheSubnetGroupCommand, DescribeCacheClustersCommand, DescribeCacheSubnetGroupsCommand, ElastiCacheClient, ListTagsForResourceCommand as ListTagsForResourceCommand$7, ModifyCacheClusterCommand, ModifyCacheSubnetGroupCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$1 } from "@aws-sdk/client-elasticache";
|
|
43
43
|
import { ACMClient, AddTagsToCertificateCommand, DeleteCertificateCommand, DescribeCertificateCommand, ListTagsForCertificateCommand, RemoveTagsFromCertificateCommand, RequestCertificateCommand, ResourceNotFoundException as ResourceNotFoundException$7, UpdateCertificateOptionsCommand } from "@aws-sdk/client-acm";
|
|
44
|
-
import { AssociateVPCWithHostedZoneCommand, ChangeResourceRecordSetsCommand, ChangeTagsForResourceCommand, CreateHostedZoneCommand, CreateQueryLoggingConfigCommand, DeleteHostedZoneCommand, DeleteQueryLoggingConfigCommand, DisassociateVPCFromHostedZoneCommand, GetHostedZoneCommand, HostedZoneAlreadyExists, ListHostedZonesByNameCommand, ListQueryLoggingConfigsCommand, ListResourceRecordSetsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$8, Route53Client, UpdateHostedZoneCommentCommand, UpdateHostedZoneFeaturesCommand } from "@aws-sdk/client-route-53";
|
|
44
|
+
import { AssociateVPCWithHostedZoneCommand, ChangeResourceRecordSetsCommand, ChangeTagsForResourceCommand, CreateHostedZoneCommand, CreateQueryLoggingConfigCommand, DeleteHostedZoneCommand, DeleteQueryLoggingConfigCommand, DisassociateVPCFromHostedZoneCommand, GetChangeCommand, GetHostedZoneCommand, HostedZoneAlreadyExists, ListHostedZonesByNameCommand, ListQueryLoggingConfigsCommand, ListResourceRecordSetsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$8, Route53Client, UpdateHostedZoneCommentCommand, UpdateHostedZoneFeaturesCommand } from "@aws-sdk/client-route-53";
|
|
45
45
|
import { CreateMicrovmImageCommand, DeleteMicrovmImageCommand, GetMicrovmImageCommand, LambdaMicrovmsClient, ListTagsCommand as ListTagsCommand$1, ResourceNotFoundException as ResourceNotFoundException$8, TagResourceCommand as TagResourceCommand$10, UntagResourceCommand as UntagResourceCommand$10, UpdateMicrovmImageCommand } from "@aws-sdk/client-lambda-microvms";
|
|
46
46
|
import { CreateWebFunctionEndpointCommand, CreateWebFunctionRevisionCommand, DeleteWebFunctionEndpointCommand, DeleteWebFunctionRevisionCommand, GetWebFunctionEndpointCommand, GetWebFunctionRevisionCommand, LambdaWebClient, ListWebFunctionRevisionsCommand, ResourceNotFoundException as ResourceNotFoundException$9, UpdateWebFunctionEndpointCommand } from "@aws-sdk/client-lambda-web";
|
|
47
47
|
import { CreateNetworkConnectorCommand, DeleteNetworkConnectorCommand, GetNetworkConnectorCommand, LambdaCoreClient, ResourceNotFoundException as ResourceNotFoundException$10, UpdateNetworkConnectorCommand } from "@aws-sdk/client-lambda-core";
|
|
@@ -25248,45 +25248,56 @@ async function ensureIamInstanceProfileAssociated(instanceId, arn, name, logical
|
|
|
25248
25248
|
return;
|
|
25249
25249
|
}
|
|
25250
25250
|
this.logger.debug(`IAM instance profile not bound at launch for instance ${instanceId} (${logicalId}); associating ${arn ?? name} explicitly`);
|
|
25251
|
+
const notConfirmed = (why) => new ProvisioningError(`The IAM instance profile association of EC2 Instance ${logicalId} (${instanceId}) ${why}; the association is not confirmed`, "AWS::EC2::Instance", logicalId, instanceId);
|
|
25252
|
+
const watch = startInterruptWatch(`EC2 Instance ${logicalId} IAM instance profile association`);
|
|
25253
|
+
const checkpoint = () => {
|
|
25254
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
25255
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(notConfirmed("did not read associated before the resource timeout"));
|
|
25256
|
+
};
|
|
25257
|
+
const pause = (ms) => this.sleep(Math.max(0, Math.min(ms, enclosingDeadlineRemainingMs())));
|
|
25251
25258
|
const maxAttempts = 10;
|
|
25252
|
-
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
+
try {
|
|
25260
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
25261
|
+
checkpoint();
|
|
25262
|
+
try {
|
|
25263
|
+
await this.ec2Client.send(new AssociateIamInstanceProfileCommand({
|
|
25264
|
+
InstanceId: instanceId,
|
|
25265
|
+
IamInstanceProfile: {
|
|
25266
|
+
Arn: arn,
|
|
25267
|
+
Name: name
|
|
25268
|
+
}
|
|
25269
|
+
}));
|
|
25270
|
+
this.logger.debug(`AssociateIamInstanceProfile issued for instance ${instanceId} (${logicalId}) on attempt ${attempt}`);
|
|
25271
|
+
break;
|
|
25272
|
+
} catch (error) {
|
|
25273
|
+
const msg = describeAwsFailure(error).detail;
|
|
25274
|
+
if (msg.includes("IncorrectState") || msg.includes("already associated")) {
|
|
25275
|
+
this.logger.debug(`IAM instance profile already associated with instance ${instanceId} (${logicalId})`);
|
|
25276
|
+
break;
|
|
25277
|
+
}
|
|
25278
|
+
if (this.isInstanceProfilePropagationError(msg) && attempt < maxAttempts) {
|
|
25279
|
+
this.logger.debug(`IAM instance profile not yet propagated for instance ${instanceId} (associate attempt ${attempt}/${maxAttempts}: ${msg}), retrying in ${attempt}s...`);
|
|
25280
|
+
await pause(attempt * 1e3);
|
|
25281
|
+
continue;
|
|
25282
|
+
}
|
|
25283
|
+
throw error;
|
|
25259
25284
|
}
|
|
25260
|
-
}));
|
|
25261
|
-
this.logger.debug(`AssociateIamInstanceProfile issued for instance ${instanceId} (${logicalId}) on attempt ${attempt}`);
|
|
25262
|
-
associated = true;
|
|
25263
|
-
break;
|
|
25264
|
-
} catch (error) {
|
|
25265
|
-
const msg = describeAwsFailure(error).detail;
|
|
25266
|
-
if (msg.includes("IncorrectState") || msg.includes("already associated")) {
|
|
25267
|
-
this.logger.debug(`IAM instance profile already associated with instance ${instanceId} (${logicalId})`);
|
|
25268
|
-
associated = true;
|
|
25269
|
-
break;
|
|
25270
25285
|
}
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
await this.
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
this.logger.debug(`IAM instance profile is now associated with instance ${instanceId} (${logicalId})`);
|
|
25282
|
-
return;
|
|
25283
|
-
}
|
|
25284
|
-
if (attempt < maxAttempts) {
|
|
25285
|
-
this.logger.debug(`Waiting for IAM instance profile association to reach 'associated' for instance ${instanceId} (${logicalId}) (poll ${attempt}/${maxAttempts})...`);
|
|
25286
|
-
await this.sleep(attempt * 1e3);
|
|
25286
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
25287
|
+
checkpoint();
|
|
25288
|
+
if (await this.isInstanceProfileAssociated(instanceId)) {
|
|
25289
|
+
this.logger.debug(`IAM instance profile is now associated with instance ${instanceId} (${logicalId})`);
|
|
25290
|
+
return;
|
|
25291
|
+
}
|
|
25292
|
+
if (attempt < maxAttempts) {
|
|
25293
|
+
this.logger.debug(`Waiting for IAM instance profile association to reach 'associated' for instance ${instanceId} (${logicalId}) (poll ${attempt}/${maxAttempts})...`);
|
|
25294
|
+
await pause(attempt * 1e3);
|
|
25295
|
+
}
|
|
25287
25296
|
}
|
|
25297
|
+
} finally {
|
|
25298
|
+
watch.dispose();
|
|
25288
25299
|
}
|
|
25289
|
-
|
|
25300
|
+
throw markNonRetryable(notConfirmed(`did not read associated within the propagation window (${maxAttempts} reads)`));
|
|
25290
25301
|
}
|
|
25291
25302
|
async function isInstanceProfileAssociated(instanceId) {
|
|
25292
25303
|
try {
|
|
@@ -25310,18 +25321,96 @@ const instanceCreateMethods = {
|
|
|
25310
25321
|
isInstanceProfilePropagationError
|
|
25311
25322
|
};
|
|
25312
25323
|
|
|
25324
|
+
// src/provisioning/providers/ec2/instance-settle-wait.ts
|
|
25325
|
+
const INSTANCE_SETTLE_POLL_MS = 1e3;
|
|
25326
|
+
const INSTANCE_SETTLE_POLLS = 120;
|
|
25327
|
+
const METADATA_STALE_READ_GRACE_POLLS = 5;
|
|
25328
|
+
async function pollUntilSettled$1(what, opts, read, judge, describeLast) {
|
|
25329
|
+
const { maskSecrets } = opts;
|
|
25330
|
+
const pollMs = opts.pollMs ?? 1e3;
|
|
25331
|
+
const maxPolls = opts.maxPolls ?? 120;
|
|
25332
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
25333
|
+
opts.debug(maskSecrets(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`));
|
|
25334
|
+
return;
|
|
25335
|
+
}
|
|
25336
|
+
const watch = startInterruptWatch(maskSecrets(what));
|
|
25337
|
+
let last;
|
|
25338
|
+
try {
|
|
25339
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
25340
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
25341
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(maskSecrets(`The resource timeout expired while waiting for ${what} (last state: ${describeLast(last)}); the change is not confirmed`)));
|
|
25342
|
+
let verdict = "pending";
|
|
25343
|
+
try {
|
|
25344
|
+
last = await read();
|
|
25345
|
+
verdict = judge(last, poll);
|
|
25346
|
+
} catch (error) {
|
|
25347
|
+
if (!(isThrottlingError(error) || isTransientServerError(error))) throw error;
|
|
25348
|
+
opts.debug(maskSecrets(`A read while waiting for ${what} was throttled or failed server-side; reading again`));
|
|
25349
|
+
}
|
|
25350
|
+
if (verdict === "settled") return;
|
|
25351
|
+
if (verdict instanceof Error) throw markNonRetryable(verdict);
|
|
25352
|
+
if (poll === maxPolls) break;
|
|
25353
|
+
await new Promise((resolve) => setTimeout(resolve, Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs()))));
|
|
25354
|
+
}
|
|
25355
|
+
} finally {
|
|
25356
|
+
watch.dispose();
|
|
25357
|
+
}
|
|
25358
|
+
throw markNonRetryable(new Error(maskSecrets(`Timed out waiting for ${what}: still ${describeLast(last)} after ${maxPolls * pollMs / 1e3} seconds; the change is not confirmed`)));
|
|
25359
|
+
}
|
|
25360
|
+
async function describeInstance(client, instanceId) {
|
|
25361
|
+
return (await client.send(new DescribeInstancesCommand({ InstanceIds: [instanceId] }))).Reservations?.[0]?.Instances?.[0];
|
|
25362
|
+
}
|
|
25363
|
+
async function waitForInstanceMonitoringSettled(opts, enabled) {
|
|
25364
|
+
const { client, logicalId, instanceId } = opts;
|
|
25365
|
+
const expected = enabled ? "enabled" : "disabled";
|
|
25366
|
+
await pollUntilSettled$1(`detailed monitoring on EC2 Instance ${logicalId} (${instanceId}) to read ${expected}`, opts, () => describeInstance(client, instanceId), (instance) => instance?.Monitoring?.State === expected ? "settled" : "pending", (instance) => instance?.Monitoring?.State ?? "none read");
|
|
25367
|
+
}
|
|
25368
|
+
async function waitForInstanceMetadataOptionsSettled(opts, requested) {
|
|
25369
|
+
const { client, logicalId, instanceId } = opts;
|
|
25370
|
+
const sent = requested;
|
|
25371
|
+
await pollUntilSettled$1(`the metadata options of EC2 Instance ${logicalId} (${instanceId}) to read applied`, opts, () => describeInstance(client, instanceId), (instance, poll) => {
|
|
25372
|
+
const md = instance?.MetadataOptions;
|
|
25373
|
+
if (md?.["State"] !== "applied") return "pending";
|
|
25374
|
+
return Object.keys(sent).every((k) => sent[k] === void 0 || String(md[k]) === String(sent[k])) || poll > 5 ? "settled" : "pending";
|
|
25375
|
+
}, (instance) => instance?.MetadataOptions?.State ?? "none read");
|
|
25376
|
+
}
|
|
25377
|
+
function profileMatches(a, arn, name) {
|
|
25378
|
+
const live = a.IamInstanceProfile?.Arn;
|
|
25379
|
+
if (live === void 0) return false;
|
|
25380
|
+
if (arn !== void 0) return live === arn;
|
|
25381
|
+
return name !== void 0 && live.endsWith(`/${name}`);
|
|
25382
|
+
}
|
|
25383
|
+
async function waitForInstanceProfileAssociationSettled(opts, target) {
|
|
25384
|
+
const { client, logicalId, instanceId } = opts;
|
|
25385
|
+
const find = (list) => target.associationId !== void 0 ? list.find((a) => a.AssociationId === target.associationId) : target.kind === "associated" ? list.find((a) => profileMatches(a, target.arn, target.name) && a.State !== "disassociated") ?? list.find((a) => profileMatches(a, target.arn, target.name)) : void 0;
|
|
25386
|
+
await pollUntilSettled$1(`the IAM instance profile association of EC2 Instance ${logicalId} (${instanceId}) to read ${target.kind}`, opts, async () => find((await client.send(new DescribeIamInstanceProfileAssociationsCommand({ Filters: [{
|
|
25387
|
+
Name: "instance-id",
|
|
25388
|
+
Values: [instanceId]
|
|
25389
|
+
}] }))).IamInstanceProfileAssociations ?? []), (assoc) => {
|
|
25390
|
+
const state = assoc?.State;
|
|
25391
|
+
if (target.kind === "disassociated") return state === void 0 || state === "disassociated" ? "settled" : "pending";
|
|
25392
|
+
if (state === "associated") return "settled";
|
|
25393
|
+
if (state === "disassociated") return new Error(opts.maskSecrets(`The IAM instance profile association of EC2 Instance ${logicalId} (${instanceId}) settled as disassociated, expected associated; the profile is not bound`));
|
|
25394
|
+
return "pending";
|
|
25395
|
+
}, (assoc) => assoc?.State ?? "absent");
|
|
25396
|
+
}
|
|
25397
|
+
|
|
25313
25398
|
// src/provisioning/providers/ec2/instance-update.ts
|
|
25314
25399
|
async function updateInstance(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
25315
25400
|
this.logger.debug(`Updating EC2 Instance ${logicalId}: ${physicalId}`);
|
|
25316
25401
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
25317
25402
|
this.guardTerminationProtectionRemoval(logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
25318
25403
|
const memberPlan = this.planInstanceMemberUpdates(logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
25404
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
25319
25405
|
try {
|
|
25320
25406
|
await this.prepareInstanceMemberUpdates(logicalId, physicalId, resourceType, memberPlan);
|
|
25321
|
-
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"],
|
|
25322
|
-
await this.updateInstanceSecurityProps(physicalId, properties, previousProperties
|
|
25323
|
-
|
|
25324
|
-
|
|
25407
|
+
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], mask);
|
|
25408
|
+
await this.updateInstanceSecurityProps(physicalId, properties, previousProperties, {
|
|
25409
|
+
logicalId,
|
|
25410
|
+
maskSecrets: mask
|
|
25411
|
+
});
|
|
25412
|
+
await this.applyInstanceMemberUpdates(logicalId, physicalId, resourceType, memberPlan, mask);
|
|
25413
|
+
if (memberPlan.ssmAssociation !== void 0) await this.applyInstanceSsmAssociationChange(logicalId, physicalId, resourceType, memberPlan.ssmAssociation, mask, context?.expectedRegion);
|
|
25325
25414
|
const instance = (await this.ec2Client.send(new DescribeInstancesCommand({ InstanceIds: [physicalId] }))).Reservations?.[0]?.Instances?.[0];
|
|
25326
25415
|
return {
|
|
25327
25416
|
physicalId,
|
|
@@ -25331,7 +25420,7 @@ async function updateInstance(logicalId, physicalId, resourceType, properties, p
|
|
|
25331
25420
|
} catch (error) {
|
|
25332
25421
|
if (error instanceof CdkdError || isInterruptedWaitError(error)) throw error;
|
|
25333
25422
|
const cause = error instanceof Error ? error : void 0;
|
|
25334
|
-
throw this.wrapCaughtError(
|
|
25423
|
+
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to update EC2 Instance ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
25335
25424
|
}
|
|
25336
25425
|
}
|
|
25337
25426
|
function guardTerminationProtectionRemoval(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
@@ -25342,7 +25431,13 @@ function guardTerminationProtectionRemoval(logicalId, physicalId, resourceType,
|
|
|
25342
25431
|
}
|
|
25343
25432
|
throw markNonRetryable(new ProvisioningError(safeMsg`${logicalId} (${resourceType}): DisableApiTermination was removed from the template, and CloudFormation fails that update for an existing instance. Keep it declared, and set it to false to turn termination protection off. The instance was not updated.`, resourceType, logicalId, physicalId));
|
|
25344
25433
|
}
|
|
25345
|
-
async function updateInstanceSecurityProps(physicalId, properties, previousProperties) {
|
|
25434
|
+
async function updateInstanceSecurityProps(physicalId, properties, previousProperties, at) {
|
|
25435
|
+
const site = {
|
|
25436
|
+
...at,
|
|
25437
|
+
client: this.ec2Client,
|
|
25438
|
+
instanceId: physicalId,
|
|
25439
|
+
debug: (m) => this.logger.debug(m)
|
|
25440
|
+
};
|
|
25346
25441
|
const newDisableApiTermination = this.coerceBool(properties["DisableApiTermination"]);
|
|
25347
25442
|
const oldDisableApiTermination = this.coerceBool(previousProperties["DisableApiTermination"]);
|
|
25348
25443
|
if (newDisableApiTermination !== void 0 && newDisableApiTermination !== oldDisableApiTermination) await this.ec2Client.send(new ModifyInstanceAttributeCommand({
|
|
@@ -25354,13 +25449,17 @@ async function updateInstanceSecurityProps(physicalId, properties, previousPrope
|
|
|
25354
25449
|
if (newMonitoring !== void 0 && newMonitoring !== oldMonitoring) {
|
|
25355
25450
|
if (newMonitoring) await this.ec2Client.send(new MonitorInstancesCommand({ InstanceIds: [physicalId] }));
|
|
25356
25451
|
else await this.ec2Client.send(new UnmonitorInstancesCommand({ InstanceIds: [physicalId] }));
|
|
25452
|
+
await waitForInstanceMonitoringSettled(site, newMonitoring);
|
|
25357
25453
|
}
|
|
25358
25454
|
const newMetadata = this.buildMetadataOptions(properties);
|
|
25359
25455
|
const oldMetadata = this.buildMetadataOptions(previousProperties);
|
|
25360
|
-
if (newMetadata !== void 0 && !this.shallowEqual(newMetadata, oldMetadata))
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
|
|
25456
|
+
if (newMetadata !== void 0 && !this.shallowEqual(newMetadata, oldMetadata)) {
|
|
25457
|
+
await this.ec2Client.send(new ModifyInstanceMetadataOptionsCommand({
|
|
25458
|
+
InstanceId: physicalId,
|
|
25459
|
+
...newMetadata
|
|
25460
|
+
}));
|
|
25461
|
+
await waitForInstanceMetadataOptionsSettled(site, newMetadata);
|
|
25462
|
+
}
|
|
25364
25463
|
const newCpuCredits = this.readCpuCredits(properties["CreditSpecification"]);
|
|
25365
25464
|
const oldCpuCredits = this.readCpuCredits(previousProperties["CreditSpecification"]);
|
|
25366
25465
|
if (newCpuCredits !== void 0 && newCpuCredits !== oldCpuCredits) await this.ec2Client.send(new ModifyInstanceCreditSpecificationCommand({ InstanceCreditSpecifications: [{
|
|
@@ -25644,7 +25743,7 @@ async function prepareInstanceMemberUpdates(logicalId, physicalId, resourceType,
|
|
|
25644
25743
|
ids: [await this.vpcDefaultSecurityGroupId(logicalId, physicalId, resourceType, instance?.VpcId)]
|
|
25645
25744
|
};
|
|
25646
25745
|
}
|
|
25647
|
-
async function applyInstanceMemberUpdates(logicalId, physicalId, resourceType, plan) {
|
|
25746
|
+
async function applyInstanceMemberUpdates(logicalId, physicalId, resourceType, plan, maskSecrets) {
|
|
25648
25747
|
const applied = [];
|
|
25649
25748
|
if (plan.securityGroups?.kind === "set") {
|
|
25650
25749
|
await this.ec2Client.send(new ModifyInstanceAttributeCommand({
|
|
@@ -25654,7 +25753,7 @@ async function applyInstanceMemberUpdates(logicalId, physicalId, resourceType, p
|
|
|
25654
25753
|
applied.push("the new SecurityGroupIds");
|
|
25655
25754
|
}
|
|
25656
25755
|
if (plan.profile !== void 0) {
|
|
25657
|
-
await this.applyInstanceProfileChange(logicalId, physicalId, plan.profile);
|
|
25756
|
+
await this.applyInstanceProfileChange(logicalId, physicalId, plan.profile, maskSecrets);
|
|
25658
25757
|
applied.push(plan.profile.kind === "remove" ? "the IamInstanceProfile removed" : "the new IamInstanceProfile");
|
|
25659
25758
|
}
|
|
25660
25759
|
if (plan.deleteOnTermination !== void 0) {
|
|
@@ -25964,7 +26063,7 @@ async function vpcDefaultSecurityGroupId(logicalId, physicalId, resourceType, vp
|
|
|
25964
26063
|
if (id === void 0) throw refusedBeforeApplying(new ProvisioningError(`${logicalId} (${resourceType}): SecurityGroupIds was removed, and the default security group of instance ${physicalId}'s VPC (${vpcId ?? "unknown"}) could not be found to put in its place. The instance was not updated.`, resourceType, logicalId, physicalId));
|
|
25965
26064
|
return id;
|
|
25966
26065
|
}
|
|
25967
|
-
async function applyInstanceProfileChange(logicalId, physicalId, change) {
|
|
26066
|
+
async function applyInstanceProfileChange(logicalId, physicalId, change, maskSecrets) {
|
|
25968
26067
|
let assoc = await this.ec2Client.send(new DescribeIamInstanceProfileAssociationsCommand({ Filters: [{
|
|
25969
26068
|
Name: "instance-id",
|
|
25970
26069
|
Values: [physicalId]
|
|
@@ -25977,31 +26076,51 @@ async function applyInstanceProfileChange(logicalId, physicalId, change) {
|
|
|
25977
26076
|
}] }));
|
|
25978
26077
|
}
|
|
25979
26078
|
const current = assoc.IamInstanceProfileAssociations?.find((a) => a.State === "associated" || a.State === "associating");
|
|
26079
|
+
const log = createMaskedLogSinks(this.logger, maskSecrets);
|
|
26080
|
+
const site = {
|
|
26081
|
+
client: this.ec2Client,
|
|
26082
|
+
logicalId,
|
|
26083
|
+
instanceId: physicalId,
|
|
26084
|
+
maskSecrets: log.mask,
|
|
26085
|
+
debug: log.debug
|
|
26086
|
+
};
|
|
25980
26087
|
if (change.kind === "remove") {
|
|
25981
26088
|
if (current?.AssociationId === void 0) return;
|
|
25982
26089
|
await this.ec2Client.send(new DisassociateIamInstanceProfileCommand({ AssociationId: current.AssociationId }));
|
|
26090
|
+
await waitForInstanceProfileAssociationSettled(site, {
|
|
26091
|
+
kind: "disassociated",
|
|
26092
|
+
associationId: current.AssociationId
|
|
26093
|
+
});
|
|
25983
26094
|
return;
|
|
25984
26095
|
}
|
|
25985
26096
|
const spec = change.arn !== void 0 ? { Arn: change.arn } : { Name: change.name };
|
|
25986
26097
|
const maxAttempts = 10;
|
|
25987
|
-
for (let attempt = 1;; attempt++)
|
|
25988
|
-
|
|
25989
|
-
|
|
25990
|
-
|
|
25991
|
-
|
|
25992
|
-
|
|
25993
|
-
|
|
25994
|
-
|
|
25995
|
-
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
|
|
26001
|
-
|
|
26002
|
-
|
|
26098
|
+
for (let attempt = 1;; attempt++) {
|
|
26099
|
+
let sent;
|
|
26100
|
+
try {
|
|
26101
|
+
sent = current?.AssociationId !== void 0 ? await this.ec2Client.send(new ReplaceIamInstanceProfileAssociationCommand({
|
|
26102
|
+
AssociationId: current.AssociationId,
|
|
26103
|
+
IamInstanceProfile: spec
|
|
26104
|
+
})) : await this.ec2Client.send(new AssociateIamInstanceProfileCommand({
|
|
26105
|
+
InstanceId: physicalId,
|
|
26106
|
+
IamInstanceProfile: spec
|
|
26107
|
+
}));
|
|
26108
|
+
} catch (error) {
|
|
26109
|
+
const msg = describeAwsFailure(error).detail;
|
|
26110
|
+
if (this.isInstanceProfilePropagationError(msg) && attempt < maxAttempts) {
|
|
26111
|
+
this.logger.debug(safeMsg`IAM instance profile not yet propagated for ${logicalId} (${physicalId}) (attempt ${attempt}/${maxAttempts}: ${msg}), retrying in ${attempt}s...`);
|
|
26112
|
+
await this.sleep(attempt * 1e3);
|
|
26113
|
+
continue;
|
|
26114
|
+
}
|
|
26115
|
+
throw error;
|
|
26003
26116
|
}
|
|
26004
|
-
|
|
26117
|
+
await waitForInstanceProfileAssociationSettled(site, {
|
|
26118
|
+
kind: "associated",
|
|
26119
|
+
associationId: sent?.IamInstanceProfileAssociation?.AssociationId,
|
|
26120
|
+
arn: change.arn,
|
|
26121
|
+
name: change.name
|
|
26122
|
+
});
|
|
26123
|
+
return;
|
|
26005
26124
|
}
|
|
26006
26125
|
}
|
|
26007
26126
|
function shallowEqual(a, b) {
|
|
@@ -34088,6 +34207,26 @@ async function waitForRuntimeSettledBeforeDelete(deps, agentRuntimeId, logicalId
|
|
|
34088
34207
|
watch.dispose();
|
|
34089
34208
|
}
|
|
34090
34209
|
}
|
|
34210
|
+
const RUNTIME_DELETE_MAX_WAIT_MS = 6e5;
|
|
34211
|
+
async function waitForRuntimeGoneAfterDelete(deps, agentRuntimeId, logicalId, resourceType) {
|
|
34212
|
+
await waitForGoneAfterDelete({
|
|
34213
|
+
what: `BedrockAgentCore Runtime ${agentRuntimeId}`,
|
|
34214
|
+
resourceType,
|
|
34215
|
+
describe: async () => {
|
|
34216
|
+
try {
|
|
34217
|
+
return (await deps.client.send(new GetAgentRuntimeCommand({ agentRuntimeId }))).status ?? "DELETING";
|
|
34218
|
+
} catch (error) {
|
|
34219
|
+
if (error instanceof ResourceNotFoundException$6) return void 0;
|
|
34220
|
+
throw error;
|
|
34221
|
+
}
|
|
34222
|
+
},
|
|
34223
|
+
failedStatus: (status) => status === "DELETE_FAILED" ? new ProvisioningError(`BedrockAgentCore Runtime ${logicalId} (${agentRuntimeId}) reached DELETE_FAILED after its delete was accepted; AWS will not finish the delete on its own, so cdkd keeps its record`, resourceType, logicalId, agentRuntimeId) : void 0,
|
|
34224
|
+
logger: deps.logger,
|
|
34225
|
+
pollIntervalMs: RUNTIME_WAIT_POLL_MS,
|
|
34226
|
+
maxWaitMs: RUNTIME_DELETE_MAX_WAIT_MS,
|
|
34227
|
+
sleep: deps.sleep
|
|
34228
|
+
});
|
|
34229
|
+
}
|
|
34091
34230
|
async function retireFailedRuntimeCreate(deps, agentRuntimeId, region, mask) {
|
|
34092
34231
|
try {
|
|
34093
34232
|
await deps.client.send(new DeleteAgentRuntimeCommand({ agentRuntimeId }));
|
|
@@ -34359,7 +34498,6 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34359
34498
|
await waitForRuntimeSettledBeforeDelete(this.waitDeps(), physicalId, logicalId);
|
|
34360
34499
|
try {
|
|
34361
34500
|
await this.client.send(new DeleteAgentRuntimeCommand({ agentRuntimeId: physicalId }));
|
|
34362
|
-
this.logger.debug(`Successfully deleted BedrockAgentCore Runtime ${logicalId}`);
|
|
34363
34501
|
} catch (error) {
|
|
34364
34502
|
if (error instanceof ResourceNotFoundException$6) {
|
|
34365
34503
|
const clientRegion = await this.client.config.region();
|
|
@@ -34371,6 +34509,11 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34371
34509
|
const thrown = this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete BedrockAgentCore Runtime ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
34372
34510
|
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
34373
34511
|
}
|
|
34512
|
+
await waitForRuntimeGoneAfterDelete({
|
|
34513
|
+
...this.waitDeps(),
|
|
34514
|
+
logger: this.logger
|
|
34515
|
+
}, physicalId, logicalId, resourceType);
|
|
34516
|
+
this.logger.debug(`Successfully deleted BedrockAgentCore Runtime ${logicalId}`);
|
|
34374
34517
|
}
|
|
34375
34518
|
buildAttributes(response, agentRuntimeName) {
|
|
34376
34519
|
const attributes = definedAttributes({
|
|
@@ -35608,6 +35751,69 @@ async function waitForOwnCapacityProviderPut(client, logicalId, cluster, log, pu
|
|
|
35608
35751
|
const reason = failed.length > 0 ? `: ${log.mask(failed.join("; "))}` : "";
|
|
35609
35752
|
throw markNonRetryable(new ProvisioningError(`ECS cluster ${logicalIdShown(logicalId)} (${log.value(cluster)}): PutClusterCapacityProviders ended with the capacity provider attachments UPDATE_FAILED${reason}. Check the capacity providers the template names (an Auto Scaling group provider needs its group and the ECS service-linked role), fix them, then re-run.`, CLUSTER_TYPE, logicalId, cluster));
|
|
35610
35753
|
}
|
|
35754
|
+
const CLUSTER_SETTLE_POLL_MS = 1e3;
|
|
35755
|
+
const CLUSTER_SETTLE_POLLS = 600;
|
|
35756
|
+
const CLUSTER_STALE_READ_GRACE_POLLS = 3;
|
|
35757
|
+
const CLUSTER_NOT_VISIBLE_GRACE_POLLS = 5;
|
|
35758
|
+
function settling(cluster) {
|
|
35759
|
+
return cluster?.status === "PROVISIONING" || cluster?.attachmentsStatus === IN_PROGRESS;
|
|
35760
|
+
}
|
|
35761
|
+
function clusterWriteNeedsSettle(sentServiceConnect, answered) {
|
|
35762
|
+
return sentServiceConnect || settling(answered);
|
|
35763
|
+
}
|
|
35764
|
+
async function waitForClusterSettled(client, logicalId, cluster, log, answered, opts = {}) {
|
|
35765
|
+
const pollMs = opts.pollMs ?? 1e3;
|
|
35766
|
+
const maxPolls = opts.maxPolls ?? 600;
|
|
35767
|
+
const gracePolls = opts.staleReadGracePolls ?? 3;
|
|
35768
|
+
const what = `ECS cluster ${logicalId} to settle`;
|
|
35769
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
35770
|
+
log.debug(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`);
|
|
35771
|
+
return;
|
|
35772
|
+
}
|
|
35773
|
+
const clusterSettleFailure = (head, failed) => {
|
|
35774
|
+
const attachments = (failed?.attachments ?? []).filter((a) => FAILED_ATTACHMENT.test(a.status ?? "")).map((a) => {
|
|
35775
|
+
const details = (a.details ?? []).map((d) => `${d.name ?? "?"}=${d.value ?? ""}`).join(", ");
|
|
35776
|
+
return `${a.type ?? "attachment"} ${a.id ?? ""} ${a.status ?? ""}${details ? ` (${details})` : ""}`.trim();
|
|
35777
|
+
});
|
|
35778
|
+
const reason = describeAwsStatusReason({ message: attachments.join("; ") }, "");
|
|
35779
|
+
if (reason.redacted) log.debug(`${head}: ${reason.detail}`);
|
|
35780
|
+
return markNonRetryable(new ProvisioningError(log.mask(reason.redacted ? `${head}. ${reason.summary}` : head), CLUSTER_TYPE, logicalId, cluster));
|
|
35781
|
+
};
|
|
35782
|
+
const describeLast = (c) => c === void 0 ? "none read" : `${c.status ?? "unknown"} / attachments ${c.attachmentsStatus ?? "none"}`;
|
|
35783
|
+
let seenSettling = gracePolls === 0 || settling(answered);
|
|
35784
|
+
const watch = startInterruptWatch(log.mask(what));
|
|
35785
|
+
let last;
|
|
35786
|
+
try {
|
|
35787
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
35788
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
35789
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(log.mask(`The resource timeout expired while waiting for ${what} (last status: ${describeLast(last)}); the change is not confirmed`)));
|
|
35790
|
+
let read = false;
|
|
35791
|
+
try {
|
|
35792
|
+
last = await describeAttachments(client, cluster);
|
|
35793
|
+
read = true;
|
|
35794
|
+
} catch (error) {
|
|
35795
|
+
if (!(isThrottlingError(error) || isTransientServerError(error))) throw error;
|
|
35796
|
+
log.debug(`A read while waiting for ${what} was throttled or failed server-side; reading again`);
|
|
35797
|
+
}
|
|
35798
|
+
if (read) {
|
|
35799
|
+
if (last === void 0) {
|
|
35800
|
+
if (poll > CLUSTER_NOT_VISIBLE_GRACE_POLLS) throw clusterSettleFailure(`ECS cluster ${logicalIdShown(logicalId)} (${log.value(cluster)}) could not be read back while settling`, void 0);
|
|
35801
|
+
} else if (last.status === "FAILED") throw clusterSettleFailure(`ECS cluster ${logicalIdShown(logicalId)} (${log.value(cluster)}) settled as ${describeLast(last)}, expected ACTIVE / attachments UPDATE_COMPLETE`, last);
|
|
35802
|
+
else if (settling(last)) seenSettling = true;
|
|
35803
|
+
else if (!seenSettling && poll <= gracePolls) {} else if (last.status === "ACTIVE" && (last.attachmentsStatus === void 0 || last.attachmentsStatus === "UPDATE_COMPLETE")) return;
|
|
35804
|
+
else if (last.status === "ACTIVE" && last.attachmentsStatus === "UPDATE_FAILED" && !seenSettling) {
|
|
35805
|
+
log.warn(`ECS cluster ${log.value(cluster)} still reports UPDATE_FAILED attachments from before this update, which never showed UPDATE_IN_PROGRESS; continuing`);
|
|
35806
|
+
return;
|
|
35807
|
+
} else throw clusterSettleFailure(`ECS cluster ${logicalIdShown(logicalId)} (${log.value(cluster)}) settled as ${describeLast(last)}, expected ACTIVE / attachments UPDATE_COMPLETE`, last);
|
|
35808
|
+
}
|
|
35809
|
+
if (poll === maxPolls) break;
|
|
35810
|
+
await clusterAttachmentsWait.sleep(Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs())));
|
|
35811
|
+
}
|
|
35812
|
+
} finally {
|
|
35813
|
+
watch.dispose();
|
|
35814
|
+
}
|
|
35815
|
+
throw markNonRetryable(new Error(log.mask(`Timed out waiting for ${what}: still ${describeLast(last)} after ${maxPolls * pollMs / 1e3} seconds; the change is not confirmed`)));
|
|
35816
|
+
}
|
|
35611
35817
|
|
|
35612
35818
|
// src/provisioning/providers/ecs/cluster-task-definition.ts
|
|
35613
35819
|
async function createCluster(logicalId, resourceType, properties, log) {
|
|
@@ -35615,6 +35821,7 @@ async function createCluster(logicalId, resourceType, properties, log) {
|
|
|
35615
35821
|
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
35616
35822
|
const client = this.getClient();
|
|
35617
35823
|
const clusterName = properties["ClusterName"] || this.generatedCreateName(resourceType, logicalId, properties);
|
|
35824
|
+
let createdName;
|
|
35618
35825
|
try {
|
|
35619
35826
|
const cluster = (await client.send(new CreateClusterCommand({
|
|
35620
35827
|
clusterName,
|
|
@@ -35629,14 +35836,22 @@ async function createCluster(logicalId, resourceType, properties, log) {
|
|
|
35629
35836
|
tags: convertTags(desiredTags)
|
|
35630
35837
|
}))).cluster;
|
|
35631
35838
|
if (!cluster || !cluster.clusterArn) throw new Error("CreateCluster did not return cluster ARN");
|
|
35839
|
+
const physicalId = cluster.clusterName ?? clusterName;
|
|
35840
|
+
if (clusterWriteNeedsSettle(Boolean(properties["ServiceConnectDefaults"]), cluster)) {
|
|
35841
|
+
createdName = physicalId;
|
|
35842
|
+
reportCreatedResource(logicalId, resourceType, physicalId);
|
|
35843
|
+
await waitForClusterSettled(client, logicalId, physicalId, log, cluster, { staleReadGracePolls: 0 });
|
|
35844
|
+
}
|
|
35632
35845
|
log.debug(`Successfully created ECS cluster ${logicalId}: ${cluster.clusterArn}`);
|
|
35633
35846
|
return {
|
|
35634
|
-
physicalId
|
|
35847
|
+
physicalId,
|
|
35635
35848
|
attributes: { Arn: cluster.clusterArn }
|
|
35636
35849
|
};
|
|
35637
35850
|
} catch (error) {
|
|
35638
35851
|
const cause = error instanceof Error ? error : void 0;
|
|
35639
|
-
|
|
35852
|
+
const thrown = this.wrapCaughtError(log.mask, error, (text) => new ProvisioningError(`Failed to create ECS cluster ${logicalId}: ${text}`, resourceType, logicalId, clusterName, cause));
|
|
35853
|
+
if (createdName !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdName);
|
|
35854
|
+
throw thrown;
|
|
35640
35855
|
}
|
|
35641
35856
|
}
|
|
35642
35857
|
async function updateCluster(logicalId, physicalId, resourceType, properties, previousProperties, log) {
|
|
@@ -35663,13 +35878,14 @@ async function updateCluster(logicalId, physicalId, resourceType, properties, pr
|
|
|
35663
35878
|
value: (s["Value"] || s["value"]) ?? void 0
|
|
35664
35879
|
})) : void 0;
|
|
35665
35880
|
const svcConnectInput = svcConnectChanged ? properties["ServiceConnectDefaults"] ? { namespace: properties["ServiceConnectDefaults"]["Namespace"] } : { namespace: "" } : void 0;
|
|
35666
|
-
await sendWhenAttachmentsSettle(client, logicalId, physicalId, log, () => client.send(new UpdateClusterCommand({
|
|
35881
|
+
const updateResponse = await sendWhenAttachmentsSettle(client, logicalId, physicalId, log, () => client.send(new UpdateClusterCommand({
|
|
35667
35882
|
cluster: physicalId,
|
|
35668
35883
|
...settingsChanged && { settings: settingsInput },
|
|
35669
35884
|
...configChanged && { configuration: this.convertClusterConfiguration(properties["Configuration"]) },
|
|
35670
35885
|
...svcConnectChanged && { serviceConnectDefaults: svcConnectInput }
|
|
35671
35886
|
})));
|
|
35672
35887
|
log.debug(`Updated ECS cluster ${shownCluster} (settings=${settingsChanged}, config=${configChanged}, svcConnect=${svcConnectChanged})`);
|
|
35888
|
+
if (clusterWriteNeedsSettle(svcConnectChanged, updateResponse?.cluster)) await waitForClusterSettled(client, logicalId, physicalId, log, updateResponse?.cluster);
|
|
35673
35889
|
}
|
|
35674
35890
|
const cluster = (await client.send(new DescribeClustersCommand({ clusters: [physicalId] }))).clusters?.[0];
|
|
35675
35891
|
if (cluster?.clusterArn) await this.applyTagDiff(cluster.clusterArn, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], log);
|
|
@@ -37506,7 +37722,7 @@ function isWellFormedTarget(entry, side, ignoreSecrets = false) {
|
|
|
37506
37722
|
if (quic != null && (typeof quic !== "string" || quic.length === 0)) return false;
|
|
37507
37723
|
return az == null || typeof az === "string" && az.length > 0;
|
|
37508
37724
|
}
|
|
37509
|
-
function readTargets(value, side) {
|
|
37725
|
+
function readTargets$1(value, side) {
|
|
37510
37726
|
if (value === void 0 || value === null) return {
|
|
37511
37727
|
kind: "list",
|
|
37512
37728
|
items: []
|
|
@@ -38088,7 +38304,7 @@ async function updateLoadBalancer(logicalId, physicalId, resourceType, propertie
|
|
|
38088
38304
|
async function createTargetGroup(logicalId, resourceType, properties, maskSecrets) {
|
|
38089
38305
|
this.logger.debug(`Creating TargetGroup ${logicalId}`);
|
|
38090
38306
|
const tags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
38091
|
-
const desiredTargets = readTargets(properties["Targets"], "desired");
|
|
38307
|
+
const desiredTargets = readTargets$1(properties["Targets"], "desired");
|
|
38092
38308
|
if (desiredTargets.kind === "malformed") throw markNonRetryable(new ProvisioningError(`Targets of TargetGroup ${logicalId} is not a list of ${TARGETS_WHAT}${targetsSecretCause(desiredTargets)} — the target group was not created`, resourceType, logicalId));
|
|
38093
38309
|
let leftBehindArn;
|
|
38094
38310
|
try {
|
|
@@ -38503,10 +38719,10 @@ function diffAttributeBag(bag, logicalId, desired, previous, removalValue, fromR
|
|
|
38503
38719
|
return submitted;
|
|
38504
38720
|
}
|
|
38505
38721
|
async function readUpdateTargets(logicalId, physicalId, resourceType, desiredRaw, recordedRaw, groupPort) {
|
|
38506
|
-
const desired = readTargets(desiredRaw, "desired");
|
|
38722
|
+
const desired = readTargets$1(desiredRaw, "desired");
|
|
38507
38723
|
if (desired.kind === "malformed") throw markNonRetryable(new ProvisioningError(`desired Targets of TargetGroup ${logicalId} is not a list of ${TARGETS_WHAT}${targetsSecretCause(desired)} — the target group was not updated`, resourceType, logicalId, physicalId));
|
|
38508
38724
|
const newTargets = toTargetDescriptions(desired.items, groupPort);
|
|
38509
|
-
const recorded = readTargets(recordedRaw, "recorded");
|
|
38725
|
+
const recorded = readTargets$1(recordedRaw, "recorded");
|
|
38510
38726
|
if (recorded.kind === "list") return {
|
|
38511
38727
|
newTargets,
|
|
38512
38728
|
oldTargets: toTargetDescriptions(removableRecordedTargets(recorded.items), groupPort)
|
|
@@ -40047,6 +40263,105 @@ function withoutKey(bag, key) {
|
|
|
40047
40263
|
return rest;
|
|
40048
40264
|
}
|
|
40049
40265
|
|
|
40266
|
+
// src/provisioning/providers/rds-dbproxy-targetgroup/settle-wait.ts
|
|
40267
|
+
const PROXY_TARGETS_POLL_MS = 3e3;
|
|
40268
|
+
const PROXY_TARGETS_POLLS = 300;
|
|
40269
|
+
const PROXY_TARGET_FAILURE_GRACE_POLLS = 3;
|
|
40270
|
+
const FAILURE_REASONS = /* @__PURE__ */ new Set([
|
|
40271
|
+
"CONNECTION_FAILED",
|
|
40272
|
+
"AUTH_FAILURE",
|
|
40273
|
+
"INVALID_REPLICATION_STATE"
|
|
40274
|
+
]);
|
|
40275
|
+
function rowsFor(targets, kind, id) {
|
|
40276
|
+
return targets.filter((t) => kind === "cluster" ? t.Type !== "TRACKED_CLUSTER" && t.TrackedClusterId === id : t.Type !== "TRACKED_CLUSTER" && !t.TrackedClusterId && t.RdsResourceId === id);
|
|
40277
|
+
}
|
|
40278
|
+
const healthOf = (t) => [t.TargetHealth?.State ?? "no state", t.TargetHealth?.Reason].filter(Boolean).join("/");
|
|
40279
|
+
async function waitForProxyTargetsAvailable(client, logicalId, dbProxyName, targetGroupName, registered, log, wrapReadError, opts = {}) {
|
|
40280
|
+
const what = `the targets of DB proxy target group ${logicalId} to read AVAILABLE`;
|
|
40281
|
+
if (registered.clusters.length === 0 && registered.instances.length === 0) return;
|
|
40282
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
40283
|
+
log.debug(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`);
|
|
40284
|
+
return;
|
|
40285
|
+
}
|
|
40286
|
+
const pollMs = opts.pollMs ?? 3e3;
|
|
40287
|
+
const maxPolls = opts.maxPolls ?? 300;
|
|
40288
|
+
const watched = [...registered.clusters.map((id) => ({
|
|
40289
|
+
kind: "cluster",
|
|
40290
|
+
id
|
|
40291
|
+
})), ...registered.instances.map((id) => ({
|
|
40292
|
+
kind: "instance",
|
|
40293
|
+
id
|
|
40294
|
+
}))];
|
|
40295
|
+
let last = "none read";
|
|
40296
|
+
let failingPolls = 0;
|
|
40297
|
+
const watch = startInterruptWatch(log.mask(what));
|
|
40298
|
+
try {
|
|
40299
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
40300
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
40301
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(log.mask(`The resource timeout expired while waiting for ${what} (last read: ${last}); the registration is not confirmed`)));
|
|
40302
|
+
let targets;
|
|
40303
|
+
try {
|
|
40304
|
+
targets = await readTargets(client, dbProxyName, targetGroupName);
|
|
40305
|
+
} catch (error) {
|
|
40306
|
+
if (!(isThrottlingError(error) || isTransientServerError(error))) throw wrapReadError(error);
|
|
40307
|
+
log.debug(`A read while waiting for ${what} was throttled or failed server-side; reading again`);
|
|
40308
|
+
}
|
|
40309
|
+
if (targets !== void 0) {
|
|
40310
|
+
const pending = [];
|
|
40311
|
+
let failure;
|
|
40312
|
+
for (const { kind, id } of watched) {
|
|
40313
|
+
const rows = rowsFor(targets, kind, id);
|
|
40314
|
+
if (rows.length === 0) {
|
|
40315
|
+
pending.push(`${log.value(id)} not listed`);
|
|
40316
|
+
continue;
|
|
40317
|
+
}
|
|
40318
|
+
for (const row of rows) {
|
|
40319
|
+
const state = row.TargetHealth?.State;
|
|
40320
|
+
if (state === "AVAILABLE" || state === "UNUSED") continue;
|
|
40321
|
+
pending.push(`${log.value(row.RdsResourceId ?? id)} ${healthOf(row)}`);
|
|
40322
|
+
if (failure === void 0 && row.TargetHealth?.State === "UNAVAILABLE" && FAILURE_REASONS.has(row.TargetHealth.Reason ?? "")) failure = {
|
|
40323
|
+
id: row.RdsResourceId ?? id,
|
|
40324
|
+
row
|
|
40325
|
+
};
|
|
40326
|
+
}
|
|
40327
|
+
}
|
|
40328
|
+
if (pending.length === 0) return;
|
|
40329
|
+
last = pending.join(", ");
|
|
40330
|
+
failingPolls = failure === void 0 ? 0 : failingPolls + 1;
|
|
40331
|
+
if (failure !== void 0 && failingPolls >= 3) {
|
|
40332
|
+
const reason = failure.row.TargetHealth?.Reason ?? "";
|
|
40333
|
+
const head = `DB proxy target group ${logicalId}: target ${log.value(failure.id)} of proxy ${log.value(dbProxyName)} reads UNAVAILABLE (${reason}), expected AVAILABLE`;
|
|
40334
|
+
const text = describeAwsStatusReason({
|
|
40335
|
+
code: reason,
|
|
40336
|
+
message: failure.row.TargetHealth?.Description
|
|
40337
|
+
}, "");
|
|
40338
|
+
if (text.redacted) log.debug(`${head}: ${text.detail}`);
|
|
40339
|
+
throw markNonRetryable(new Error(log.mask(text.redacted ? `${head}. ${text.summary}` : head)));
|
|
40340
|
+
}
|
|
40341
|
+
}
|
|
40342
|
+
if (poll === maxPolls) break;
|
|
40343
|
+
await new Promise((resolve) => setTimeout(resolve, Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs()))));
|
|
40344
|
+
}
|
|
40345
|
+
} finally {
|
|
40346
|
+
watch.dispose();
|
|
40347
|
+
}
|
|
40348
|
+
throw markNonRetryable(new Error(log.mask(`Timed out waiting for ${what}: still ${last} after ${maxPolls * pollMs / 1e3} seconds; the registration is not confirmed`)));
|
|
40349
|
+
}
|
|
40350
|
+
async function readTargets(client, dbProxyName, targetGroupName) {
|
|
40351
|
+
const out = [];
|
|
40352
|
+
let marker;
|
|
40353
|
+
do {
|
|
40354
|
+
const page = await client.send(new DescribeDBProxyTargetsCommand({
|
|
40355
|
+
DBProxyName: dbProxyName,
|
|
40356
|
+
TargetGroupName: targetGroupName,
|
|
40357
|
+
...marker ? { Marker: marker } : {}
|
|
40358
|
+
}));
|
|
40359
|
+
out.push(...page.Targets ?? []);
|
|
40360
|
+
marker = page.Marker;
|
|
40361
|
+
} while (marker);
|
|
40362
|
+
return out;
|
|
40363
|
+
}
|
|
40364
|
+
|
|
40050
40365
|
// src/provisioning/providers/rds-dbproxy-targetgroup/create.ts
|
|
40051
40366
|
async function create$21(logicalId, resourceType, properties, context) {
|
|
40052
40367
|
const dbProxyName = readProxyName(properties["DBProxyName"]);
|
|
@@ -40104,7 +40419,23 @@ async function create$21(logicalId, resourceType, properties, context) {
|
|
|
40104
40419
|
throw await this.retireRegistrationAfterFailedCreate(this.wrapError(error, "CREATE (describe)", resourceType, logicalId, void 0, mask), dbProxyName, targetGroupName, dbClusterIdentifiers, dbInstanceIdentifiers, context?.maskSecrets);
|
|
40105
40420
|
}
|
|
40106
40421
|
if (!targetGroupArn) throw await this.retireRegistrationAfterFailedCreate(new ProvisioningError(`Failed to recover TargetGroupArn for ${dbProxyName}/${targetGroupName} after create`, resourceType, logicalId), dbProxyName, targetGroupName, dbClusterIdentifiers, dbInstanceIdentifiers, context?.maskSecrets);
|
|
40107
|
-
if (dbClusterIdentifiers.length > 0 || dbInstanceIdentifiers.length > 0)
|
|
40422
|
+
if (dbClusterIdentifiers.length > 0 || dbInstanceIdentifiers.length > 0) {
|
|
40423
|
+
reportCreatedResource(logicalId, resourceType, targetGroupArn);
|
|
40424
|
+
try {
|
|
40425
|
+
await waitForProxyTargetsAvailable(client, logicalId, dbProxyName, targetGroupName, {
|
|
40426
|
+
clusters: dbClusterIdentifiers,
|
|
40427
|
+
instances: dbInstanceIdentifiers
|
|
40428
|
+
}, createMaskedLogSinks(this.logger, context?.maskSecrets), (error) => this.wrapError(error, "CREATE (wait for targets)", resourceType, logicalId, void 0, mask));
|
|
40429
|
+
} catch (error) {
|
|
40430
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
40431
|
+
const original = error instanceof ProvisioningError ? error : new ProvisioningError(error.message, resourceType, logicalId, void 0, error);
|
|
40432
|
+
throw await this.retireRegistrationAfterFailedCreate(original, dbProxyName, targetGroupName, dbClusterIdentifiers, dbInstanceIdentifiers, context?.maskSecrets, {
|
|
40433
|
+
logicalId,
|
|
40434
|
+
resourceType,
|
|
40435
|
+
physicalId: targetGroupArn
|
|
40436
|
+
});
|
|
40437
|
+
}
|
|
40438
|
+
}
|
|
40108
40439
|
if (tags.length > 0) try {
|
|
40109
40440
|
await client.send(new AddTagsToResourceCommand$2({
|
|
40110
40441
|
ResourceName: targetGroupArn,
|
|
@@ -40260,6 +40591,10 @@ async function update$21(logicalId, physicalId, resourceType, properties, previo
|
|
|
40260
40591
|
} catch (error) {
|
|
40261
40592
|
throw this.wrapError(error, "UPDATE (register)", resourceType, logicalId, physicalId, mask);
|
|
40262
40593
|
}
|
|
40594
|
+
await waitForProxyTargetsAvailable(client, logicalId, dbProxyName, targetGroupName, {
|
|
40595
|
+
clusters: clustersToAdd,
|
|
40596
|
+
instances: instancesToAdd
|
|
40597
|
+
}, createMaskedLogSinks(this.logger, context?.maskSecrets), (error) => this.wrapError(error, "UPDATE (wait for targets)", resourceType, logicalId, physicalId, mask));
|
|
40263
40598
|
}
|
|
40264
40599
|
const tagsToRemove = tagPlan.remove;
|
|
40265
40600
|
const tagsToAdd = [...tagPlan.set].map(([Key, Value]) => ({
|
|
@@ -42771,6 +43106,50 @@ function isMatchableSetIdentifier(value) {
|
|
|
42771
43106
|
return typeof value === "string" && !value.includes("{{resolve:");
|
|
42772
43107
|
}
|
|
42773
43108
|
|
|
43109
|
+
// src/provisioning/providers/route53/change-wait.ts
|
|
43110
|
+
const CHANGE_INSYNC_POLL_MS = 2e3;
|
|
43111
|
+
const CHANGE_INSYNC_POLLS = 450;
|
|
43112
|
+
function changeIdOf(output) {
|
|
43113
|
+
return output?.ChangeInfo?.Id;
|
|
43114
|
+
}
|
|
43115
|
+
async function waitForRoute53ChangeInsync(client, changeId, what, log, opts = {}) {
|
|
43116
|
+
if (process.env["CDKD_FULL_WAIT"] !== "true") return;
|
|
43117
|
+
if (!changeId) {
|
|
43118
|
+
log.debug(`No Route 53 change id to wait on for ${what}`);
|
|
43119
|
+
return;
|
|
43120
|
+
}
|
|
43121
|
+
const pollMs = opts.pollMs ?? 2e3;
|
|
43122
|
+
const maxPolls = opts.maxPolls ?? 450;
|
|
43123
|
+
const id = changeId.replace(/^\/change\//, "");
|
|
43124
|
+
const manual = `To wait manually: ${pasteableAwsCommand(log.mask)`aws route53 wait resource-record-sets-changed --id ${id}`.render()}.`;
|
|
43125
|
+
const giveUp = (why) => log.warn(`The Route 53 change for ${what} ${why}; continuing (propagation finishes in the background). ${manual}`);
|
|
43126
|
+
const watch = startInterruptWatch(log.mask(`the Route 53 change for ${what} to reach INSYNC`));
|
|
43127
|
+
try {
|
|
43128
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
43129
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
43130
|
+
if (enclosingDeadlineRemainingMs() <= 0) {
|
|
43131
|
+
giveUp("did not reach INSYNC before the resource timeout");
|
|
43132
|
+
return;
|
|
43133
|
+
}
|
|
43134
|
+
try {
|
|
43135
|
+
if ((await client.send(new GetChangeCommand({ Id: id }))).ChangeInfo?.Status === "INSYNC") return;
|
|
43136
|
+
} catch (error) {
|
|
43137
|
+
if (!(isThrottlingError(error) || isTransientServerError(error))) {
|
|
43138
|
+
log.debug(`GetChange for ${what} failed: ${describeAwsFailure(error).detail}`);
|
|
43139
|
+
giveUp(`could not be read (${verboseAwareText("re-run with --verbose for the reason", "the reason is in the debug output above")})`);
|
|
43140
|
+
return;
|
|
43141
|
+
}
|
|
43142
|
+
log.debug(`A read while waiting for the Route 53 change for ${what} was throttled or failed server-side; reading again`);
|
|
43143
|
+
}
|
|
43144
|
+
if (poll === maxPolls) break;
|
|
43145
|
+
await new Promise((resolve) => setTimeout(resolve, Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs()))));
|
|
43146
|
+
}
|
|
43147
|
+
} finally {
|
|
43148
|
+
watch.dispose();
|
|
43149
|
+
}
|
|
43150
|
+
giveUp(`did not reach INSYNC within ${maxPolls * pollMs / 1e3} seconds`);
|
|
43151
|
+
}
|
|
43152
|
+
|
|
42774
43153
|
// src/provisioning/providers/route53/hosted-zone.ts
|
|
42775
43154
|
async function createHostedZone(logicalId, resourceType, properties, mask, context) {
|
|
42776
43155
|
this.logger.debug(`Creating Route 53 hosted zone ${logicalId}`);
|
|
@@ -42814,16 +43193,18 @@ async function createHostedZone(logicalId, resourceType, properties, mask, conte
|
|
|
42814
43193
|
const zoneId = hostedZone.Id.replace("/hostedzone/", "");
|
|
42815
43194
|
createdZoneId = zoneId;
|
|
42816
43195
|
reportCreatedResource(logicalId, resourceType, zoneId);
|
|
43196
|
+
const changeIds = [changeIdOf(response)];
|
|
42817
43197
|
if (vpcs && vpcs.length > 1) for (let i = 1; i < vpcs.length; i++) {
|
|
42818
43198
|
const additionalVpc = vpcs[i];
|
|
42819
43199
|
this.logger.debug(`Associating additional VPC ${String(additionalVpc["VPCId"])} with hosted zone ${zoneId}`);
|
|
42820
|
-
await this.getClient().send(new AssociateVPCWithHostedZoneCommand({
|
|
43200
|
+
const associated = await this.getClient().send(new AssociateVPCWithHostedZoneCommand({
|
|
42821
43201
|
HostedZoneId: zoneId,
|
|
42822
43202
|
VPC: {
|
|
42823
43203
|
VPCId: additionalVpc["VPCId"],
|
|
42824
43204
|
VPCRegion: additionalVpc["VPCRegion"]
|
|
42825
43205
|
}
|
|
42826
43206
|
}));
|
|
43207
|
+
changeIds.push(changeIdOf(associated));
|
|
42827
43208
|
}
|
|
42828
43209
|
await this.applyHostedZoneTags(zoneId, properties, logicalId, void 0, mask);
|
|
42829
43210
|
await this.applyQueryLoggingConfig(zoneId, properties, logicalId, void 0, mask);
|
|
@@ -42852,6 +43233,10 @@ async function createHostedZone(logicalId, resourceType, properties, mask, conte
|
|
|
42852
43233
|
}
|
|
42853
43234
|
await this.waitForAcceleratedRecoveryFeatureSettled(zoneId, logicalId, resourceType, true, true);
|
|
42854
43235
|
}
|
|
43236
|
+
if (process.env["CDKD_FULL_WAIT"] === "true") {
|
|
43237
|
+
const log = createMaskedLogSinks(this.logger, mask);
|
|
43238
|
+
for (const changeId of changeIds) await waitForRoute53ChangeInsync(this.getClient(), changeId, `hosted zone ${logicalId}`, log);
|
|
43239
|
+
}
|
|
42855
43240
|
const nameServers = response.DelegationSet?.NameServers ?? [];
|
|
42856
43241
|
this.logger.debug(`Successfully created hosted zone ${logicalId}: ${zoneId}`);
|
|
42857
43242
|
callerReferenceToken.release();
|
|
@@ -42959,10 +43344,11 @@ async function updateHostedZone(logicalId, physicalId, resourceType, properties,
|
|
|
42959
43344
|
async function deleteHostedZone(logicalId, physicalId, resourceType, context) {
|
|
42960
43345
|
this.logger.debug(`Deleting Route 53 hosted zone ${logicalId}: ${physicalId}`);
|
|
42961
43346
|
const progress = { stripped: false };
|
|
43347
|
+
let changeId;
|
|
42962
43348
|
try {
|
|
42963
43349
|
await this.deleteQueryLoggingConfigForZone(physicalId, logicalId, progress);
|
|
42964
43350
|
await this.ensureAcceleratedRecoveryDisabledForDelete(physicalId, logicalId, progress);
|
|
42965
|
-
await this.getClient().send(new DeleteHostedZoneCommand({ Id: physicalId }));
|
|
43351
|
+
changeId = changeIdOf(await this.getClient().send(new DeleteHostedZoneCommand({ Id: physicalId })));
|
|
42966
43352
|
this.logger.debug(`Successfully deleted hosted zone ${logicalId}`);
|
|
42967
43353
|
} catch (error) {
|
|
42968
43354
|
if (error instanceof Error && error.name === "NoSuchHostedZone") {
|
|
@@ -42975,6 +43361,7 @@ async function deleteHostedZone(logicalId, physicalId, resourceType, context) {
|
|
|
42975
43361
|
const failure = error instanceof ProvisioningError ? error : this.wrapDeleteError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete hosted zone ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
42976
43362
|
throw progress.stripped ? markDeleteStarted(failure) : failure;
|
|
42977
43363
|
}
|
|
43364
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeId, `hosted zone ${logicalId} deletion`, createMaskedLogSinks(this.logger, context?.maskSecrets));
|
|
42978
43365
|
}
|
|
42979
43366
|
async function ensureAcceleratedRecoveryDisabledForDelete(physicalId, logicalId, progress) {
|
|
42980
43367
|
const client = this.getClient();
|
|
@@ -43207,6 +43594,10 @@ function isRecordValuesMismatchRefusal(error) {
|
|
|
43207
43594
|
function isRecordNotFoundRefusal(error) {
|
|
43208
43595
|
return error instanceof Error && error.name === "InvalidChangeBatch" && /but it was not found/i.test(error.message);
|
|
43209
43596
|
}
|
|
43597
|
+
const groupSubject = {
|
|
43598
|
+
noun: "record set group",
|
|
43599
|
+
remedy: "set HostedZoneId explicitly"
|
|
43600
|
+
};
|
|
43210
43601
|
|
|
43211
43602
|
// src/provisioning/providers/route53/record-set.ts
|
|
43212
43603
|
async function createRecordSet(logicalId, resourceType, properties, mask, replayingState = false) {
|
|
@@ -43216,10 +43607,11 @@ async function createRecordSet(logicalId, resourceType, properties, mask, replay
|
|
|
43216
43607
|
const recordName = properties["Name"];
|
|
43217
43608
|
const recordType = properties["Type"];
|
|
43218
43609
|
const compositeId = recordSetCompositeId(hostedZoneId, recordName, recordType);
|
|
43610
|
+
let changeId;
|
|
43219
43611
|
try {
|
|
43220
43612
|
const resourceRecordSet = replayingState ? this.buildResourceRecordSet(properties) : withTemplateAliasConflicts(this.buildResourceRecordSet(properties), properties);
|
|
43221
43613
|
const comment = properties["Comment"];
|
|
43222
|
-
await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43614
|
+
const created = await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43223
43615
|
HostedZoneId: hostedZoneId,
|
|
43224
43616
|
ChangeBatch: {
|
|
43225
43617
|
...comment ? { Comment: comment } : {},
|
|
@@ -43229,11 +43621,8 @@ async function createRecordSet(logicalId, resourceType, properties, mask, replay
|
|
|
43229
43621
|
}]
|
|
43230
43622
|
}
|
|
43231
43623
|
}));
|
|
43624
|
+
changeId = changeIdOf(created);
|
|
43232
43625
|
this.logger.debug(`Successfully created record set ${logicalId}: ${compositeId}`);
|
|
43233
|
-
return {
|
|
43234
|
-
physicalId: compositeId,
|
|
43235
|
-
attributes: {}
|
|
43236
|
-
};
|
|
43237
43626
|
} catch (error) {
|
|
43238
43627
|
if (error instanceof ProvisioningError) throw error;
|
|
43239
43628
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -43241,6 +43630,15 @@ async function createRecordSet(logicalId, resourceType, properties, mask, replay
|
|
|
43241
43630
|
const wrapped = this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create record set ${logicalId}${cnameConflict ? CNAME_CONFLICT_COLLISION_NOTE : ""}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
43242
43631
|
throw cnameConflict ? markNameCollision(wrapped) : wrapped;
|
|
43243
43632
|
}
|
|
43633
|
+
try {
|
|
43634
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeId, `record set ${logicalId}`, createMaskedLogSinks(this.logger, mask));
|
|
43635
|
+
} catch (error) {
|
|
43636
|
+
throw markCreatedBeforeFailure(error, logicalId, resourceType, compositeId);
|
|
43637
|
+
}
|
|
43638
|
+
return {
|
|
43639
|
+
physicalId: compositeId,
|
|
43640
|
+
attributes: {}
|
|
43641
|
+
};
|
|
43244
43642
|
}
|
|
43245
43643
|
async function updateRecordSet(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
43246
43644
|
this.logger.debug(`Updating Route 53 record set ${logicalId}: ${physicalId}`);
|
|
@@ -43272,13 +43670,14 @@ async function updateRecordSet(logicalId, physicalId, resourceType, properties,
|
|
|
43272
43670
|
Action: "UPSERT",
|
|
43273
43671
|
ResourceRecordSet: resourceRecordSet
|
|
43274
43672
|
}];
|
|
43275
|
-
await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43673
|
+
const updated = await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43276
43674
|
HostedZoneId: hostedZoneId,
|
|
43277
43675
|
ChangeBatch: {
|
|
43278
43676
|
...comment ? { Comment: comment } : {},
|
|
43279
43677
|
Changes: changes
|
|
43280
43678
|
}
|
|
43281
43679
|
}));
|
|
43680
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeIdOf(updated), `record set ${logicalId}`, createMaskedLogSinks(this.logger, context?.maskSecrets));
|
|
43282
43681
|
this.logger.debug(`Successfully updated record set ${logicalId}`);
|
|
43283
43682
|
return {
|
|
43284
43683
|
physicalId: context?.desiredFromAwsReadback === true ? physicalId : compositeId,
|
|
@@ -43347,6 +43746,7 @@ async function deleteRecordSet(logicalId, physicalId, resourceType, properties,
|
|
|
43347
43746
|
throw error;
|
|
43348
43747
|
}
|
|
43349
43748
|
}
|
|
43749
|
+
let changeId;
|
|
43350
43750
|
try {
|
|
43351
43751
|
const resourceRecordSet = this.buildResourceRecordSet(properties);
|
|
43352
43752
|
const sendDelete = (recordSet) => this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
@@ -43358,12 +43758,12 @@ async function deleteRecordSet(logicalId, physicalId, resourceType, properties,
|
|
|
43358
43758
|
}));
|
|
43359
43759
|
const deleteRecord = async (recordSet) => {
|
|
43360
43760
|
try {
|
|
43361
|
-
await sendDelete(recordSet);
|
|
43761
|
+
changeId = changeIdOf(await sendDelete(recordSet));
|
|
43362
43762
|
} catch (error) {
|
|
43363
43763
|
if (!isZoneDisabledForMutationError(error)) throw error;
|
|
43364
43764
|
this.logger.info(`Hosted zone ${hostedZoneId} is mid AcceleratedRecovery transition (marked disabled for mutation); waiting for it to settle before retrying delete of record set ${logicalId}`);
|
|
43365
43765
|
await this.waitForAcceleratedRecoveryMutable(hostedZoneId, logicalId, resourceType);
|
|
43366
|
-
await sendDelete(recordSet);
|
|
43766
|
+
changeId = changeIdOf(await sendDelete(recordSet));
|
|
43367
43767
|
}
|
|
43368
43768
|
};
|
|
43369
43769
|
try {
|
|
@@ -43391,6 +43791,7 @@ async function deleteRecordSet(logicalId, physicalId, resourceType, properties,
|
|
|
43391
43791
|
const cause = error instanceof Error ? error : void 0;
|
|
43392
43792
|
throw this.wrapDeleteError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete record set ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
43393
43793
|
}
|
|
43794
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeId, `record set ${logicalId} deletion`, createMaskedLogSinks(this.logger, context?.maskSecrets));
|
|
43394
43795
|
}
|
|
43395
43796
|
function buildResourceRecordSet(properties) {
|
|
43396
43797
|
const name = properties["Name"];
|
|
@@ -43491,10 +43892,6 @@ function desiredGroup(properties, logicalId, physicalId) {
|
|
|
43491
43892
|
zone: zone.zone
|
|
43492
43893
|
};
|
|
43493
43894
|
}
|
|
43494
|
-
const groupSubject = {
|
|
43495
|
-
noun: "record set group",
|
|
43496
|
-
remedy: "set HostedZoneId explicitly"
|
|
43497
|
-
};
|
|
43498
43895
|
async function createRecordSetGroup(logicalId, resourceType, properties, mask, replayingState = false) {
|
|
43499
43896
|
this.logger.debug(safeMsg`Creating Route 53 record set group ${logicalId}`);
|
|
43500
43897
|
refuseCfnGroupZoneShape(this, properties, listedRecords(properties), logicalId, resourceType, void 0, replayingState);
|
|
@@ -43511,9 +43908,10 @@ async function createRecordSetGroup(logicalId, resourceType, properties, mask, r
|
|
|
43511
43908
|
attributes: {}
|
|
43512
43909
|
};
|
|
43513
43910
|
}
|
|
43911
|
+
let changeId;
|
|
43514
43912
|
try {
|
|
43515
43913
|
const comment = properties["Comment"];
|
|
43516
|
-
await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43914
|
+
const created = await this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
43517
43915
|
HostedZoneId: hostedZoneId,
|
|
43518
43916
|
ChangeBatch: {
|
|
43519
43917
|
...typeof comment === "string" && comment ? { Comment: comment } : {},
|
|
@@ -43523,11 +43921,8 @@ async function createRecordSetGroup(logicalId, resourceType, properties, mask, r
|
|
|
43523
43921
|
}))
|
|
43524
43922
|
}
|
|
43525
43923
|
}));
|
|
43924
|
+
changeId = changeIdOf(created);
|
|
43526
43925
|
this.logger.debug(safeMsg`Successfully created record set group ${logicalId}: ${compositeId}`);
|
|
43527
|
-
return {
|
|
43528
|
-
physicalId: compositeId,
|
|
43529
|
-
attributes: {}
|
|
43530
|
-
};
|
|
43531
43926
|
} catch (error) {
|
|
43532
43927
|
if (error instanceof ProvisioningError) throw error;
|
|
43533
43928
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -43535,6 +43930,15 @@ async function createRecordSetGroup(logicalId, resourceType, properties, mask, r
|
|
|
43535
43930
|
const wrapped = this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create record set group ${logicalId}${cnameConflict ? CNAME_CONFLICT_COLLISION_NOTE : ""}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
43536
43931
|
throw cnameConflict ? markNameCollision(wrapped) : wrapped;
|
|
43537
43932
|
}
|
|
43933
|
+
try {
|
|
43934
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeId, `record set group ${logicalId}`, createMaskedLogSinks(this.logger, mask));
|
|
43935
|
+
} catch (error) {
|
|
43936
|
+
throw markCreatedBeforeFailure(error, logicalId, resourceType, compositeId);
|
|
43937
|
+
}
|
|
43938
|
+
return {
|
|
43939
|
+
physicalId: compositeId,
|
|
43940
|
+
attributes: {}
|
|
43941
|
+
};
|
|
43538
43942
|
}
|
|
43539
43943
|
async function existingGroupZone(physicalId, zone, logicalId, resourceType) {
|
|
43540
43944
|
const parsed = parseRecordSetGroupCompositeId(physicalId, logicalId);
|
|
@@ -43581,6 +43985,7 @@ async function applyRecordSetGroupUpdate(logicalId, physicalId, resourceType, pr
|
|
|
43581
43985
|
let recordedZone = hostedZoneId;
|
|
43582
43986
|
if (!parseRecordSetGroupCompositeId(physicalId, logicalId) && !("refusal" in previousZone) && zoneReferenceChanged(previousZone.zone, zone)) recordedZone = await recordedZoneForSwitch(this, previousZone.zone, logicalId, resourceType, physicalId, "Record set group");
|
|
43583
43987
|
if (desiredZone !== void 0 && bareHostedZoneId(desiredZone) !== bareHostedZoneId(recordedZone)) throw groupRefusalError(`Record set group ${logicalId}: the template's hosted zone differs from the one its records are in (${recordedZone}). Moving a group to another zone replaces it: name the new zone with the key the group already uses (HostedZoneId or HostedZoneName) so cdkd plans the replacement`, logicalId, physicalId);
|
|
43988
|
+
let changeId;
|
|
43584
43989
|
try {
|
|
43585
43990
|
const desiredKeys = /* @__PURE__ */ new Set();
|
|
43586
43991
|
const changes = [];
|
|
@@ -43620,20 +44025,16 @@ async function applyRecordSetGroupUpdate(logicalId, physicalId, resourceType, pr
|
|
|
43620
44025
|
if (changes.length > 0) {
|
|
43621
44026
|
const comment = properties["Comment"];
|
|
43622
44027
|
progress.sent = true;
|
|
43623
|
-
await updateBatchClient(this).send(new ChangeResourceRecordSetsCommand({
|
|
44028
|
+
const updated = await updateBatchClient(this).send(new ChangeResourceRecordSetsCommand({
|
|
43624
44029
|
HostedZoneId: hostedZoneId,
|
|
43625
44030
|
ChangeBatch: {
|
|
43626
44031
|
...typeof comment === "string" && comment ? { Comment: comment } : {},
|
|
43627
44032
|
Changes: [...changes.filter((c) => c.Action === "DELETE"), ...changes.filter((c) => c.Action !== "DELETE")]
|
|
43628
44033
|
}
|
|
43629
44034
|
}));
|
|
44035
|
+
changeId = changeIdOf(updated);
|
|
43630
44036
|
}
|
|
43631
44037
|
this.logger.debug(safeMsg`Successfully updated record set group ${logicalId}`);
|
|
43632
|
-
return {
|
|
43633
|
-
physicalId: compositeId,
|
|
43634
|
-
wasReplaced: false,
|
|
43635
|
-
attributes: {}
|
|
43636
|
-
};
|
|
43637
44038
|
} catch (error) {
|
|
43638
44039
|
if (error instanceof ProvisioningError) throw error;
|
|
43639
44040
|
if (progress.sent) {
|
|
@@ -43643,6 +44044,12 @@ async function applyRecordSetGroupUpdate(logicalId, physicalId, resourceType, pr
|
|
|
43643
44044
|
const cause = error instanceof Error ? error : void 0;
|
|
43644
44045
|
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update record set group ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
43645
44046
|
}
|
|
44047
|
+
await waitForRoute53ChangeInsync(this.getClient(), changeId, `record set group ${logicalId}`, createMaskedLogSinks(this.logger, context?.maskSecrets));
|
|
44048
|
+
return {
|
|
44049
|
+
physicalId: compositeId,
|
|
44050
|
+
wasReplaced: false,
|
|
44051
|
+
attributes: {}
|
|
44052
|
+
};
|
|
43646
44053
|
}
|
|
43647
44054
|
async function ownEarlierWriteMayHold(logicalId, key, desired, provider) {
|
|
43648
44055
|
const lookup = getPriorAttempts(logicalId);
|
|
@@ -43699,6 +44106,7 @@ async function deleteRecordSetGroup(logicalId, physicalId, resourceType, propert
|
|
|
43699
44106
|
}
|
|
43700
44107
|
}
|
|
43701
44108
|
if (records.length === 0) return;
|
|
44109
|
+
const changeIds = [];
|
|
43702
44110
|
try {
|
|
43703
44111
|
const deletes = [];
|
|
43704
44112
|
for (const record of records) {
|
|
@@ -43722,12 +44130,12 @@ async function deleteRecordSetGroup(logicalId, physicalId, resourceType, propert
|
|
|
43722
44130
|
}));
|
|
43723
44131
|
const sendSettled = async (sets) => {
|
|
43724
44132
|
try {
|
|
43725
|
-
await send(sets);
|
|
44133
|
+
changeIds.push(changeIdOf(await send(sets)));
|
|
43726
44134
|
} catch (error) {
|
|
43727
44135
|
if (!isZoneDisabledForMutationError(error)) throw error;
|
|
43728
44136
|
this.logger.info(safeMsg`Hosted zone ${hostedZoneId} is mid AcceleratedRecovery transition (marked disabled for mutation); waiting for it to settle before retrying delete of record set group ${logicalId}`);
|
|
43729
44137
|
await this.waitForAcceleratedRecoveryMutable(hostedZoneId, logicalId, resourceType);
|
|
43730
|
-
await send(sets);
|
|
44138
|
+
changeIds.push(changeIdOf(await send(sets)));
|
|
43731
44139
|
}
|
|
43732
44140
|
};
|
|
43733
44141
|
try {
|
|
@@ -43753,6 +44161,8 @@ async function deleteRecordSetGroup(logicalId, physicalId, resourceType, propert
|
|
|
43753
44161
|
const cause = error instanceof Error ? error : void 0;
|
|
43754
44162
|
throw this.wrapDeleteError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete record set group ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
43755
44163
|
}
|
|
44164
|
+
const log = createMaskedLogSinks(this.logger, context?.maskSecrets);
|
|
44165
|
+
for (const changeId of changeIds) await waitForRoute53ChangeInsync(this.getClient(), changeId, `record set group ${logicalId} deletion`, log);
|
|
43756
44166
|
}
|
|
43757
44167
|
const HOSTED_ZONE_LOOKUP_FAILED$1 = Symbol.for("cdkd.route53.hostedZoneLookupFailed");
|
|
43758
44168
|
function isHostedZoneLookupFailure$1(err) {
|
|
@@ -43797,6 +44207,8 @@ async function readRecordSetGroup(physicalId, logicalId, properties) {
|
|
|
43797
44207
|
RecordSets: observed
|
|
43798
44208
|
};
|
|
43799
44209
|
}
|
|
44210
|
+
|
|
44211
|
+
// src/provisioning/providers/route53/record-set-group-import.ts
|
|
43800
44212
|
async function importRecordSetGroupFromTemplate(input) {
|
|
43801
44213
|
const parsed = groupRecordSets(input.properties);
|
|
43802
44214
|
if ("refusal" in parsed || parsed.records.length === 0) return null;
|
|
@@ -43987,12 +44399,13 @@ async function syncVPCAssociations(zoneId, properties, logicalId, previousProper
|
|
|
43987
44399
|
const currentVpcs = (await this.getClient().send(new GetHostedZoneCommand({ Id: zoneId }))).VPCs ?? [];
|
|
43988
44400
|
const currentVpcIds = new Set(currentVpcs.map((v) => v.VPCId));
|
|
43989
44401
|
const desiredVpcIds = new Set(desiredVpcs.map((v) => v["VPCId"]));
|
|
44402
|
+
const changeIds = [];
|
|
43990
44403
|
for (const vpc of desiredVpcs) {
|
|
43991
44404
|
const vpcId = vpc["VPCId"];
|
|
43992
44405
|
if (!currentVpcIds.has(vpcId)) {
|
|
43993
44406
|
this.logger.debug(`Associating VPC ${vpcId} with hosted zone ${zoneId}`);
|
|
43994
44407
|
marks?.markUnsettled?.("VPCs");
|
|
43995
|
-
await this.getClient().send(new AssociateVPCWithHostedZoneCommand({
|
|
44408
|
+
const associated = await this.getClient().send(new AssociateVPCWithHostedZoneCommand({
|
|
43996
44409
|
HostedZoneId: zoneId,
|
|
43997
44410
|
VPC: {
|
|
43998
44411
|
VPCId: vpcId,
|
|
@@ -44001,19 +44414,25 @@ async function syncVPCAssociations(zoneId, properties, logicalId, previousProper
|
|
|
44001
44414
|
}));
|
|
44002
44415
|
marks?.markAttempted?.("VPCs", [vpcId]);
|
|
44003
44416
|
currentVpcIds.add(vpcId);
|
|
44417
|
+
changeIds.push(changeIdOf(associated));
|
|
44004
44418
|
}
|
|
44005
44419
|
}
|
|
44006
44420
|
const previousVpcIds = new Set(declaredVpcIds(previousProperties["VPCs"]));
|
|
44007
44421
|
for (const vpc of currentVpcs) if (vpc.VPCId && previousVpcIds.has(vpc.VPCId) && !desiredVpcIds.has(vpc.VPCId)) {
|
|
44008
44422
|
this.logger.debug(`Disassociating VPC ${vpc.VPCId} from hosted zone ${zoneId}`);
|
|
44009
44423
|
marks?.markUnsettled?.("VPCs");
|
|
44010
|
-
await this.getClient().send(new DisassociateVPCFromHostedZoneCommand({
|
|
44424
|
+
const disassociated = await this.getClient().send(new DisassociateVPCFromHostedZoneCommand({
|
|
44011
44425
|
HostedZoneId: zoneId,
|
|
44012
44426
|
VPC: {
|
|
44013
44427
|
VPCId: vpc.VPCId,
|
|
44014
44428
|
VPCRegion: vpc.VPCRegion
|
|
44015
44429
|
}
|
|
44016
44430
|
}));
|
|
44431
|
+
changeIds.push(changeIdOf(disassociated));
|
|
44432
|
+
}
|
|
44433
|
+
if (process.env["CDKD_FULL_WAIT"] === "true") {
|
|
44434
|
+
const log = createMaskedLogSinks(this.logger, mask);
|
|
44435
|
+
for (const changeId of changeIds) await waitForRoute53ChangeInsync(this.getClient(), changeId, `hosted zone ${logicalId} VPC association`, log);
|
|
44017
44436
|
}
|
|
44018
44437
|
} catch (error) {
|
|
44019
44438
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -57006,6 +57425,70 @@ async function importImpl$8(input) {
|
|
|
57006
57425
|
}
|
|
57007
57426
|
}
|
|
57008
57427
|
|
|
57428
|
+
// src/provisioning/providers/efs/settle-waits.ts
|
|
57429
|
+
const EFS_SETTLE_POLL_MS = 1e3;
|
|
57430
|
+
const EFS_SETTLE_POLLS = 300;
|
|
57431
|
+
const EFS_STALE_READ_GRACE_POLLS = 5;
|
|
57432
|
+
async function pollUntilSettled(what, log, opts, read, judge, describeLast) {
|
|
57433
|
+
const pollMs = opts.pollMs ?? 1e3;
|
|
57434
|
+
const maxPolls = opts.maxPolls ?? 300;
|
|
57435
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
57436
|
+
log.debug(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`);
|
|
57437
|
+
return;
|
|
57438
|
+
}
|
|
57439
|
+
const watch = startInterruptWatch(log.mask(what));
|
|
57440
|
+
let last;
|
|
57441
|
+
try {
|
|
57442
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
57443
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
57444
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(log.mask(`The resource timeout expired while waiting for ${what} (last status: ${describeLast(last)}); the change is not confirmed`)));
|
|
57445
|
+
let verdict = "pending";
|
|
57446
|
+
try {
|
|
57447
|
+
last = await read(poll);
|
|
57448
|
+
verdict = judge(last, poll);
|
|
57449
|
+
} catch (error) {
|
|
57450
|
+
if (!(isThrottlingError(error) || isTransientServerError(error))) throw error;
|
|
57451
|
+
log.debug(`A read while waiting for ${what} was throttled or failed server-side; reading again`);
|
|
57452
|
+
}
|
|
57453
|
+
if (verdict === "settled") return;
|
|
57454
|
+
if (verdict instanceof Error) throw markNonRetryable(verdict);
|
|
57455
|
+
if (poll === maxPolls) break;
|
|
57456
|
+
await new Promise((resolve) => setTimeout(resolve, Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs()))));
|
|
57457
|
+
}
|
|
57458
|
+
} finally {
|
|
57459
|
+
watch.dispose();
|
|
57460
|
+
}
|
|
57461
|
+
throw markNonRetryable(new Error(log.mask(`Timed out waiting for ${what}: still ${describeLast(last)} after ${maxPolls * pollMs / 1e3} seconds; the change is not confirmed`)));
|
|
57462
|
+
}
|
|
57463
|
+
async function waitForAccessPointAvailable(client, logicalId, accessPointId, log, opts = {}) {
|
|
57464
|
+
await pollUntilSettled(`EFS AccessPoint ${logicalId} to read available`, log, opts, async (poll) => {
|
|
57465
|
+
try {
|
|
57466
|
+
return (await client.send(new DescribeAccessPointsCommand({ AccessPointId: accessPointId }))).AccessPoints?.[0]?.LifeCycleState ?? "absent";
|
|
57467
|
+
} catch (error) {
|
|
57468
|
+
if ((error instanceof AccessPointNotFound || error?.name === "AccessPointNotFound") && poll <= 5) return "not yet visible";
|
|
57469
|
+
throw error;
|
|
57470
|
+
}
|
|
57471
|
+
}, (state, poll) => {
|
|
57472
|
+
if (state === "available") return "settled";
|
|
57473
|
+
if (state === "creating" || state === "updating" || state === "not yet visible") return "pending";
|
|
57474
|
+
if (state === "absent" && poll <= 5) return "pending";
|
|
57475
|
+
return new Error(log.mask(`EFS AccessPoint ${logicalId} (${accessPointId}) settled as ${state}, expected available`));
|
|
57476
|
+
}, (state) => state ?? "none read");
|
|
57477
|
+
}
|
|
57478
|
+
async function waitForBackupPolicySettled(client, fileSystemId, requested, answeredStatus, log, opts = {}) {
|
|
57479
|
+
const transitional = (s) => s === "ENABLING" || s === "DISABLING";
|
|
57480
|
+
let seenSettling = !transitional(answeredStatus);
|
|
57481
|
+
await pollUntilSettled(`the BackupPolicy on EFS FileSystem ${fileSystemId} to read ${requested}`, log, opts, async () => (await client.send(new DescribeBackupPolicyCommand({ FileSystemId: fileSystemId }))).BackupPolicy?.Status, (status, poll) => {
|
|
57482
|
+
if (transitional(status)) {
|
|
57483
|
+
seenSettling = true;
|
|
57484
|
+
return "pending";
|
|
57485
|
+
}
|
|
57486
|
+
if (status === requested && (seenSettling || poll > 5)) return "settled";
|
|
57487
|
+
if (poll <= 5) return "pending";
|
|
57488
|
+
return new Error(log.mask(`The BackupPolicy on EFS FileSystem ${fileSystemId} settled as ${status ?? "absent"}, expected ${requested}`));
|
|
57489
|
+
}, (status) => status ?? "none read");
|
|
57490
|
+
}
|
|
57491
|
+
|
|
57009
57492
|
// src/provisioning/providers/efs/file-system.ts
|
|
57010
57493
|
async function updateFileSystem(logicalId, physicalId, resourceType, properties, previousProperties, log, stateBorneDesired) {
|
|
57011
57494
|
for (const key of [
|
|
@@ -57088,10 +57571,11 @@ async function applyBackupPolicy(fileSystemId, spec, log) {
|
|
|
57088
57571
|
if (spec === void 0 || spec === null) return;
|
|
57089
57572
|
const status = spec.Status;
|
|
57090
57573
|
if (status === void 0) return;
|
|
57091
|
-
await this.retryOnTransientControlPlane(() => this.getClient().send(new PutBackupPolicyCommand({
|
|
57574
|
+
const answered = await this.retryOnTransientControlPlane(() => this.getClient().send(new PutBackupPolicyCommand({
|
|
57092
57575
|
FileSystemId: fileSystemId,
|
|
57093
57576
|
BackupPolicy: { Status: status }
|
|
57094
57577
|
})), `set BackupPolicy on ${fileSystemId}`, log);
|
|
57578
|
+
await waitForBackupPolicySettled(this.getClient(), fileSystemId, status, answered?.BackupPolicy?.Status, log);
|
|
57095
57579
|
log.debug(`Set BackupPolicy Status=${log.value(status)} on EFS FileSystem ${fileSystemId}`);
|
|
57096
57580
|
}
|
|
57097
57581
|
async function applyFileSystemPolicy(fileSystemId, policy, bypass, log) {
|
|
@@ -57554,6 +58038,7 @@ async function createAccessPoint(logicalId, resourceType, properties, log) {
|
|
|
57554
58038
|
logicalId,
|
|
57555
58039
|
maxLength: 64
|
|
57556
58040
|
});
|
|
58041
|
+
let createdAccessPointId;
|
|
57557
58042
|
try {
|
|
57558
58043
|
const response = await this.createOrAdoptAccessPoint(logicalId, resourceType, log, {
|
|
57559
58044
|
ClientToken: clientToken.value,
|
|
@@ -57578,6 +58063,9 @@ async function createAccessPoint(logicalId, resourceType, properties, log) {
|
|
|
57578
58063
|
});
|
|
57579
58064
|
const accessPointId = response.AccessPointId;
|
|
57580
58065
|
const arn = response.AccessPointArn;
|
|
58066
|
+
createdAccessPointId = accessPointId;
|
|
58067
|
+
reportCreatedResource(logicalId, resourceType, accessPointId);
|
|
58068
|
+
await waitForAccessPointAvailable(this.getClient(), logicalId, accessPointId, log);
|
|
57581
58069
|
log.debug(`Successfully created EFS AccessPoint ${logicalId}: ${accessPointId}`);
|
|
57582
58070
|
clientToken.release();
|
|
57583
58071
|
return {
|
|
@@ -57590,7 +58078,9 @@ async function createAccessPoint(logicalId, resourceType, properties, log) {
|
|
|
57590
58078
|
} catch (error) {
|
|
57591
58079
|
if (error instanceof ProvisioningError) throw error;
|
|
57592
58080
|
const cause = error instanceof Error ? error : void 0;
|
|
57593
|
-
|
|
58081
|
+
const thrown = this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to create EFS AccessPoint ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
58082
|
+
if (createdAccessPointId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdAccessPointId);
|
|
58083
|
+
throw thrown;
|
|
57594
58084
|
}
|
|
57595
58085
|
}
|
|
57596
58086
|
async function createOrAdoptAccessPoint(logicalId, resourceType, log, input) {
|
|
@@ -67459,4 +67949,4 @@ var ACMCertificateProvider = class {
|
|
|
67459
67949
|
};
|
|
67460
67950
|
|
|
67461
67951
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, ConnectInstanceProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, EC2VPCEndpointProvider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, 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, LightsailAlarmProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, 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, WaitConditionProvider };
|
|
67462
|
-
//# sourceMappingURL=provider-classes-
|
|
67952
|
+
//# sourceMappingURL=provider-classes-BesMsi8i.js.map
|