@cdkd/cli 0.373.5 → 0.374.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-D2ziUucm.js → ambient-client-defaults-Bz-RIOwy.js} +3 -3
- package/dist/{ambient-client-defaults-D2ziUucm.js.map → ambient-client-defaults-Bz-RIOwy.js.map} +1 -1
- package/dist/{asg-provider-DXerSmY8.js → asg-provider-CAUjmdq9.js} +31 -14
- package/dist/{asg-provider-DXerSmY8.js.map → asg-provider-CAUjmdq9.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-Z0UesGu4.js → custom-resource-runtime-CWVAEO2K.js} +6 -6
- package/dist/{custom-resource-runtime-Z0UesGu4.js.map → custom-resource-runtime-CWVAEO2K.js.map} +1 -1
- package/dist/{db-associated-roles-BVE6a5hy.js → db-associated-roles-lNcEBB6O.js} +2 -2
- package/dist/{db-associated-roles-BVE6a5hy.js.map → db-associated-roles-lNcEBB6O.js.map} +1 -1
- package/dist/{delete-started-C-Fplb9I.js → delete-started-CJq_moaK.js} +4 -4
- package/dist/{delete-started-C-Fplb9I.js.map → delete-started-CJq_moaK.js.map} +1 -1
- package/dist/{deploy-engine-7gPM_z0r.js → deploy-engine-DQU_GZet.js} +11052 -994
- package/dist/deploy-engine-DQU_GZet.js.map +1 -0
- package/dist/{ec2-termination-protection-C3bNJVAK.js → ec2-termination-protection-CGDF52lA.js} +3 -3
- package/dist/{ec2-termination-protection-C3bNJVAK.js.map → ec2-termination-protection-CGDF52lA.js.map} +1 -1
- package/dist/{ecr-uri-Dy7a2hEI.js → ecr-uri-CJJjp-MO.js} +2 -2
- package/dist/{ecr-uri-Dy7a2hEI.js.map → ecr-uri-CJJjp-MO.js.map} +1 -1
- package/dist/{emr-cluster-provider-DpzQ2tXe.js → emr-cluster-provider-2hRUEW1E.js} +13 -11
- package/dist/emr-cluster-provider-2hRUEW1E.js.map +1 -0
- package/dist/{expected-bucket-owner-NU2Veqhr.js → expected-bucket-owner-DyFD7Dw5.js} +2 -2
- package/dist/{expected-bucket-owner-NU2Veqhr.js.map → expected-bucket-owner-DyFD7Dw5.js.map} +1 -1
- package/dist/guard-read-retry-CaBmRzwo.js +56 -0
- package/dist/guard-read-retry-CaBmRzwo.js.map +1 -0
- package/dist/{iam-role-provider-BK7LqipH.js → iam-role-provider-c32ZQo8P.js} +12 -12
- package/dist/{iam-role-provider-BK7LqipH.js.map → iam-role-provider-c32ZQo8P.js.map} +1 -1
- package/dist/{identity-read-denied-BnZ-p9kt.js → identity-read-denied-DRjvF3oA.js} +4 -4
- package/dist/{identity-read-denied-BnZ-p9kt.js.map → identity-read-denied-DRjvF3oA.js.map} +1 -1
- package/dist/{image-plan-7isjcxk3.js → image-plan-Cmjgc6iE.js} +8 -8
- package/dist/{image-plan-7isjcxk3.js.map → image-plan-Cmjgc6iE.js.map} +1 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-CC9C99az.js → logger-BlKwgEgV.js} +3 -3
- package/dist/{logger-CC9C99az.js.map → logger-BlKwgEgV.js.map} +1 -1
- package/dist/{neptune-provider-CjjpqzLj.js → neptune-provider-BiLAHYo4.js} +12 -10
- package/dist/neptune-provider-BiLAHYo4.js.map +1 -0
- package/dist/{program-Ce2id6tt.js → program-CQZs9Ljn.js} +706 -344
- package/dist/program-CQZs9Ljn.js.map +1 -0
- package/dist/{provider-classes-BesMsi8i.js → provider-classes-CNMjjxoS.js} +614 -98
- package/dist/provider-classes-CNMjjxoS.js.map +1 -0
- package/dist/{rds-provider-j7YCssyt.js → rds-provider-By5mf53G.js} +13 -13
- package/dist/{rds-provider-j7YCssyt.js.map → rds-provider-By5mf53G.js.map} +1 -1
- package/dist/{read-replica-B3tUZd7q.js → read-replica-BIjj_bfE.js} +3 -3
- package/dist/{read-replica-B3tUZd7q.js.map → read-replica-BIjj_bfE.js.map} +1 -1
- package/dist/{redacted-delete-address-DAZayV8w.js → redacted-delete-address-DGufa4wz.js} +4 -4
- package/dist/{redacted-delete-address-DAZayV8w.js.map → redacted-delete-address-DGufa4wz.js.map} +1 -1
- package/dist/{replacement-rules-bf4K_Yka.js → replacement-rules-BQ-sbuiR.js} +3 -3
- package/dist/{replacement-rules-bf4K_Yka.js.map → replacement-rules-BQ-sbuiR.js.map} +1 -1
- package/dist/{resource-deadline-D6p4x_pl.js → resource-deadline-0dfvU7D5.js} +2112 -2058
- package/dist/resource-deadline-0dfvU7D5.js.map +1 -0
- package/dist/{restore-source-guard-DRxM4nEI.js → restore-source-guard-CWbzgUdy.js} +4 -4
- package/dist/{restore-source-guard-DRxM4nEI.js.map → restore-source-guard-CWbzgUdy.js.map} +1 -1
- package/dist/retry-ClxjEovs.js +211 -0
- package/dist/retry-ClxjEovs.js.map +1 -0
- package/dist/{run-cli-B1pXbQh9.js → run-cli-DBXWGhyD.js} +2 -2
- package/dist/{run-cli-B1pXbQh9.js.map → run-cli-DBXWGhyD.js.map} +1 -1
- package/dist/{secret-reference-immutable-CGZO-iyw.js → secret-reference-immutable-CSgI6Td9.js} +10 -211
- package/dist/secret-reference-immutable-CSgI6Td9.js.map +1 -0
- package/dist/{settle-own-write-members-WuNz0klP.js → settle-own-write-members-DqlMjdQV.js} +10 -10
- package/dist/{settle-own-write-members-WuNz0klP.js.map → settle-own-write-members-DqlMjdQV.js.map} +1 -1
- package/dist/{tag-list-DiQb3Tm9.js → tag-list-B4IlIPvY.js} +4 -4
- package/dist/{tag-list-DiQb3Tm9.js.map → tag-list-B4IlIPvY.js.map} +1 -1
- package/dist/{update-removal-CBAhk3SI.js → update-removal-VyphayB2.js} +2 -2
- package/dist/{update-removal-CBAhk3SI.js.map → update-removal-VyphayB2.js.map} +1 -1
- package/dist/{version-CdLI5JxZ.js → version-fHMzKIi5.js} +2 -2
- package/dist/{version-CdLI5JxZ.js.map → version-fHMzKIi5.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-7gPM_z0r.js.map +0 -1
- package/dist/emr-cluster-provider-DpzQ2tXe.js.map +0 -1
- package/dist/neptune-provider-CjjpqzLj.js.map +0 -1
- package/dist/program-Ce2id6tt.js.map +0 -1
- package/dist/provider-classes-BesMsi8i.js.map +0 -1
- package/dist/resource-deadline-D6p4x_pl.js.map +0 -1
- package/dist/secret-reference-immutable-CGZO-iyw.js.map +0 -1
|
@@ -1,35 +1,37 @@
|
|
|
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-c32ZQo8P.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-BlKwgEgV.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 { $t 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
|
|
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, $
|
|
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 {
|
|
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-Bz-RIOwy.js";
|
|
5
|
+
import { $ as isTerminalDbWaitStatus, $t as markAuxiliaryFailure, A as importRemedyCommand, An as redactForState, At as canonicalizeRoute53QueryName, Bt as createMaskedRetryLogger, C as withoutServerErrorRetries, Ct as recordedPrincipalsRepair, D as holderRefusalMask, E as assertRegionMatch, F as quotedRemedyLogicalId, Ft as packCompositeId, G as observeThenDisableProtection, Ht as maskDeep, I as readNameProperty, J as userPoolProtectionSite, K as rdsFamilyProtectionSite, L as refusalTypeShown, Ln as recordReferenceProvenanceEntry, Lt as segmentAfterAnchor, M as isPlainImportValue, Mt as compositeIdSeparatorRefusal, N as isQuotableImportValue, Nt as compositeIdSkipResult, O as holderRefusalRun, Ot as isInterruptedWaitError, P as normalizeAwsTagsToCfn, Pt as logicalIdShown, Q as isProceedDbStatus, Qn as withoutPhysicalNameCopies, Qr as recordAttributeIdCopy, R as remedyLogicalId, Rt as stateOrphanRecordRemedy, S as setBounded, T as RESOURCE_NOT_FOUND, U as deleteWithProtectionCompensation, Ur as recoverMaskedOutput, Ut as maskerOrIdentity, V as markNotGone, Vt as isSecretDerivedValue, W as logGroupProtectionSite, Wt as withDerivedNameMasks, X as deleteAfterProtectionFlipWithFinalSnapshot, Y as PROTECTION_FLIP_RETRY_WAIT_MS, Zr as physicalNameCopiesOf, Zt as isAuxiliaryFailure, _ as ambiguousAttemptLead, _t as SECRET_DERIVED_READ_LIVE, at as ElapsedBudget, b as replayFollowedAmbiguousAttempt, bt as onlySecretDerived, dt as isAwsCliLiteral, en as markCreatedBeforeFailure, f as retractCreatedResource, fr as carriesInheritedRedaction, ft as pasteableAwsCommand, g as RecentIdSet, h as CREATION_DATE_SKEW_MARGIN_MS, j as isPlainImportJson, jt as compositeIdFormatMessage, k as VALUE_NOT_SHOWN, kt as startInterruptWatch, ln as mentionsDynamicReference, lt as UNNAMEABLE_ID_CLAUSE, m as AmbiguousCreateLatch, mi as carriesSecretMask, mn as recordedSecrecyOf, mt as renderDisableCommand, n as enclosingDeadlineRemainingMs, na as injectiveKey, nt as isTerminalDeleteFailure, oi as dynamicReferenceTokens, on as holdsMaskLeaf, ot as ElapsedBudgetRegistry, p as AMBIGUOUS_LATCH_TTL_MS, pt as protectedReplacementAdvice, qt as clearCreatedBeforeFailure, ra as injectiveKeyPrefix, rt as protectionFlipKey, t as enclosingDeadlineExpired, ta as withPasteableAwsProfile, tn as markSupersedesEarlierCreate, tt as ProtectionFlipRegistry, u as reportCreatedResource, ut as WITHHELD_AWS_COMMAND, v as createAttemptKey, vt as diffPrincipalNames, w as DriftReadRefusedError, x as replayedSendWindow, xt as readPrincipalLists, y as isInsideWindow, yt as holdsSecretDerivedEntry, z as resolveExplicitPhysicalId, zn as snapshotPassProvenance, zt as createMaskedLogSinks } from "./resource-deadline-0dfvU7D5.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-fHMzKIi5.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-DRjvF3oA.js";
|
|
8
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-CJq_moaK.js";
|
|
9
|
+
import { $ as effectiveIntelligentTieringItem, A as tagListsMatch, B as takeLifecycleWrite, C as securityGroupReadbackDelays, D as singleSecurityGroupRuleId, E as sharedIngressRuleDescriptions, F as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, G as canonicalizeBlock, H as LIFECYCLE_FILTER_PATH, I as clearLifecycleWritesOf, J as lifecycleRuleScope, K as canonicalizeItemList, L as lifecycleSettleTarget, M as markCopiesAgreed, N as sgRemovalRuleKey, O as stackIngressRuleHolder, P as sgRuleListMember, Q as effectiveAnalyticsItem, R as recordLifecycleWrite, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_RULE_PATH, V as LIFECYCLE_DEFAULT_STATUS, W as LIFECYCLE_TAG_FILTERS_PATH, X as parseCfnTimestamp, Y as lifecycleUsesFilterForm, Z as EVENTBRIDGE_CONFIG_PATH, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as configItemId, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as describeValue$1, d as authorizeDefinitelyNotApplied, dt as mergeLegacySingular, et as effectiveInventoryItem, f as canonicalizeSgInlineRuleProtocols, ft as shownLifecycleRuleId, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as coerceCfnNumber, j as withRecordedCidrSpelling, k as survivingRecordOfRuleId, l as SG_READBACK_RETRY_DELAY_MS, lt as isPlainObject$4, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as eventBridgeEnabledOf, o as sgRuleDiffKey, ot as declaresBucketObjectLock, p as canonicalizeSgRuleProtocol, q as effectiveLifecycleConfiguration, r as isResolvableSecretPrincipalList, rt as caughtErrorName, s as readSgIngressById, st as declaresNestedObjectLock, t as runDestroyForStack, tt as effectiveNotificationConfiguration, u as SG_RULE_PAGE_SIZE, ut as manualBucketDeletionClause, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as settleLifecycleRead } from "./program-CQZs9Ljn.js";
|
|
10
|
+
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-DGufa4wz.js";
|
|
11
|
+
import { $ as streamTagsMatchDeclared, $a as canonicalizeIpv6Cidr, $d as findNestedTemplateTreeDefect, $f as describeFileReadFailure, $o as reReadUntilSettled, $s as connectInstanceIdOf, $t as contributorInsightsRefusals, Ad as normalizeRecordName, An as synthesizeArn, At as tableNameReleaseWait, Bt as waitForKinesisEnableActive, Cc as s3BucketDualStackDomainName, Cl as getAccountInfo, Cn as hasCdkAutoDeleteTag, Ct as mapSSESpecification, Dn as requireContext, Dt as sseSpecificationRefusal, En as recordWithPendingChildDeletes, Et as readCapacityNumber, Fc as parseWebACLArn, Fi as reserveStackCreateToken, Fo as withoutSiblingAttachedArns, Ft as recordTagWrite, G as declaredStreamTagsMember, Go as OWN_WRITE_REREAD_DELAYS_MS, Gs as markWaitAbandoned, Gt as sendTtlWaitingOutRateLimit, H as STREAM_POLICY_KEY, Hl as toCfnInteger, Hs as withIndeterminateGuard, Ht as isTtlRateLimited, Io as withoutSiblingOwned, Is as waitForGoneAfterDelete, It as settleWrittenTags, J as reverseMapStreamPolicy, Ja as SG_RULE_ID_PATTERN, Jn as childStackTags, Jo as declaredPolicyDocument, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kl as maskedSecretSegment, Ko as SNS_DEFAULT_POLICY_ID, Kt as planVectorIndexUpdates, Li as acquireIdempotencyToken, Lo as awaitInFlightSibling, Md as wireAttributeValue, Ml as LEGACY_HANDLE_ID_PREFIX, Mo as collectManagedPolicyArnsAttachedBySiblings, Mt as clearTagWrites, Ni as earliestDefined, Nl as isLegacyHandleId, No as collectPrincipalsAttachingPolicy, On as requireDeployContext, Ot as sseSpecificationToSend, Po as isStoredExpression, Ps as waitForLambdaFunctionActive, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qa as sgProtocolKey, Qn as licensedNameHolder, Qo as policyDocumentMatchesDeclared, Qs as isSettledInstanceState, Qt as completeTableContributorInsightsBaseline, Rt as takeTagWrite, Sc as s3BucketDomainName, Sn as S3_AUTO_DELETE_OBJECTS_TAG, St as isTableName, Tc as s3BucketWebsiteUrl, Tf as rewriteTemplateAssetReferences, Ti as calculateResourceDrift, Tn as deriveChildStackName, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as replacedDeleteFailureVerdict, Ul as toFiniteNumber, Uo as KMS_DEFAULT_KEY_POLICY_ID, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Vl as isWarmThroughputDecrease, Vs as deleteSkipReason, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wl as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Wt as readTtlSpec, X as streamDeclaresTags, Xa as recordedSgRuleId, Xo as lambdaPermissionMatchesDeclared, Xt as vectorIndexesShapeDetail, Y as streamDeclaresPolicy, Ya as cfnIngressPortValue, Yo as efsPolicyMatchesDeclared, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zd as stringifyValue, Zo as memberReadFailure, Zt as CONTRIBUTOR_INSIGHTS_KEY, _n as deleteTableWithIndexBusyRetry, _r as withNestedStackContext, _s as noteLambdaFunctionDeleted, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bc as dnsEntryStrings, bn as waitForIndexesSettled, bt as hasUsableDeclaredCapacity, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, ds as classifyHandleUrl, dt as desiredBagIsInformative, ed as refuseMalformedNestedChildOutputs, ef as isAbsoluteAssetPath, en as indexDeclaresContributorInsights, eo as canonicalizeIpv4Cidr, ep as displayAssemblyPath, es as settleDeclaredMember, et as canonicalizeStaleIndexDescription, fi as siblingOwnedSgRuleIdentities, fn as resolveDynamoDbDeleteBudgetClock, fr as revertNestedChildFromJournal, fs as evaluateSignals, ft as isRefusedWarmThroughput, gd as withheldAccountClause, gl as getCurrentResourceSecrets, gn as TABLE_INDEX_NOUN, gs as mayHaveWindow, gt as warmThroughputAlreadyMatches, hd as accountArgs, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ho as secretNamedAttributeNamesOf, hs as lateLogDeliveryWindowEnd, ht as trimUnsentWarmMembers, in as reverseMapIndexContributorInsights, is as policyContentKey, it as gsiUnsendableChangeRefusal, jd as planSubscriptionAttributes, jo as collectGroupsAddedBySiblings, jt as TAGS_BASELINE_REREAD_DELAYS_MS, kn as runAccountOf, kt as tableDeleteGoneWait, ln as beginDeleteWait, lr as getNestedRevertRun, lt as coerceWarmThroughput, mi as withoutSiblingOwnedSgRules, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, ms as lambdaLogGroupName, mt as sentWarmThroughputMembers, nf as renderNestedTemplateTreeDefect, nn as planIndexContributorInsightsOps, np as renderAssemblyPathEscape, ns as verbatimEchoDriftKeys, nt as deletionProtectionRefusal, oa as getCurrentProducerRegions, on as stripIndexContributorInsights, ot as projectIndexesOnto, ou as passedParameterClassesOf, pf as decodeListingKey, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qn as childRowTags, qo as declaredMemberDocument, qt as readbackVectorIndexes, rn as readContributorInsightsSpec, rp as resolveAssemblyPath, rs as attemptedPolicyDocument, rt as desiredIndexEntriesByName, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tf as listNestedTemplateRows, tn as planContributorInsightsOp, ts as warnUnsettledMember, tt as declaresIndexList, ud as refuseMalformedResourcesForDestroy, un as compensateRemovedDeletionProtection, us as WaitConditionSignalStore, ut as declaresWarmThroughput, vn as maskedLogger, vs as wasInvoked, vt as KINESIS_DISABLE_PENDING_STATUSES, wc as s3BucketRegionalDomainName, wd as findSdkUnwiredProperties, wn as isTruthyCfnBoolean, wt as maskLeafValue, xc as s3BucketArn, xn as ECR_AUTO_DELETE_IMAGES_TAG, xt as isPlainCapacityBlock, yl as outputReferenceProvenanceOf, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, zo as getStackRecords, zt as waitForContributorInsightsSettled } from "./deploy-engine-DQU_GZet.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-B4IlIPvY.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-CWbzgUdy.js";
|
|
14
|
+
import { n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer } from "./secret-reference-immutable-CSgI6Td9.js";
|
|
15
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-DqlMjdQV.js";
|
|
16
16
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
17
|
+
import { n as withGuardReadRetry, t as rethrowIfThrottled } from "./guard-read-retry-CaBmRzwo.js";
|
|
17
18
|
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 { a as withRemovalDefaults, i as removedTemplateKeys, t as clearOnUpdateRemoval } from "./update-removal-
|
|
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-
|
|
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 {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
19
|
+
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-CGDF52lA.js";
|
|
20
|
+
import { a as withRemovalDefaults, i as removedTemplateKeys, t as clearOnUpdateRemoval } from "./update-removal-VyphayB2.js";
|
|
21
|
+
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-BQ-sbuiR.js";
|
|
22
|
+
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-2hRUEW1E.js";
|
|
23
|
+
import { c as timePhase, n as withRetry } from "./retry-ClxjEovs.js";
|
|
24
|
+
import { RDSProvider } from "./rds-provider-By5mf53G.js";
|
|
25
|
+
import { NeptuneProvider } from "./neptune-provider-BiLAHYo4.js";
|
|
26
|
+
import { ASGProvider } from "./asg-provider-CAUjmdq9.js";
|
|
27
|
+
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
26
28
|
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
29
|
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";
|
|
28
30
|
import { CreateQueueCommand, DeleteQueueCommand, GetQueueAttributesCommand, GetQueueUrlCommand, ListQueueTagsCommand, QueueDoesNotExist, SQSClient, SetQueueAttributesCommand, TagQueueCommand, UntagQueueCommand } from "@aws-sdk/client-sqs";
|
|
29
31
|
import { AuthorizationErrorException, CreateTopicCommand, DeleteTopicCommand, GetSubscriptionAttributesCommand, GetTopicAttributesCommand, InvalidParameterException, ListSubscriptionsByTopicCommand, ListTagsForResourceCommand, ListTopicsCommand, NotFoundException, SNSClient, SetSubscriptionAttributesCommand, SetTopicAttributesCommand, SubscribeCommand, TagResourceCommand, UnsubscribeCommand, UntagResourceCommand } from "@aws-sdk/client-sns";
|
|
30
32
|
import { AddPermissionCommand, CodeSigningConfigNotFoundException, CreateEventSourceMappingCommand, CreateFunctionCommand, CreateFunctionUrlConfigCommand, DeleteEventSourceMappingCommand, DeleteFunctionCodeSigningConfigCommand, DeleteFunctionCommand, DeleteFunctionConcurrencyCommand, DeleteFunctionEventInvokeConfigCommand, DeleteFunctionUrlConfigCommand, DeleteLayerVersionCommand, GetEventSourceMappingCommand, GetFunctionCodeSigningConfigCommand, GetFunctionCommand, GetFunctionConcurrencyCommand, GetFunctionConfigurationCommand, GetFunctionEventInvokeConfigCommand, GetFunctionRecursionConfigCommand, GetFunctionScalingConfigCommand, GetFunctionUrlConfigCommand, GetLayerVersionByArnCommand, GetPolicyCommand as GetPolicyCommand$1, GetRuntimeManagementConfigCommand, LambdaClient, ListEventSourceMappingsCommand, ListLayerVersionsCommand, ListTagsCommand, PublishLayerVersionCommand, PublishVersionCommand, PutFunctionCodeSigningConfigCommand, PutFunctionConcurrencyCommand, PutFunctionEventInvokeConfigCommand, PutFunctionRecursionConfigCommand, PutFunctionScalingConfigCommand, PutRuntimeManagementConfigCommand, RemovePermissionCommand, ResourceNotFoundException, TagResourceCommand as TagResourceCommand$1, UntagResourceCommand as UntagResourceCommand$1, UpdateEventSourceMappingCommand, UpdateFunctionCodeCommand, UpdateFunctionConfigurationCommand, UpdateFunctionUrlConfigCommand, waitUntilFunctionActiveV2, waitUntilFunctionUpdatedV2 } from "@aws-sdk/client-lambda";
|
|
31
33
|
import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
32
|
-
import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateNatGatewayAddressCommand, AssociateRouteTableCommand, AssociateSubnetCidrBlockCommand, AttachInternetGatewayCommand, AttachVolumeCommand, AttachVpnGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, CreateVpcEndpointCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DeleteVpcEndpointsCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcEndpointsCommand, DescribeVpcsCommand, DescribeVpnGatewaysCommand, DetachInternetGatewayCommand, DetachVolumeCommand, DetachVpnGatewayCommand, DisassociateAddressCommand, DisassociateIamInstanceProfileCommand, DisassociateNatGatewayAddressCommand, DisassociateRouteTableCommand, DisassociateSubnetCidrBlockCommand, EC2Client, GetIpamPoolAllocationsCommand, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifyInstancePlacementCommand, ModifyPrivateDnsNameOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, ModifyVpcEndpointCommand, ModifyVpcTenancyCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceIamInstanceProfileAssociationCommand, ReplaceNetworkAclAssociationCommand, ReplaceNetworkAclEntryCommand, ReplaceRouteCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, StartInstancesCommand, StopInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, UpdateSecurityGroupRuleDescriptionsEgressCommand, UpdateSecurityGroupRuleDescriptionsIngressCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
|
|
34
|
+
import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateNatGatewayAddressCommand, AssociateRouteTableCommand, AssociateSubnetCidrBlockCommand, AttachInternetGatewayCommand, AttachVolumeCommand, AttachVpnGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, CreateVpcEndpointCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DeleteVpcEndpointsCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcEndpointsCommand, DescribeVpcsCommand, DescribeVpnGatewaysCommand, DetachInternetGatewayCommand, DetachVolumeCommand, DetachVpnGatewayCommand, DisableVgwRoutePropagationCommand, DisassociateAddressCommand, DisassociateIamInstanceProfileCommand, DisassociateNatGatewayAddressCommand, DisassociateRouteTableCommand, DisassociateSubnetCidrBlockCommand, EC2Client, EnableVgwRoutePropagationCommand, GetIpamPoolAllocationsCommand, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifyInstancePlacementCommand, ModifyPrivateDnsNameOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, ModifyVpcEndpointCommand, ModifyVpcTenancyCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceIamInstanceProfileAssociationCommand, ReplaceNetworkAclAssociationCommand, ReplaceNetworkAclEntryCommand, ReplaceRouteCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, StartInstancesCommand, StopInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, UpdateSecurityGroupRuleDescriptionsEgressCommand, UpdateSecurityGroupRuleDescriptionsIngressCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
|
|
33
35
|
import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TableNotFoundException, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateKinesisStreamingDestinationCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
|
|
34
36
|
import { APIGatewayClient, CreateAuthorizerCommand, CreateDeploymentCommand, CreateResourceCommand, CreateRestApiCommand, CreateStageCommand, DeleteAuthorizerCommand, DeleteDeploymentCommand, DeleteIntegrationCommand, DeleteIntegrationResponseCommand, DeleteMethodCommand, DeleteMethodResponseCommand, DeleteResourceCommand, DeleteRestApiCommand, DeleteStageCommand, GetAccountCommand, GetAuthorizerCommand, GetAuthorizersCommand, GetDeploymentCommand, GetDeploymentsCommand, GetMethodCommand, GetResourceCommand, GetRestApiCommand, GetRestApisCommand, GetStageCommand, ImportRestApiCommand, NotFoundException as NotFoundException$1, PutIntegrationCommand, PutIntegrationResponseCommand, PutMethodCommand, PutMethodResponseCommand, PutRestApiCommand, TagResourceCommand as TagResourceCommand$3, UntagResourceCommand as UntagResourceCommand$3, UpdateAccountCommand, UpdateAuthorizerCommand, UpdateDeploymentCommand, UpdateMethodCommand, UpdateRestApiCommand, UpdateStageCommand } from "@aws-sdk/client-api-gateway";
|
|
35
37
|
import { CreateArchiveCommand, CreateEventBusCommand, DeleteArchiveCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeArchiveCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutPermissionCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateArchiveCommand, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
@@ -48,7 +50,7 @@ import { CreateNetworkConnectorCommand, DeleteNetworkConnectorCommand, GetNetwor
|
|
|
48
50
|
import * as fs from "node:fs";
|
|
49
51
|
import * as path from "node:path";
|
|
50
52
|
import { CreateRepositoryCommand, DeleteLifecyclePolicyCommand, DeleteRepositoryCommand, DeleteRepositoryPolicyCommand, DescribeRepositoriesCommand, ECRClient, GetLifecyclePolicyCommand, GetRepositoryPolicyCommand, LifecyclePolicyNotFoundException, ListTagsForResourceCommand as ListTagsForResourceCommand$9, PutImageScanningConfigurationCommand, PutImageTagMutabilityCommand, PutLifecyclePolicyCommand, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, SetRepositoryPolicyCommand, TagResourceCommand as TagResourceCommand$11, UntagResourceCommand as UntagResourceCommand$11 } from "@aws-sdk/client-ecr";
|
|
51
|
-
import { AddTagsCommand, CreateListenerCommand, CreateLoadBalancerCommand, CreateTargetGroupCommand, DeleteListenerCommand, DeleteLoadBalancerCommand, DeleteTargetGroupCommand, DeregisterTargetsCommand, DescribeCapacityReservationCommand, DescribeListenerAttributesCommand, DescribeListenersCommand, DescribeLoadBalancerAttributesCommand, DescribeLoadBalancersCommand, DescribeTagsCommand, DescribeTargetGroupAttributesCommand, DescribeTargetGroupsCommand, DescribeTargetHealthCommand, ElasticLoadBalancingV2Client, ModifyCapacityReservationCommand, ModifyIpPoolsCommand, ModifyListenerAttributesCommand, ModifyListenerCommand, ModifyLoadBalancerAttributesCommand, ModifyTargetGroupAttributesCommand, ModifyTargetGroupCommand, RegisterTargetsCommand, RemoveTagsCommand, SetIpAddressTypeCommand, SetSecurityGroupsCommand, SetSubnetsCommand, waitUntilLoadBalancerAvailable } from "@aws-sdk/client-elastic-load-balancing-v2";
|
|
53
|
+
import { AddListenerCertificatesCommand, AddTagsCommand, CreateListenerCommand, CreateLoadBalancerCommand, CreateTargetGroupCommand, DeleteListenerCommand, DeleteLoadBalancerCommand, DeleteTargetGroupCommand, DeregisterTargetsCommand, DescribeCapacityReservationCommand, DescribeListenerAttributesCommand, DescribeListenerCertificatesCommand, DescribeListenersCommand, DescribeLoadBalancerAttributesCommand, DescribeLoadBalancersCommand, DescribeTagsCommand, DescribeTargetGroupAttributesCommand, DescribeTargetGroupsCommand, DescribeTargetHealthCommand, ElasticLoadBalancingV2Client, ModifyCapacityReservationCommand, ModifyIpPoolsCommand, ModifyListenerAttributesCommand, ModifyListenerCommand, ModifyLoadBalancerAttributesCommand, ModifyTargetGroupAttributesCommand, ModifyTargetGroupCommand, RegisterTargetsCommand, RemoveListenerCertificatesCommand, RemoveTagsCommand, SetIpAddressTypeCommand, SetSecurityGroupsCommand, SetSubnetsCommand, waitUntilLoadBalancerAvailable } from "@aws-sdk/client-elastic-load-balancing-v2";
|
|
52
54
|
import { CreateAliasCommand, CreateKeyCommand, DeleteAliasCommand, DescribeKeyCommand, DisableKeyCommand, DisableKeyRotationCommand, DisabledException, EnableKeyCommand, EnableKeyRotationCommand, GetKeyPolicyCommand, GetKeyRotationStatusCommand, KMSClient, ListAliasesCommand, ListKeysCommand, ListResourceTagsCommand, NotFoundException as NotFoundException$2, PutKeyPolicyCommand, ScheduleKeyDeletionCommand, TagResourceCommand as TagResourceCommand$12, UnsupportedOperationException, UntagResourceCommand as UntagResourceCommand$12, UpdateAliasCommand, UpdateKeyDescriptionCommand } from "@aws-sdk/client-kms";
|
|
53
55
|
import { isDeepStrictEqual } from "node:util";
|
|
54
56
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$2, CreateDBProxyCommand, CreateDBProxyEndpointCommand, DBProxyEndpointNotFoundFault, DBProxyNotFoundFault, DBProxyTargetGroupNotFoundFault, DBProxyTargetNotFoundFault, DeleteDBProxyCommand, DeleteDBProxyEndpointCommand, DeregisterDBProxyTargetsCommand, DescribeDBProxiesCommand, DescribeDBProxyEndpointsCommand, DescribeDBProxyTargetGroupsCommand, DescribeDBProxyTargetsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$10, ModifyDBProxyCommand, ModifyDBProxyEndpointCommand, ModifyDBProxyTargetGroupCommand, RDSClient, RegisterDBProxyTargetsCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$2 } from "@aws-sdk/client-rds";
|
|
@@ -58,7 +60,7 @@ import { DeleteAlarmCommand, GetAlarmsCommand, LightsailClient, PutAlarmCommand
|
|
|
58
60
|
import { ConnectClient, CreateInstanceCommand, DeleteInstanceCommand, DescribeInstanceAttributeCommand as DescribeInstanceAttributeCommand$1, DescribeInstanceCommand, InvalidRequestException, ListInstanceAttributesCommand, ListInstancesCommand, ResourceNotFoundException as ResourceNotFoundException$11, TagResourceCommand as TagResourceCommand$14, UntagResourceCommand as UntagResourceCommand$14, UpdateInstanceAttributeCommand } from "@aws-sdk/client-connect";
|
|
59
61
|
import { ApiGatewayV2Client, CreateApiCommand, CreateAuthorizerCommand as CreateAuthorizerCommand$1, CreateIntegrationCommand, CreateRouteCommand as CreateRouteCommand$1, CreateStageCommand as CreateStageCommand$1, DeleteAccessLogSettingsCommand, DeleteApiCommand, DeleteAuthorizerCommand as DeleteAuthorizerCommand$1, DeleteCorsConfigurationCommand, DeleteIntegrationCommand as DeleteIntegrationCommand$1, DeleteRouteCommand as DeleteRouteCommand$1, DeleteRouteRequestParameterCommand, DeleteRouteSettingsCommand, DeleteStageCommand as DeleteStageCommand$1, GetApiCommand, GetApisCommand, GetAuthorizerCommand as GetAuthorizerCommand$1, GetAuthorizersCommand as GetAuthorizersCommand$1, GetIntegrationCommand, GetIntegrationsCommand, GetRouteCommand, GetStageCommand as GetStageCommand$1, NotFoundException as NotFoundException$3, TagResourceCommand as TagResourceCommand$15, UntagResourceCommand as UntagResourceCommand$15, UpdateApiCommand, UpdateAuthorizerCommand as UpdateAuthorizerCommand$1, UpdateIntegrationCommand, UpdateRouteCommand, UpdateStageCommand as UpdateStageCommand$1 } from "@aws-sdk/client-apigatewayv2";
|
|
60
62
|
import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$12, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$16, UntagResourceCommand as UntagResourceCommand$16, UpdateStateMachineCommand } from "@aws-sdk/client-sfn";
|
|
61
|
-
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$17, UntagResourceCommand as UntagResourceCommand$17, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
|
|
63
|
+
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$17, ThresholdType, UntagResourceCommand as UntagResourceCommand$17, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
|
|
62
64
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$3, CreateDBClusterCommand as CreateDBClusterCommand$1, CreateDBInstanceCommand as CreateDBInstanceCommand$1, CreateDBSubnetGroupCommand as CreateDBSubnetGroupCommand$1, DeleteDBClusterCommand as DeleteDBClusterCommand$1, DeleteDBInstanceCommand as DeleteDBInstanceCommand$1, DeleteDBSubnetGroupCommand as DeleteDBSubnetGroupCommand$1, DescribeDBClusterSnapshotsCommand as DescribeDBClusterSnapshotsCommand$1, DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DescribeDBSubnetGroupsCommand as DescribeDBSubnetGroupsCommand$1, DescribeGlobalClustersCommand as DescribeGlobalClustersCommand$1, DocDBClient, ListTagsForResourceCommand as ListTagsForResourceCommand$13, ModifyDBClusterCommand as ModifyDBClusterCommand$1, ModifyDBInstanceCommand as ModifyDBInstanceCommand$1, ModifyDBSubnetGroupCommand as ModifyDBSubnetGroupCommand$1, RemoveFromGlobalClusterCommand as RemoveFromGlobalClusterCommand$1, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$3, RestoreDBClusterFromSnapshotCommand as RestoreDBClusterFromSnapshotCommand$1, RestoreDBClusterToPointInTimeCommand as RestoreDBClusterToPointInTimeCommand$1 } from "@aws-sdk/client-docdb";
|
|
63
65
|
import { AppConfigClient, CreateEnvironmentCommand, DeleteEnvironmentCommand, GetEnvironmentCommand, TagResourceCommand as TagResourceCommand$18, UntagResourceCommand as UntagResourceCommand$18, UpdateEnvironmentCommand } from "@aws-sdk/client-appconfig";
|
|
64
66
|
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, TagResourceCommand as TagResourceCommand$19, UntagResourceCommand as UntagResourceCommand$19, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
@@ -5428,11 +5430,12 @@ async function listOwnedBucket(bucketName) {
|
|
|
5428
5430
|
try {
|
|
5429
5431
|
let token;
|
|
5430
5432
|
for (let page = 0; page < 100; page++) {
|
|
5431
|
-
const
|
|
5433
|
+
const command = new ListBucketsCommand({
|
|
5432
5434
|
Prefix: bucketName,
|
|
5433
5435
|
MaxBuckets: 1e3,
|
|
5434
5436
|
...token !== void 0 ? { ContinuationToken: token } : {}
|
|
5435
|
-
})
|
|
5437
|
+
});
|
|
5438
|
+
const out = await withGuardReadRetry(() => this.s3Client.send(command), "AWS::S3::Bucket");
|
|
5436
5439
|
const found = (out.Buckets ?? []).find((b) => b.Name === bucketName);
|
|
5437
5440
|
if (found !== void 0) return { bucket: found };
|
|
5438
5441
|
token = out.ContinuationToken || void 0;
|
|
@@ -5480,7 +5483,7 @@ async function probeBucketRegion(bucketName) {
|
|
|
5480
5483
|
try {
|
|
5481
5484
|
return {
|
|
5482
5485
|
kind: "region",
|
|
5483
|
-
region: await this.resolveOwnedBucketRegion(bucketName)
|
|
5486
|
+
region: await withGuardReadRetry(() => this.resolveOwnedBucketRegion(bucketName), "AWS::S3::Bucket")
|
|
5484
5487
|
};
|
|
5485
5488
|
} catch (probeError) {
|
|
5486
5489
|
if (isNoSuchBucketError(probeError)) return { kind: "absent" };
|
|
@@ -10657,6 +10660,7 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
|
|
|
10657
10660
|
const clientRegion = await this.lambdaClient.config.region();
|
|
10658
10661
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
10659
10662
|
this.logFunctionGone(logicalId, physicalId, context);
|
|
10663
|
+
await carryLateLogWindow(this, physicalId, properties);
|
|
10660
10664
|
return;
|
|
10661
10665
|
}
|
|
10662
10666
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -10664,6 +10668,7 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
|
|
|
10664
10668
|
const failure = error instanceof Error && error.name.includes("NotFound") ? markNotGone(wrapped) : wrapped;
|
|
10665
10669
|
throw stripped ? markDeleteStarted(failure) : failure;
|
|
10666
10670
|
}
|
|
10671
|
+
await carryLateLogWindow(this, physicalId, properties);
|
|
10667
10672
|
if (hasVpcConfig) await this.cleanupLambdaEnis(physicalId, Date.now() + enclosingDeadlineRemainingMs() - this.eniDeadlineMarginMs);
|
|
10668
10673
|
if (properties?.["CapacityProviderConfig"] !== void 0) await this.waitForFunctionGone({
|
|
10669
10674
|
logicalId,
|
|
@@ -10671,6 +10676,16 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
|
|
|
10671
10676
|
functionName: physicalId
|
|
10672
10677
|
}, createMaskedLogSinks(this.logger, context?.maskSecrets));
|
|
10673
10678
|
}
|
|
10679
|
+
async function carryLateLogWindow(provider, functionName, properties) {
|
|
10680
|
+
try {
|
|
10681
|
+
const region = await provider.lambdaClient.config.region();
|
|
10682
|
+
if (!wasInvoked(region, functionName)) return;
|
|
10683
|
+
const { accountId } = await getAccountInfo(region);
|
|
10684
|
+
const environment = properties?.["Environment"];
|
|
10685
|
+
const variables = environment !== null && typeof environment === "object" && !Array.isArray(environment) ? environment["Variables"] : void 0;
|
|
10686
|
+
noteLambdaFunctionDeleted(accountId, region, functionName, lambdaLogGroupName(functionName, properties), variables !== null && typeof variables === "object" && !Array.isArray(variables) ? variables : void 0);
|
|
10687
|
+
} catch {}
|
|
10688
|
+
}
|
|
10674
10689
|
async function waitForFunctionGone(target, log) {
|
|
10675
10690
|
const { logicalId, resourceType, functionName } = target;
|
|
10676
10691
|
const deadline = Date.now() + Math.min(this.functionUpdateMaxWaitSeconds * 1e3, enclosingDeadlineRemainingMs() - this.latestPublishedDeadlineMarginMs);
|
|
@@ -10967,7 +10982,8 @@ async function unsettledInTransition$6(physicalId, _logicalId, _resourceType, na
|
|
|
10967
10982
|
const cfg = (await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: physicalId }))).Configuration;
|
|
10968
10983
|
if (cfg?.State !== "Pending" && cfg?.LastUpdateStatus !== "InProgress") return /* @__PURE__ */ new Set();
|
|
10969
10984
|
return new Set([...names].filter((name) => !SEPARATELY_APPLIED_KEYS.has(name)));
|
|
10970
|
-
} catch {
|
|
10985
|
+
} catch (error) {
|
|
10986
|
+
rethrowIfThrottled(error);
|
|
10971
10987
|
return names;
|
|
10972
10988
|
}
|
|
10973
10989
|
}
|
|
@@ -15105,7 +15121,8 @@ async function unsettledInTransition$5(physicalId, _logicalId, _resourceType, na
|
|
|
15105
15121
|
if (((await this.dynamoDBClient.send(new DescribeKinesisStreamingDestinationCommand({ TableName: physicalId }))).KinesisDataStreamDestinations ?? []).some((d) => d.DestinationStatus === "ENABLING" || d.DestinationStatus === "DISABLING" || d.DestinationStatus === "UPDATING")) moving.add("KinesisStreamSpecification");
|
|
15106
15122
|
}
|
|
15107
15123
|
return moving;
|
|
15108
|
-
} catch {
|
|
15124
|
+
} catch (error) {
|
|
15125
|
+
rethrowIfThrottled(error);
|
|
15109
15126
|
return names;
|
|
15110
15127
|
}
|
|
15111
15128
|
}
|
|
@@ -17275,10 +17292,44 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
|
|
|
17275
17292
|
const clientRegion = await this.logsClient.config.region();
|
|
17276
17293
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
17277
17294
|
this.logGoneOnDelete(logicalId, physicalId, context);
|
|
17295
|
+
await this.deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context);
|
|
17278
17296
|
return;
|
|
17279
17297
|
}
|
|
17280
17298
|
throw this.wrapDeleteError(logicalId, physicalId, resourceType, context, error);
|
|
17281
17299
|
}
|
|
17300
|
+
await this.deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context);
|
|
17301
|
+
}
|
|
17302
|
+
async function deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context) {
|
|
17303
|
+
let end;
|
|
17304
|
+
try {
|
|
17305
|
+
const region = await this.logsClient.config.region();
|
|
17306
|
+
if (!mayHaveWindow(region, physicalId)) return;
|
|
17307
|
+
const { accountId } = await getAccountInfo(region);
|
|
17308
|
+
end = lateLogDeliveryWindowEnd(accountId, region, physicalId);
|
|
17309
|
+
} catch {
|
|
17310
|
+
return;
|
|
17311
|
+
}
|
|
17312
|
+
if (end === void 0) return;
|
|
17313
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
17314
|
+
for (let now = Date.now(); now < end; now = Date.now()) {
|
|
17315
|
+
await this.sleep(Math.min(this.lateLogPollMs, end - now));
|
|
17316
|
+
try {
|
|
17317
|
+
const back = (await this.logsClient.send(new DescribeLogGroupsCommand({ logGroupNamePrefix: physicalId }))).logGroups?.find((g) => g.logGroupName === physicalId);
|
|
17318
|
+
if (back === void 0) continue;
|
|
17319
|
+
if (back.retentionInDays !== void 0 || back.kmsKeyId !== void 0) {
|
|
17320
|
+
this.logger.warn(mask(safeMsg`Log group ${physicalId} was created again with a retention or KMS key, so it is not Lambda's late log delivery; left in place`));
|
|
17321
|
+
return;
|
|
17322
|
+
}
|
|
17323
|
+
await this.logsClient.send(new DeleteLogGroupCommand({ logGroupName: physicalId }));
|
|
17324
|
+
this.logger.debug(safeMsg`Log group ${logicalId} came back with its Lambda function's late logs; deleted it again`);
|
|
17325
|
+
} catch (error) {
|
|
17326
|
+
if (error instanceof ResourceNotFoundException$5) continue;
|
|
17327
|
+
const failure = describeAwsFailure(error);
|
|
17328
|
+
this.logger.debug(mask(safeMsg`Late-log watch of log group ${physicalId}: ${failure.detail}`));
|
|
17329
|
+
this.logger.warn(mask(safeMsg`Log group ${physicalId} may have come back with its Lambda function's late logs: ${failure.summary}`));
|
|
17330
|
+
return;
|
|
17331
|
+
}
|
|
17332
|
+
}
|
|
17282
17333
|
}
|
|
17283
17334
|
function wrapDeleteError$5(logicalId, physicalId, resourceType, context, error) {
|
|
17284
17335
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -17481,6 +17532,8 @@ var LogsLogGroupProvider = class {
|
|
|
17481
17532
|
logger = getLogger().child("LogsLogGroupProvider");
|
|
17482
17533
|
ownWriteRereadDelaysMs = OWN_WRITE_REREAD_DELAYS_MS;
|
|
17483
17534
|
protectionFlips = new ProtectionFlipRegistry();
|
|
17535
|
+
lateLogPollMs = 2e3;
|
|
17536
|
+
sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
17484
17537
|
handledProperties = /* @__PURE__ */ new Map([["AWS::Logs::LogGroup", /* @__PURE__ */ new Set([
|
|
17485
17538
|
"LogGroupName",
|
|
17486
17539
|
"KmsKeyId",
|
|
@@ -17528,6 +17581,9 @@ var LogsLogGroupProvider = class {
|
|
|
17528
17581
|
logGoneOnDelete(logicalId, physicalId, context) {
|
|
17529
17582
|
return logGoneOnDelete.call(this, logicalId, physicalId, context);
|
|
17530
17583
|
}
|
|
17584
|
+
deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context) {
|
|
17585
|
+
return deleteAgainIfLateLambdaLogsReturn.call(this, logicalId, physicalId, context);
|
|
17586
|
+
}
|
|
17531
17587
|
wrapDeleteError(logicalId, physicalId, resourceType, context, error) {
|
|
17532
17588
|
return wrapDeleteError$5.call(this, logicalId, physicalId, resourceType, context, error);
|
|
17533
17589
|
}
|
|
@@ -26779,13 +26835,59 @@ async function createSubnetNetworkAclAssociation(logicalId, resourceType, proper
|
|
|
26779
26835
|
throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
26780
26836
|
}
|
|
26781
26837
|
}
|
|
26838
|
+
async function deleteSubnetNetworkAclAssociation(logicalId, physicalId, resourceType, properties, context) {
|
|
26839
|
+
this.logger.debug(safeMsg`Deleting SubnetNetworkAclAssociation ${logicalId}: ${physicalId}`);
|
|
26840
|
+
const gone = async () => {
|
|
26841
|
+
const clientRegion = await this.ec2Client.config.region();
|
|
26842
|
+
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
26843
|
+
this.logger.debug(safeMsg`SubnetNetworkAclAssociation ${physicalId} does not exist, skipping deletion`);
|
|
26844
|
+
};
|
|
26845
|
+
try {
|
|
26846
|
+
let acl = ((await this.ec2Client.send(new DescribeNetworkAclsCommand({ Filters: [{
|
|
26847
|
+
Name: "association.association-id",
|
|
26848
|
+
Values: [physicalId]
|
|
26849
|
+
}] }))).NetworkAcls ?? []).find((nacl) => (nacl.Associations ?? []).some((assoc) => assoc.NetworkAclAssociationId === physicalId));
|
|
26850
|
+
if (acl?.IsDefault) {
|
|
26851
|
+
this.logger.debug(safeMsg`SubnetNetworkAclAssociation ${logicalId} is already on the default network ACL`);
|
|
26852
|
+
return;
|
|
26853
|
+
}
|
|
26854
|
+
const recordedAclId = properties?.["NetworkAclId"];
|
|
26855
|
+
if (!acl && typeof recordedAclId === "string" && recordedAclId !== "") acl = (await this.ec2Client.send(new DescribeNetworkAclsCommand({ NetworkAclIds: [recordedAclId] }))).NetworkAcls?.[0];
|
|
26856
|
+
if (!acl?.VpcId) {
|
|
26857
|
+
await gone();
|
|
26858
|
+
return;
|
|
26859
|
+
}
|
|
26860
|
+
const defaultAclId = (await this.ec2Client.send(new DescribeNetworkAclsCommand({ Filters: [{
|
|
26861
|
+
Name: "vpc-id",
|
|
26862
|
+
Values: [acl.VpcId]
|
|
26863
|
+
}, {
|
|
26864
|
+
Name: "default",
|
|
26865
|
+
Values: ["true"]
|
|
26866
|
+
}] }))).NetworkAcls?.[0]?.NetworkAclId;
|
|
26867
|
+
if (!defaultAclId) throw new ProvisioningError(`Failed to delete SubnetNetworkAclAssociation ${logicalId}: VPC ${acl.VpcId} has no default network ACL to return the subnet to`, resourceType, logicalId, physicalId);
|
|
26868
|
+
await this.ec2Client.send(new ReplaceNetworkAclAssociationCommand({
|
|
26869
|
+
AssociationId: physicalId,
|
|
26870
|
+
NetworkAclId: defaultAclId
|
|
26871
|
+
}));
|
|
26872
|
+
this.logger.debug(safeMsg`Successfully deleted SubnetNetworkAclAssociation ${logicalId} (subnet back on ${defaultAclId})`);
|
|
26873
|
+
} catch (error) {
|
|
26874
|
+
if (error instanceof ProvisioningError) throw error;
|
|
26875
|
+
if (this.isNotFoundError(error)) {
|
|
26876
|
+
await gone();
|
|
26877
|
+
return;
|
|
26878
|
+
}
|
|
26879
|
+
const cause = error instanceof Error ? error : void 0;
|
|
26880
|
+
throw this.wrapDeleteError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete SubnetNetworkAclAssociation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
26881
|
+
}
|
|
26882
|
+
}
|
|
26782
26883
|
const networkAclMethods = {
|
|
26783
26884
|
createNetworkAcl,
|
|
26784
26885
|
deleteNetworkAcl,
|
|
26785
26886
|
createNetworkAclEntry,
|
|
26786
26887
|
deleteNetworkAclEntry,
|
|
26787
26888
|
updateNetworkAclEntry,
|
|
26788
|
-
createSubnetNetworkAclAssociation
|
|
26889
|
+
createSubnetNetworkAclAssociation,
|
|
26890
|
+
deleteSubnetNetworkAclAssociation
|
|
26789
26891
|
};
|
|
26790
26892
|
|
|
26791
26893
|
// src/provisioning/providers/ec2/tags-errors.ts
|
|
@@ -27173,7 +27275,8 @@ async function unsettledInTransition$4(physicalId, _logicalId, resourceType, nam
|
|
|
27173
27275
|
try {
|
|
27174
27276
|
const subnet = (await this.ec2Client.send(new DescribeSubnetsCommand({ SubnetIds: [physicalId] }))).Subnets?.[0];
|
|
27175
27277
|
return !subnet || this.subnetIpv6InTransition(subnet) ? /* @__PURE__ */ new Set(["Ipv6CidrBlock"]) : /* @__PURE__ */ new Set();
|
|
27176
|
-
} catch {
|
|
27278
|
+
} catch (error) {
|
|
27279
|
+
rethrowIfThrottled(error);
|
|
27177
27280
|
return /* @__PURE__ */ new Set(["Ipv6CidrBlock"]);
|
|
27178
27281
|
}
|
|
27179
27282
|
}
|
|
@@ -27713,8 +27816,8 @@ async function readSgIngressByIdentity(groupId, flat, properties, context) {
|
|
|
27713
27816
|
const matches = flat.filter((r) => identity(r) === wanted);
|
|
27714
27817
|
if (matches.length !== 1) return void 0;
|
|
27715
27818
|
const match = matches[0];
|
|
27716
|
-
const
|
|
27717
|
-
if (
|
|
27819
|
+
const sharers = sharedIngressRuleDescriptions(Object.entries(context?.siblings ?? {}), groupId, properties, recordedId);
|
|
27820
|
+
if (sharers === void 0) return void 0;
|
|
27718
27821
|
let owned;
|
|
27719
27822
|
try {
|
|
27720
27823
|
owned = (await this.ec2Client.send(new DescribeSecurityGroupRulesCommand({ SecurityGroupRuleIds: [recordedId] }))).SecurityGroupRules?.find((r) => r.SecurityGroupRuleId === recordedId);
|
|
@@ -27724,11 +27827,17 @@ async function readSgIngressByIdentity(groupId, flat, properties, context) {
|
|
|
27724
27827
|
return;
|
|
27725
27828
|
}
|
|
27726
27829
|
if (owned === void 0 || owned.IsEgress === true || owned.GroupId !== groupId || !securityGroupRuleMatchesCfnIngress(owned, properties) || descriptionKey(owned.Description) !== descriptionKey(match["Description"])) return;
|
|
27727
|
-
|
|
27830
|
+
const out = {
|
|
27728
27831
|
...withRecordedCidrSpelling(match, properties),
|
|
27729
27832
|
...properties["FromPort"] != null && { FromPort: properties["FromPort"] },
|
|
27730
27833
|
...properties["ToPort"] != null && { ToPort: properties["ToPort"] }
|
|
27731
27834
|
};
|
|
27835
|
+
const live = descriptionKey(match["Description"]);
|
|
27836
|
+
if (sharers.some((d) => descriptionKey(d) === live)) {
|
|
27837
|
+
delete out["Description"];
|
|
27838
|
+
if (properties["Description"] != null) out["Description"] = properties["Description"];
|
|
27839
|
+
}
|
|
27840
|
+
return out;
|
|
27732
27841
|
}
|
|
27733
27842
|
async function readNetworkAclEntryCurrentState(physicalId) {
|
|
27734
27843
|
const parts = physicalId.split("|");
|
|
@@ -28261,9 +28370,7 @@ var EC2Provider = class {
|
|
|
28261
28370
|
case "AWS::EC2::Instance": return this.deleteInstance(logicalId, physicalId, resourceType, context, properties);
|
|
28262
28371
|
case "AWS::EC2::NetworkAcl": return this.deleteNetworkAcl(logicalId, physicalId, resourceType, context);
|
|
28263
28372
|
case "AWS::EC2::NetworkAclEntry": return this.deleteNetworkAclEntry(logicalId, physicalId, resourceType, context);
|
|
28264
|
-
case "AWS::EC2::SubnetNetworkAclAssociation":
|
|
28265
|
-
this.logger.debug(`SubnetNetworkAclAssociation ${logicalId} delete is a no-op`);
|
|
28266
|
-
return;
|
|
28373
|
+
case "AWS::EC2::SubnetNetworkAclAssociation": return this.deleteSubnetNetworkAclAssociation(logicalId, physicalId, resourceType, properties, context);
|
|
28267
28374
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
28268
28375
|
}
|
|
28269
28376
|
}
|
|
@@ -29578,7 +29685,7 @@ async function updateRestApi(logicalId, physicalId, resourceType, properties, pr
|
|
|
29578
29685
|
if (named.length > 0 && named.every((key) => noEchoOnlyChanged.has(key))) {
|
|
29579
29686
|
bodyChanged = false;
|
|
29580
29687
|
for (const key of named) keptNoEchoOnly?.(key);
|
|
29581
|
-
log.warn(safeMsg`${logicalId} (${resourceType}): its Body embeds a NoEcho parameter value that cdkd could not compare with the value it last sent, so the OpenAPI definition is not put again, and a change to that value alone is NOT applied by this deploy. cdkd compares it once a deploy can call kms:GenerateMac on the key
|
|
29688
|
+
log.warn(safeMsg`${logicalId} (${resourceType}): its Body embeds a NoEcho parameter value that cdkd could not compare with the value it last sent, so the OpenAPI definition is not put again, and a change to that value alone is NOT applied by this deploy. cdkd compares it once a deploy can create, or call kms:GenerateMac on, the key alias/cdkd-noecho-mac, the Body reads nothing but NoEcho parameters and literals, and a put has recorded the value's MAC. To apply a change now, change a part of the Body that is not masked (its description or a version field, for example) in the same deploy.`);
|
|
29582
29689
|
}
|
|
29583
29690
|
}
|
|
29584
29691
|
if (bodyChanged) {
|
|
@@ -33282,22 +33389,34 @@ function orphanSearchHint(properties, maskSecrets) {
|
|
|
33282
33389
|
if (comment !== "") parts.push(`comment ${JSON.stringify(comment)}`);
|
|
33283
33390
|
return parts.length > 0 ? parts.join(" and ") : "its creation time (the orphan is the newest distribution in this account)";
|
|
33284
33391
|
}
|
|
33392
|
+
const UPDATE_PRECONDITION_ATTEMPTS = 3;
|
|
33393
|
+
function isPreconditionFailed(error) {
|
|
33394
|
+
return error instanceof Error && error.name === "PreconditionFailed";
|
|
33395
|
+
}
|
|
33285
33396
|
async function update$26(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
33286
33397
|
this.logger.debug(`Updating CloudFront Distribution ${logicalId}: ${physicalId}`);
|
|
33287
33398
|
assertRegionMatch(context?.expectedRegion ? await this.cloudFrontClient.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update", "global");
|
|
33288
33399
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
33289
33400
|
try {
|
|
33290
|
-
const getConfigResponse = await this.cloudFrontClient.send(new GetDistributionConfigCommand({ Id: physicalId }));
|
|
33291
|
-
const etag = getConfigResponse.ETag;
|
|
33292
|
-
const currentConfig = getConfigResponse.DistributionConfig;
|
|
33293
33401
|
const newDistributionConfig = properties["DistributionConfig"] ?? {};
|
|
33294
33402
|
const previousDistributionConfig = previousProperties["DistributionConfig"] ?? {};
|
|
33295
|
-
|
|
33296
|
-
|
|
33297
|
-
|
|
33298
|
-
|
|
33299
|
-
|
|
33300
|
-
|
|
33403
|
+
for (let attempt = 1;; attempt++) {
|
|
33404
|
+
const getConfigResponse = await this.cloudFrontClient.send(new GetDistributionConfigCommand({ Id: physicalId }));
|
|
33405
|
+
const etag = getConfigResponse.ETag;
|
|
33406
|
+
const currentConfig = getConfigResponse.DistributionConfig;
|
|
33407
|
+
const sdkConfig = this.mergeUpdateConfig(currentConfig, newDistributionConfig, previousDistributionConfig, logicalId, context?.replayingState === true, context?.restoredObservedProperties);
|
|
33408
|
+
try {
|
|
33409
|
+
await this.cloudFrontClient.send(new UpdateDistributionCommand({
|
|
33410
|
+
Id: physicalId,
|
|
33411
|
+
IfMatch: etag,
|
|
33412
|
+
DistributionConfig: sdkConfig
|
|
33413
|
+
}));
|
|
33414
|
+
break;
|
|
33415
|
+
} catch (error) {
|
|
33416
|
+
if (!isPreconditionFailed(error) || attempt >= UPDATE_PRECONDITION_ATTEMPTS) throw error;
|
|
33417
|
+
this.logger.debug(safeMsg`CloudFront Distribution ${logicalId}: UpdateDistribution was refused with PreconditionFailed (the ETag changed after it was read); re-reading the config and retrying (attempt ${attempt + 1}/${UPDATE_PRECONDITION_ATTEMPTS})`);
|
|
33418
|
+
}
|
|
33419
|
+
}
|
|
33301
33420
|
const getResponse = await this.cloudFrontClient.send(new GetDistributionCommand({ Id: physicalId }));
|
|
33302
33421
|
const domainName = getResponse.Distribution?.DomainName;
|
|
33303
33422
|
const arn = getResponse.Distribution?.ARN;
|
|
@@ -35636,7 +35755,7 @@ async function update$24(logicalId, physicalId, resourceType, properties, previo
|
|
|
35636
35755
|
[properties["Cluster"], recordedCluster],
|
|
35637
35756
|
[previousProperties["Cluster"], recordedCluster],
|
|
35638
35757
|
[properties["Cluster"], clusterNameOfRef(properties["Cluster"])]
|
|
35639
|
-
]), context?.desiredFromAwsReadback === true, context?.replayingState === true);
|
|
35758
|
+
]), context?.desiredFromAwsReadback === true, context?.replayingState === true, context?.restoredObservedProperties);
|
|
35640
35759
|
}
|
|
35641
35760
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
35642
35761
|
}
|
|
@@ -36365,7 +36484,7 @@ async function settleService(logicalId, serviceRef, cluster, log, requested, ski
|
|
|
36365
36484
|
}
|
|
36366
36485
|
|
|
36367
36486
|
// src/provisioning/providers/ecs/service-update.ts
|
|
36368
|
-
async function updateService$1(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState) {
|
|
36487
|
+
async function updateService$1(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties) {
|
|
36369
36488
|
log.debug(`Updating ECS service ${logicalId}: ${physicalId}`);
|
|
36370
36489
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
36371
36490
|
const client = this.getClient();
|
|
@@ -36408,7 +36527,11 @@ async function updateService$1(logicalId, physicalId, resourceType, properties,
|
|
|
36408
36527
|
const monitoringInput = JSON.stringify(previousProperties["Monitoring"] ?? null) !== JSON.stringify(properties["Monitoring"] ?? null) ? clearOnUpdateRemoval(this.convertMonitoringConfiguration(properties["Monitoring"]), previousProperties["Monitoring"], { metricConfigurations: [] }) : void 0;
|
|
36409
36528
|
const gatewayConnectorsInput = gatewayConnectorsGateKey(previousProperties["GatewayConnectors"]) !== gatewayConnectorsGateKey(properties["GatewayConnectors"]) ? this.convertGatewayConnectors(properties["GatewayConnectors"]) : void 0;
|
|
36410
36529
|
const forceNewDeploymentInput = this.resolveForceNewDeployment(properties, previousProperties, log);
|
|
36411
|
-
const deploymentConfigurationInput = this.resolveDeploymentConfiguration(properties, previousProperties
|
|
36530
|
+
const deploymentConfigurationInput = this.resolveDeploymentConfiguration(properties, previousProperties, replayingState ? {
|
|
36531
|
+
restoredObservedProperties,
|
|
36532
|
+
log,
|
|
36533
|
+
logicalId
|
|
36534
|
+
} : void 0);
|
|
36412
36535
|
try {
|
|
36413
36536
|
const service = (await client.send(new UpdateServiceCommand({
|
|
36414
36537
|
cluster: properties["Cluster"],
|
|
@@ -36965,9 +37088,10 @@ function convertDeploymentConfiguration(config) {
|
|
|
36965
37088
|
if (!config) return void 0;
|
|
36966
37089
|
return pascalToCamelCaseKeys(config, DEPLOYMENT_CONFIG_PRESERVE_KEYS);
|
|
36967
37090
|
}
|
|
36968
|
-
function resolveDeploymentConfiguration(properties, previousProperties) {
|
|
37091
|
+
function resolveDeploymentConfiguration(properties, previousProperties, replay) {
|
|
36969
37092
|
const desired = this.convertDeploymentConfiguration(properties["DeploymentConfiguration"]);
|
|
36970
37093
|
const desiredBreaker = desired?.deploymentCircuitBreaker;
|
|
37094
|
+
if (desired && desiredBreaker === void 0 && replay) return restoreRolledBackBreaker(desired, previousProperties, replay);
|
|
36971
37095
|
if (!desired || !isPlainCfnObject(desiredBreaker)) return desired;
|
|
36972
37096
|
const previousDeploymentConfiguration = previousProperties["DeploymentConfiguration"];
|
|
36973
37097
|
const previousBreaker = isPlainCfnObject(previousDeploymentConfiguration) ? previousDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
|
|
@@ -36984,6 +37108,36 @@ function resolveDeploymentConfiguration(properties, previousProperties) {
|
|
|
36984
37108
|
}
|
|
36985
37109
|
};
|
|
36986
37110
|
}
|
|
37111
|
+
const THRESHOLD_TYPES = new Set(Object.values(ThresholdType));
|
|
37112
|
+
function restoreRolledBackBreaker(desired, previousProperties, replay) {
|
|
37113
|
+
const previousDeploymentConfiguration = previousProperties["DeploymentConfiguration"];
|
|
37114
|
+
const previousBreaker = isPlainCfnObject(previousDeploymentConfiguration) ? previousDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
|
|
37115
|
+
if (previousBreaker === void 0 || previousBreaker === null) return desired;
|
|
37116
|
+
const observedDeploymentConfiguration = replay.restoredObservedProperties?.["DeploymentConfiguration"];
|
|
37117
|
+
const observed = isPlainCfnObject(observedDeploymentConfiguration) ? observedDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
|
|
37118
|
+
if (!isPlainCfnObject(observed) || typeof observed["Enable"] !== "boolean" || typeof observed["Rollback"] !== "boolean") {
|
|
37119
|
+
replay.log.warn(`ECS service ${replay.logicalId}: the restored template declares no DeploymentCircuitBreaker and cdkd recorded no usable pre-deploy reading of it, so the circuit breaker the failed deploy applied stays. Declare DeploymentCircuitBreaker (CDK: circuitBreaker) to set it.`);
|
|
37120
|
+
return desired;
|
|
37121
|
+
}
|
|
37122
|
+
const observedReset = observed["ResetOnHealthyTask"];
|
|
37123
|
+
const threshold = observed["ThresholdConfiguration"];
|
|
37124
|
+
const observedThreshold = isPlainCfnObject(threshold) && THRESHOLD_TYPES.has(threshold["Type"]) && typeof threshold["Value"] === "number" ? {
|
|
37125
|
+
type: threshold["Type"],
|
|
37126
|
+
value: threshold["Value"]
|
|
37127
|
+
} : void 0;
|
|
37128
|
+
const failedBreaker = isPlainCfnObject(previousBreaker) ? previousBreaker : {};
|
|
37129
|
+
const resetOnHealthyTask = typeof observedReset === "boolean" ? observedReset : failedBreaker["ResetOnHealthyTask"] !== void 0 ? true : void 0;
|
|
37130
|
+
const thresholdConfiguration = observedThreshold ?? (failedBreaker["ThresholdConfiguration"] !== void 0 ? { ...CIRCUIT_BREAKER_THRESHOLD_CONFIGURATION_DEFAULT } : void 0);
|
|
37131
|
+
return {
|
|
37132
|
+
...desired,
|
|
37133
|
+
deploymentCircuitBreaker: {
|
|
37134
|
+
enable: observed["Enable"],
|
|
37135
|
+
rollback: observed["Rollback"],
|
|
37136
|
+
...resetOnHealthyTask !== void 0 ? { resetOnHealthyTask } : {},
|
|
37137
|
+
...thresholdConfiguration ? { thresholdConfiguration } : {}
|
|
37138
|
+
}
|
|
37139
|
+
};
|
|
37140
|
+
}
|
|
36987
37141
|
function convertCapacityProviderStrategy(items) {
|
|
36988
37142
|
if (!items) return void 0;
|
|
36989
37143
|
return pascalToCamelCaseKeys(items);
|
|
@@ -37461,8 +37615,8 @@ var ECSProvider = class {
|
|
|
37461
37615
|
settleService(logicalId, serviceRef, cluster, log, requested, skipReason) {
|
|
37462
37616
|
return settleService.call(this, logicalId, serviceRef, cluster, log, requested, skipReason);
|
|
37463
37617
|
}
|
|
37464
|
-
updateService(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState) {
|
|
37465
|
-
return updateService$1.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState);
|
|
37618
|
+
updateService(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties) {
|
|
37619
|
+
return updateService$1.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties);
|
|
37466
37620
|
}
|
|
37467
37621
|
deleteService(logicalId, physicalId, resourceType, properties, context) {
|
|
37468
37622
|
return deleteService$1.call(this, logicalId, physicalId, resourceType, properties, context);
|
|
@@ -37560,8 +37714,8 @@ var ECSProvider = class {
|
|
|
37560
37714
|
convertDeploymentConfiguration(config) {
|
|
37561
37715
|
return convertDeploymentConfiguration.call(this, config);
|
|
37562
37716
|
}
|
|
37563
|
-
resolveDeploymentConfiguration(properties, previousProperties) {
|
|
37564
|
-
return resolveDeploymentConfiguration.call(this, properties, previousProperties);
|
|
37717
|
+
resolveDeploymentConfiguration(properties, previousProperties, replay) {
|
|
37718
|
+
return resolveDeploymentConfiguration.call(this, properties, previousProperties, replay);
|
|
37565
37719
|
}
|
|
37566
37720
|
convertCapacityProviderStrategy(items) {
|
|
37567
37721
|
return convertCapacityProviderStrategy.call(this, items);
|
|
@@ -39384,6 +39538,393 @@ var ELBv2Provider = class {
|
|
|
39384
39538
|
}
|
|
39385
39539
|
};
|
|
39386
39540
|
|
|
39541
|
+
// src/provisioning/providers/elbv2-listener-certificate-provider.ts
|
|
39542
|
+
const TYPE$4 = "AWS::ElasticLoadBalancingV2::ListenerCertificate";
|
|
39543
|
+
const LISTENER_NOT_FOUND = "ListenerNotFoundException";
|
|
39544
|
+
function readCertificateArns(value) {
|
|
39545
|
+
if (value === void 0 || value === null) return [];
|
|
39546
|
+
if (!Array.isArray(value)) return void 0;
|
|
39547
|
+
const arns = [];
|
|
39548
|
+
for (const entry of value) {
|
|
39549
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return void 0;
|
|
39550
|
+
const arn = entry["CertificateArn"];
|
|
39551
|
+
if (typeof arn !== "string" || arn === "") return void 0;
|
|
39552
|
+
if (!arns.includes(arn)) arns.push(arn);
|
|
39553
|
+
}
|
|
39554
|
+
return arns;
|
|
39555
|
+
}
|
|
39556
|
+
var ELBv2ListenerCertificateProvider = class {
|
|
39557
|
+
elbv2Client;
|
|
39558
|
+
providerRegion = ambientRegion();
|
|
39559
|
+
logger = getLogger().child("ELBv2ListenerCertificateProvider");
|
|
39560
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::ElasticLoadBalancingV2::ListenerCertificate", /* @__PURE__ */ new Set(["ListenerArn", "Certificates"])]]);
|
|
39561
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::ElasticLoadBalancingV2::ListenerCertificate", /* @__PURE__ */ new Set(["ListenerArn", "Certificates"])]]);
|
|
39562
|
+
getClient() {
|
|
39563
|
+
if (!this.elbv2Client) this.elbv2Client = new ElasticLoadBalancingV2Client({
|
|
39564
|
+
...ambientClientDefaults(),
|
|
39565
|
+
...this.providerRegion ? { region: this.providerRegion } : {}
|
|
39566
|
+
});
|
|
39567
|
+
return this.elbv2Client;
|
|
39568
|
+
}
|
|
39569
|
+
assertType(resourceType, logicalId, physicalId) {
|
|
39570
|
+
if (resourceType !== TYPE$4) throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
39571
|
+
}
|
|
39572
|
+
wrapCaughtError(mask, error, build) {
|
|
39573
|
+
const m = maskerOrIdentity(mask);
|
|
39574
|
+
const failure = describeAwsFailure(error);
|
|
39575
|
+
if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
|
|
39576
|
+
this.logger.debug(m(build(m(failure.detail)).message));
|
|
39577
|
+
const wrapped = build(`${m(failure.summary)}${relayedNameCollision(failure.detail)}`);
|
|
39578
|
+
return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
|
|
39579
|
+
}
|
|
39580
|
+
desiredArns(properties, logicalId, physicalId) {
|
|
39581
|
+
const arns = readCertificateArns(properties["Certificates"]);
|
|
39582
|
+
if (arns === void 0) throw new ProvisioningError(`Certificates of ListenerCertificate ${logicalId} is not a list of { CertificateArn } entries — no certificate was added to or removed from the listener`, TYPE$4, logicalId, physicalId);
|
|
39583
|
+
return arns;
|
|
39584
|
+
}
|
|
39585
|
+
requireListenerArn(properties, logicalId, physicalId) {
|
|
39586
|
+
const listenerArn = properties["ListenerArn"];
|
|
39587
|
+
if (typeof listenerArn !== "string" || listenerArn === "") throw new ProvisioningError(`ListenerArn is required for ListenerCertificate ${logicalId}`, TYPE$4, logicalId, physicalId);
|
|
39588
|
+
return listenerArn;
|
|
39589
|
+
}
|
|
39590
|
+
async addCertificate(listenerArn, certificateArn) {
|
|
39591
|
+
await this.getClient().send(new AddListenerCertificatesCommand({
|
|
39592
|
+
ListenerArn: listenerArn,
|
|
39593
|
+
Certificates: [{ CertificateArn: certificateArn }]
|
|
39594
|
+
}));
|
|
39595
|
+
}
|
|
39596
|
+
async removeCertificate(listenerArn, certificateArn) {
|
|
39597
|
+
await this.getClient().send(new RemoveListenerCertificatesCommand({
|
|
39598
|
+
ListenerArn: listenerArn,
|
|
39599
|
+
Certificates: [{ CertificateArn: certificateArn }]
|
|
39600
|
+
}));
|
|
39601
|
+
}
|
|
39602
|
+
async create(logicalId, resourceType, properties, context) {
|
|
39603
|
+
this.assertType(resourceType, logicalId);
|
|
39604
|
+
const listenerArn = this.requireListenerArn(properties, logicalId);
|
|
39605
|
+
const certificates = this.desiredArns(properties, logicalId);
|
|
39606
|
+
if (certificates.length === 0) throw new ProvisioningError(`Certificates is required for ListenerCertificate ${logicalId}`, resourceType, logicalId);
|
|
39607
|
+
const physicalId = `${logicalId}-${randomBytes(6).toString("hex")}`;
|
|
39608
|
+
this.logger.debug(safeMsg`Creating ListenerCertificate ${logicalId}`);
|
|
39609
|
+
let added = false;
|
|
39610
|
+
try {
|
|
39611
|
+
for (const certificateArn of certificates) {
|
|
39612
|
+
await this.addCertificate(listenerArn, certificateArn);
|
|
39613
|
+
added = true;
|
|
39614
|
+
}
|
|
39615
|
+
this.logger.debug(safeMsg`Successfully created ListenerCertificate ${logicalId}`);
|
|
39616
|
+
return {
|
|
39617
|
+
physicalId,
|
|
39618
|
+
attributes: {}
|
|
39619
|
+
};
|
|
39620
|
+
} catch (error) {
|
|
39621
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39622
|
+
const thrown = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
39623
|
+
if (added) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
|
|
39624
|
+
throw thrown;
|
|
39625
|
+
}
|
|
39626
|
+
}
|
|
39627
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
39628
|
+
this.assertType(resourceType, logicalId, physicalId);
|
|
39629
|
+
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
39630
|
+
const listenerArn = this.requireListenerArn(properties, logicalId, physicalId);
|
|
39631
|
+
const desired = this.desiredArns(properties, logicalId, physicalId);
|
|
39632
|
+
const recorded = readCertificateArns(previousProperties["Certificates"]);
|
|
39633
|
+
const sameListener = previousProperties["ListenerArn"] === listenerArn;
|
|
39634
|
+
if (recorded === void 0 || !sameListener) this.logger.warn(safeMsg`ListenerCertificate ${logicalId}: the recorded ${recorded === void 0 ? "Certificates is not a list of { CertificateArn } entries" : "ListenerArn is not the template one"}, so only the template's certificates are added; a certificate the record named is not removed.`);
|
|
39635
|
+
const removals = recorded === void 0 || !sameListener ? [] : recorded.filter((a) => !desired.includes(a));
|
|
39636
|
+
const additions = recorded === void 0 || !sameListener ? desired : desired.filter((a) => !recorded.includes(a));
|
|
39637
|
+
this.logger.debug(safeMsg`Updating ListenerCertificate ${logicalId}: ${additions.length} to add, ${removals.length} to remove`);
|
|
39638
|
+
try {
|
|
39639
|
+
for (const certificateArn of additions) await this.addCertificate(listenerArn, certificateArn);
|
|
39640
|
+
for (const certificateArn of removals) await this.removeCertificate(listenerArn, certificateArn);
|
|
39641
|
+
return {
|
|
39642
|
+
physicalId,
|
|
39643
|
+
wasReplaced: false,
|
|
39644
|
+
attributes: {}
|
|
39645
|
+
};
|
|
39646
|
+
} catch (error) {
|
|
39647
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39648
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
39649
|
+
}
|
|
39650
|
+
}
|
|
39651
|
+
async delete(logicalId, physicalId, resourceType, properties, context) {
|
|
39652
|
+
this.assertType(resourceType, logicalId, physicalId);
|
|
39653
|
+
const listenerArn = properties?.["ListenerArn"];
|
|
39654
|
+
const certificates = readCertificateArns(properties?.["Certificates"]);
|
|
39655
|
+
if (typeof listenerArn !== "string" || listenerArn === "" || certificates === void 0) {
|
|
39656
|
+
this.logger.warn(safeMsg`The state record for ListenerCertificate ${logicalId} holds no usable ListenerArn / Certificates, so no certificate was removed from the listener; the record is kept. Remove the certificates by hand (aws elbv2 remove-listener-certificates), then drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`);
|
|
39657
|
+
return {
|
|
39658
|
+
outcome: "skipped",
|
|
39659
|
+
reason: LISTENER_CERTIFICATE_UNADDRESSABLE_SKIP_REASON
|
|
39660
|
+
};
|
|
39661
|
+
}
|
|
39662
|
+
this.logger.debug(safeMsg`Deleting ListenerCertificate ${logicalId}`);
|
|
39663
|
+
let removedAny = false;
|
|
39664
|
+
try {
|
|
39665
|
+
for (const certificateArn of certificates) {
|
|
39666
|
+
await this.removeCertificate(listenerArn, certificateArn);
|
|
39667
|
+
removedAny = true;
|
|
39668
|
+
}
|
|
39669
|
+
} catch (error) {
|
|
39670
|
+
if (error?.name === LISTENER_NOT_FOUND) {
|
|
39671
|
+
assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
39672
|
+
return;
|
|
39673
|
+
}
|
|
39674
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39675
|
+
const failure = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
39676
|
+
throw removedAny ? markDeleteStarted(failure) : failure;
|
|
39677
|
+
}
|
|
39678
|
+
}
|
|
39679
|
+
async readListenerCertificates(listenerArn) {
|
|
39680
|
+
const arns = /* @__PURE__ */ new Set();
|
|
39681
|
+
let marker;
|
|
39682
|
+
do {
|
|
39683
|
+
let resp;
|
|
39684
|
+
try {
|
|
39685
|
+
resp = await this.getClient().send(new DescribeListenerCertificatesCommand({
|
|
39686
|
+
ListenerArn: listenerArn,
|
|
39687
|
+
...marker ? { Marker: marker } : {}
|
|
39688
|
+
}));
|
|
39689
|
+
} catch (error) {
|
|
39690
|
+
if (error?.name === LISTENER_NOT_FOUND) return void 0;
|
|
39691
|
+
throw error;
|
|
39692
|
+
}
|
|
39693
|
+
for (const cert of resp.Certificates ?? []) if (cert.IsDefault !== true && typeof cert.CertificateArn === "string") arns.add(cert.CertificateArn);
|
|
39694
|
+
marker = resp.NextMarker;
|
|
39695
|
+
} while (marker);
|
|
39696
|
+
return arns;
|
|
39697
|
+
}
|
|
39698
|
+
async import(input) {
|
|
39699
|
+
if (input.resourceType !== TYPE$4 || !input.knownPhysicalId) return null;
|
|
39700
|
+
const listenerArn = input.properties["ListenerArn"];
|
|
39701
|
+
const wanted = readCertificateArns(input.properties["Certificates"]);
|
|
39702
|
+
if (typeof listenerArn !== "string" || listenerArn === "" || !wanted?.length) return null;
|
|
39703
|
+
const live = await this.readListenerCertificates(listenerArn);
|
|
39704
|
+
if (live === void 0 || !wanted.every((arn) => live.has(arn))) return null;
|
|
39705
|
+
return {
|
|
39706
|
+
physicalId: input.knownPhysicalId,
|
|
39707
|
+
attributes: {}
|
|
39708
|
+
};
|
|
39709
|
+
}
|
|
39710
|
+
async readCurrentState(_physicalId, _logicalId, resourceType, properties) {
|
|
39711
|
+
if (resourceType !== TYPE$4) return void 0;
|
|
39712
|
+
const listenerArn = properties?.["ListenerArn"];
|
|
39713
|
+
const recorded = readCertificateArns(properties?.["Certificates"]);
|
|
39714
|
+
if (typeof listenerArn !== "string" || listenerArn === "" || recorded === void 0) return;
|
|
39715
|
+
const live = await this.readListenerCertificates(listenerArn);
|
|
39716
|
+
if (live === void 0) return RESOURCE_NOT_FOUND;
|
|
39717
|
+
return {
|
|
39718
|
+
ListenerArn: listenerArn,
|
|
39719
|
+
Certificates: recorded.filter((arn) => live.has(arn)).map((arn) => ({ CertificateArn: arn }))
|
|
39720
|
+
};
|
|
39721
|
+
}
|
|
39722
|
+
};
|
|
39723
|
+
const LISTENER_CERTIFICATE_UNADDRESSABLE_SKIP_REASON = "the state record holds no usable ListenerArn / Certificates";
|
|
39724
|
+
|
|
39725
|
+
// src/provisioning/providers/ec2-vpn-gateway-route-propagation-provider.ts
|
|
39726
|
+
const TYPE$3 = "AWS::EC2::VPNGatewayRoutePropagation";
|
|
39727
|
+
const GATEWAY_NOT_ATTACHED = "Gateway.NotAttached";
|
|
39728
|
+
const VGW_NOT_ATTACHED_WAIT_MS = 6e5;
|
|
39729
|
+
function readRouteTableIds(value) {
|
|
39730
|
+
if (value === void 0 || value === null) return [];
|
|
39731
|
+
if (!Array.isArray(value)) return void 0;
|
|
39732
|
+
const ids = [];
|
|
39733
|
+
for (const id of value) {
|
|
39734
|
+
if (typeof id !== "string" || id === "") return void 0;
|
|
39735
|
+
if (!ids.includes(id)) ids.push(id);
|
|
39736
|
+
}
|
|
39737
|
+
return ids;
|
|
39738
|
+
}
|
|
39739
|
+
var EC2VPNGatewayRoutePropagationProvider = class {
|
|
39740
|
+
logger = getLogger().child("EC2VPNGatewayRoutePropagationProvider");
|
|
39741
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::EC2::VPNGatewayRoutePropagation", /* @__PURE__ */ new Set(["RouteTableIds", "VpnGatewayId"])]]);
|
|
39742
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::EC2::VPNGatewayRoutePropagation", /* @__PURE__ */ new Set(["RouteTableIds", "VpnGatewayId"])]]);
|
|
39743
|
+
get ec2Client() {
|
|
39744
|
+
return getAwsClients().ec2;
|
|
39745
|
+
}
|
|
39746
|
+
sleep(ms) {
|
|
39747
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
39748
|
+
}
|
|
39749
|
+
assertType(resourceType, logicalId, physicalId) {
|
|
39750
|
+
if (resourceType !== TYPE$3) throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
39751
|
+
}
|
|
39752
|
+
wrapCaughtError(mask, error, build) {
|
|
39753
|
+
const m = maskerOrIdentity(mask);
|
|
39754
|
+
const failure = describeAwsFailure(error);
|
|
39755
|
+
if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
|
|
39756
|
+
this.logger.debug(m(build(m(failure.detail)).message));
|
|
39757
|
+
const wrapped = build(`${m(failure.summary)}${relayedNameCollision(failure.detail)}`);
|
|
39758
|
+
return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
|
|
39759
|
+
}
|
|
39760
|
+
desired(properties, logicalId, physicalId) {
|
|
39761
|
+
const gatewayId = properties["VpnGatewayId"];
|
|
39762
|
+
if (typeof gatewayId !== "string" || gatewayId === "") throw new ProvisioningError(`VpnGatewayId is required for VPNGatewayRoutePropagation ${logicalId}`, TYPE$3, logicalId, physicalId);
|
|
39763
|
+
const routeTableIds = readRouteTableIds(properties["RouteTableIds"]);
|
|
39764
|
+
if (routeTableIds === void 0) throw new ProvisioningError(`RouteTableIds of VPNGatewayRoutePropagation ${logicalId} is not a list of route table ids — no route propagation was enabled or disabled`, TYPE$3, logicalId, physicalId);
|
|
39765
|
+
return {
|
|
39766
|
+
gatewayId,
|
|
39767
|
+
routeTableIds
|
|
39768
|
+
};
|
|
39769
|
+
}
|
|
39770
|
+
async enable(gatewayId, routeTableId, logicalId) {
|
|
39771
|
+
const started = Date.now();
|
|
39772
|
+
let delay = 2e3;
|
|
39773
|
+
let watch;
|
|
39774
|
+
try {
|
|
39775
|
+
for (;;) {
|
|
39776
|
+
if (watch?.isInterrupted()) throw watch.onInterrupted();
|
|
39777
|
+
try {
|
|
39778
|
+
await this.ec2Client.send(new EnableVgwRoutePropagationCommand({
|
|
39779
|
+
GatewayId: gatewayId,
|
|
39780
|
+
RouteTableId: routeTableId
|
|
39781
|
+
}));
|
|
39782
|
+
return;
|
|
39783
|
+
} catch (error) {
|
|
39784
|
+
if (error?.name !== GATEWAY_NOT_ATTACHED || Date.now() - started >= 6e5) throw error;
|
|
39785
|
+
if (!await this.attachmentMayArrive(gatewayId)) throw error;
|
|
39786
|
+
watch ??= startInterruptWatch(`VPNGatewayRoutePropagation ${logicalId}`);
|
|
39787
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
39788
|
+
this.logger.debug(safeMsg`VPNGatewayRoutePropagation ${logicalId}: the gateway is not attached yet, retrying`);
|
|
39789
|
+
await this.sleep(delay);
|
|
39790
|
+
delay = Math.min(delay * 2, 1e4);
|
|
39791
|
+
}
|
|
39792
|
+
}
|
|
39793
|
+
} finally {
|
|
39794
|
+
watch?.dispose();
|
|
39795
|
+
}
|
|
39796
|
+
}
|
|
39797
|
+
async attachmentMayArrive(gatewayId) {
|
|
39798
|
+
let states;
|
|
39799
|
+
try {
|
|
39800
|
+
states = ((await this.ec2Client.send(new DescribeVpnGatewaysCommand({ VpnGatewayIds: [gatewayId] }))).VpnGateways?.[0]?.VpcAttachments ?? []).map((a) => String(a.State));
|
|
39801
|
+
} catch {
|
|
39802
|
+
return true;
|
|
39803
|
+
}
|
|
39804
|
+
return states.length === 0 || states.some((st) => st === "attaching" || st === "attached");
|
|
39805
|
+
}
|
|
39806
|
+
async disable(gatewayId, routeTableId) {
|
|
39807
|
+
try {
|
|
39808
|
+
await this.ec2Client.send(new DisableVgwRoutePropagationCommand({
|
|
39809
|
+
GatewayId: gatewayId,
|
|
39810
|
+
RouteTableId: routeTableId
|
|
39811
|
+
}));
|
|
39812
|
+
} catch (error) {
|
|
39813
|
+
if (error?.name === "InvalidRouteTableID.NotFound") return;
|
|
39814
|
+
throw error;
|
|
39815
|
+
}
|
|
39816
|
+
}
|
|
39817
|
+
async create(logicalId, resourceType, properties, context) {
|
|
39818
|
+
this.assertType(resourceType, logicalId);
|
|
39819
|
+
const { gatewayId, routeTableIds } = this.desired(properties, logicalId);
|
|
39820
|
+
if (routeTableIds.length === 0) throw new ProvisioningError(`RouteTableIds is required for VPNGatewayRoutePropagation ${logicalId}`, resourceType, logicalId);
|
|
39821
|
+
const physicalId = `${logicalId}-${randomBytes(6).toString("hex")}`;
|
|
39822
|
+
this.logger.debug(safeMsg`Creating VPNGatewayRoutePropagation ${logicalId}`);
|
|
39823
|
+
let enabled = false;
|
|
39824
|
+
try {
|
|
39825
|
+
for (const routeTableId of routeTableIds) {
|
|
39826
|
+
await this.enable(gatewayId, routeTableId, logicalId);
|
|
39827
|
+
enabled = true;
|
|
39828
|
+
}
|
|
39829
|
+
return {
|
|
39830
|
+
physicalId,
|
|
39831
|
+
attributes: {}
|
|
39832
|
+
};
|
|
39833
|
+
} catch (error) {
|
|
39834
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39835
|
+
const thrown = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
39836
|
+
if (enabled) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
|
|
39837
|
+
throw thrown;
|
|
39838
|
+
}
|
|
39839
|
+
}
|
|
39840
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
39841
|
+
this.assertType(resourceType, logicalId, physicalId);
|
|
39842
|
+
assertRegionMatch(context?.expectedRegion ? await this.ec2Client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
39843
|
+
const { gatewayId, routeTableIds } = this.desired(properties, logicalId, physicalId);
|
|
39844
|
+
const recordedGateway = previousProperties["VpnGatewayId"];
|
|
39845
|
+
const recordedTables = readRouteTableIds(previousProperties["RouteTableIds"]);
|
|
39846
|
+
const usableRecord = typeof recordedGateway === "string" && recordedGateway !== "" && recordedTables !== void 0;
|
|
39847
|
+
if (!usableRecord) this.logger.warn(safeMsg`VPNGatewayRoutePropagation ${logicalId}: the recorded VpnGatewayId / RouteTableIds is not usable, so only the template's route tables are enabled; a propagation the record named is not disabled.`);
|
|
39848
|
+
const gatewayMoved = usableRecord && recordedGateway !== gatewayId;
|
|
39849
|
+
const enables = !usableRecord || gatewayMoved ? routeTableIds : routeTableIds.filter((id) => !recordedTables.includes(id));
|
|
39850
|
+
const disables = !usableRecord ? [] : gatewayMoved ? recordedTables : recordedTables.filter((id) => !routeTableIds.includes(id));
|
|
39851
|
+
const disableGateway = usableRecord ? recordedGateway : gatewayId;
|
|
39852
|
+
try {
|
|
39853
|
+
for (const routeTableId of enables) await this.enable(gatewayId, routeTableId, logicalId);
|
|
39854
|
+
for (const routeTableId of disables) await this.disable(disableGateway, routeTableId);
|
|
39855
|
+
return {
|
|
39856
|
+
physicalId,
|
|
39857
|
+
wasReplaced: false,
|
|
39858
|
+
attributes: {}
|
|
39859
|
+
};
|
|
39860
|
+
} catch (error) {
|
|
39861
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39862
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
39863
|
+
}
|
|
39864
|
+
}
|
|
39865
|
+
async delete(logicalId, physicalId, resourceType, properties, context) {
|
|
39866
|
+
this.assertType(resourceType, logicalId, physicalId);
|
|
39867
|
+
const gatewayId = properties?.["VpnGatewayId"];
|
|
39868
|
+
const routeTableIds = readRouteTableIds(properties?.["RouteTableIds"]);
|
|
39869
|
+
if (typeof gatewayId !== "string" || gatewayId === "" || routeTableIds === void 0) {
|
|
39870
|
+
this.logger.warn(safeMsg`The state record for VPNGatewayRoutePropagation ${logicalId} holds no usable VpnGatewayId / RouteTableIds, so no route propagation was disabled; the record is kept. Disable it by hand (aws ec2 disable-vgw-route-propagation), then drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`);
|
|
39871
|
+
return {
|
|
39872
|
+
outcome: "skipped",
|
|
39873
|
+
reason: VGW_ROUTE_PROPAGATION_UNADDRESSABLE_SKIP_REASON
|
|
39874
|
+
};
|
|
39875
|
+
}
|
|
39876
|
+
assertRegionMatch(context?.expectedRegion ? await this.ec2Client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
39877
|
+
this.logger.debug(safeMsg`Deleting VPNGatewayRoutePropagation ${logicalId}`);
|
|
39878
|
+
let disabledAny = false;
|
|
39879
|
+
try {
|
|
39880
|
+
for (const routeTableId of routeTableIds) {
|
|
39881
|
+
await this.disable(gatewayId, routeTableId);
|
|
39882
|
+
disabledAny = true;
|
|
39883
|
+
}
|
|
39884
|
+
} catch (error) {
|
|
39885
|
+
const cause = error instanceof Error ? error : void 0;
|
|
39886
|
+
const failure = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
39887
|
+
throw disabledAny ? markDeleteStarted(failure) : failure;
|
|
39888
|
+
}
|
|
39889
|
+
}
|
|
39890
|
+
async propagatingTables(gatewayId, routeTableIds) {
|
|
39891
|
+
const out = [];
|
|
39892
|
+
for (const routeTableId of routeTableIds) {
|
|
39893
|
+
let resp;
|
|
39894
|
+
try {
|
|
39895
|
+
resp = await this.ec2Client.send(new DescribeRouteTablesCommand({ RouteTableIds: [routeTableId] }));
|
|
39896
|
+
} catch (error) {
|
|
39897
|
+
if (error?.name === "InvalidRouteTableID.NotFound") continue;
|
|
39898
|
+
throw error;
|
|
39899
|
+
}
|
|
39900
|
+
if (((resp.RouteTables?.[0])?.PropagatingVgws ?? []).some((p) => p.GatewayId === gatewayId)) out.push(routeTableId);
|
|
39901
|
+
}
|
|
39902
|
+
return out;
|
|
39903
|
+
}
|
|
39904
|
+
async import(input) {
|
|
39905
|
+
if (input.resourceType !== TYPE$3 || !input.knownPhysicalId) return null;
|
|
39906
|
+
const gatewayId = input.properties["VpnGatewayId"];
|
|
39907
|
+
const routeTableIds = readRouteTableIds(input.properties["RouteTableIds"]);
|
|
39908
|
+
if (typeof gatewayId !== "string" || gatewayId === "" || !routeTableIds?.length) return null;
|
|
39909
|
+
if ((await this.propagatingTables(gatewayId, routeTableIds)).length !== routeTableIds.length) return null;
|
|
39910
|
+
return {
|
|
39911
|
+
physicalId: input.knownPhysicalId,
|
|
39912
|
+
attributes: {}
|
|
39913
|
+
};
|
|
39914
|
+
}
|
|
39915
|
+
async readCurrentState(_physicalId, _logicalId, resourceType, properties) {
|
|
39916
|
+
if (resourceType !== TYPE$3) return void 0;
|
|
39917
|
+
const gatewayId = properties?.["VpnGatewayId"];
|
|
39918
|
+
const recorded = readRouteTableIds(properties?.["RouteTableIds"]);
|
|
39919
|
+
if (typeof gatewayId !== "string" || gatewayId === "" || !recorded?.length) return void 0;
|
|
39920
|
+
return {
|
|
39921
|
+
VpnGatewayId: gatewayId,
|
|
39922
|
+
RouteTableIds: await this.propagatingTables(gatewayId, recorded)
|
|
39923
|
+
};
|
|
39924
|
+
}
|
|
39925
|
+
};
|
|
39926
|
+
const VGW_ROUTE_PROPAGATION_UNADDRESSABLE_SKIP_REASON = "the state record holds no usable VpnGatewayId / RouteTableIds";
|
|
39927
|
+
|
|
39387
39928
|
// src/provisioning/providers/rds-dbproxy/shared.ts
|
|
39388
39929
|
const POLL_INTERVAL_MS = 5e3;
|
|
39389
39930
|
const POLL_TIMEOUT_MS = 18e5;
|
|
@@ -42223,7 +42764,8 @@ async function unsettledInTransition$3(physicalId, _logicalId, resourceType, nam
|
|
|
42223
42764
|
return unmoving(instance?.DBInstanceStatus) && !holdsDocDBPendingValue(instance?.PendingModifiedValues) ? /* @__PURE__ */ new Set() : names;
|
|
42224
42765
|
}
|
|
42225
42766
|
return /* @__PURE__ */ new Set();
|
|
42226
|
-
} catch {
|
|
42767
|
+
} catch (error) {
|
|
42768
|
+
rethrowIfThrottled(error);
|
|
42227
42769
|
return names;
|
|
42228
42770
|
}
|
|
42229
42771
|
}
|
|
@@ -52786,7 +53328,8 @@ async function triggerUnsettledInTransition(physicalId, _logicalId, _resourceTyp
|
|
|
52786
53328
|
try {
|
|
52787
53329
|
const state = (await this.getClient().send(new GetTriggerCommand({ Name: physicalId }))).Trigger?.State;
|
|
52788
53330
|
return state === "ACTIVATING" || state === "DEACTIVATING" || state === "CREATING" || state === "UPDATING" ? new Set([...names].filter((name) => name !== "Tags")) : /* @__PURE__ */ new Set();
|
|
52789
|
-
} catch {
|
|
53331
|
+
} catch (error) {
|
|
53332
|
+
rethrowIfThrottled(error);
|
|
52790
53333
|
return names;
|
|
52791
53334
|
}
|
|
52792
53335
|
}
|
|
@@ -55729,7 +56272,8 @@ async function unsettledInTransition$2(physicalId, _logicalId, _resourceType, na
|
|
|
55729
56272
|
const status = (await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }))).StreamDescriptionSummary?.StreamStatus;
|
|
55730
56273
|
if (status !== "UPDATING" && status !== "CREATING") return /* @__PURE__ */ new Set();
|
|
55731
56274
|
return new Set([...names].filter((name) => name !== "Tags"));
|
|
55732
|
-
} catch {
|
|
56275
|
+
} catch (error) {
|
|
56276
|
+
rethrowIfThrottled(error);
|
|
55733
56277
|
return names;
|
|
55734
56278
|
}
|
|
55735
56279
|
}
|
|
@@ -57157,7 +57701,8 @@ async function unsettledInTransition$1(physicalId, _logicalId, _resourceType, na
|
|
|
57157
57701
|
const state = (await this.describe(physicalId)).CurrentState;
|
|
57158
57702
|
if (state === void 0 || !MOVING_STATES.has(state)) return /* @__PURE__ */ new Set();
|
|
57159
57703
|
return new Set([...names].filter((name) => name !== "Tags"));
|
|
57160
|
-
} catch {
|
|
57704
|
+
} catch (error) {
|
|
57705
|
+
rethrowIfThrottled(error);
|
|
57161
57706
|
return names;
|
|
57162
57707
|
}
|
|
57163
57708
|
}
|
|
@@ -61054,7 +61599,8 @@ async function unsettledInTransition(physicalId, _logicalId, _resourceType, name
|
|
|
61054
61599
|
try {
|
|
61055
61600
|
const status = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription?.DeliveryStreamEncryptionConfiguration?.Status;
|
|
61056
61601
|
return status === "ENABLING" || status === "DISABLING" ? /* @__PURE__ */ new Set([ENCRYPTION_KEY]) : /* @__PURE__ */ new Set();
|
|
61057
|
-
} catch {
|
|
61602
|
+
} catch (error) {
|
|
61603
|
+
rethrowIfThrottled(error);
|
|
61058
61604
|
return /* @__PURE__ */ new Set([ENCRYPTION_KEY]);
|
|
61059
61605
|
}
|
|
61060
61606
|
}
|
|
@@ -63358,6 +63904,7 @@ var CodeCommitRepositoryProvider = class {
|
|
|
63358
63904
|
await this.getClient().send(new GetRepositoryTriggersCommand({ repositoryName: physicalId }));
|
|
63359
63905
|
return /* @__PURE__ */ new Set();
|
|
63360
63906
|
} catch (err) {
|
|
63907
|
+
rethrowIfThrottled(err);
|
|
63361
63908
|
if (err instanceof RepositoryDoesNotExistException) return /* @__PURE__ */ new Set();
|
|
63362
63909
|
return /* @__PURE__ */ new Set(["Triggers"]);
|
|
63363
63910
|
}
|
|
@@ -66800,38 +67347,6 @@ var ECRProvider = class {
|
|
|
66800
67347
|
}
|
|
66801
67348
|
};
|
|
66802
67349
|
|
|
66803
|
-
// src/provisioning/providers/nested-stack/shared.ts
|
|
66804
|
-
const PENDING_CHILD_DELETES_KEY = "cdkd:PendingChildDeletes";
|
|
66805
|
-
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
66806
|
-
function recordWithPendingChildDeletes(properties, pendingChildDeletes) {
|
|
66807
|
-
if (pendingChildDeletes <= 0) return void 0;
|
|
66808
|
-
return markSameGenerationBag({
|
|
66809
|
-
...withoutSdkUnwiredProperties(NESTED_STACK_TYPE, properties),
|
|
66810
|
-
[PENDING_CHILD_DELETES_KEY]: pendingChildDeletes
|
|
66811
|
-
});
|
|
66812
|
-
}
|
|
66813
|
-
function runAccountOf(ctx) {
|
|
66814
|
-
return {
|
|
66815
|
-
profile: ctx.destroyOptions?.profile,
|
|
66816
|
-
stateBucket: ctx.stateBucket,
|
|
66817
|
-
statePrefix: ctx.destroyOptions?.statePrefix
|
|
66818
|
-
};
|
|
66819
|
-
}
|
|
66820
|
-
function requireContext() {
|
|
66821
|
-
const ctx = getCurrentNestedStackContext();
|
|
66822
|
-
if (!ctx) throw markNonRetryable(/* @__PURE__ */ new Error("NestedStackProvider invoked outside withNestedStackContext() scope. The deploy / destroy CLI entry point must wrap its DeployEngine.deploy / runDestroyForStack call in withNestedStackContext(ctx, () => ...)."));
|
|
66823
|
-
return ctx;
|
|
66824
|
-
}
|
|
66825
|
-
function requireDeployContext(ctx, op) {
|
|
66826
|
-
if (!ctx.nestedTemplates || !ctx.dagBuilder || !ctx.diffCalculator) throw markNonRetryable(/* @__PURE__ */ new Error(`NestedStackProvider.${op}: deploy-mode context fields (nestedTemplates / dagBuilder / diffCalculator) are missing. This usually means a destroy-mode entry point called into create/update by mistake.`));
|
|
66827
|
-
}
|
|
66828
|
-
function deriveChildStackName(parentStackName, nestedLogicalId) {
|
|
66829
|
-
return `${parentStackName}~${nestedLogicalId}`;
|
|
66830
|
-
}
|
|
66831
|
-
function synthesizeArn(accountId, childRegion, parentStackName, logicalId) {
|
|
66832
|
-
return `arn:cdkd-local:${childRegion}:${accountId}:nested-stack/${parentStackName}/${logicalId}`;
|
|
66833
|
-
}
|
|
66834
|
-
|
|
66835
67350
|
// src/provisioning/providers/nested-stack/create-update.ts
|
|
66836
67351
|
async function create$1(logicalId, resourceType, properties, context) {
|
|
66837
67352
|
const ctx = this.requireContext();
|
|
@@ -67030,7 +67545,7 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
|
|
|
67030
67545
|
...parentCtx.options ?? {},
|
|
67031
67546
|
parameters: childParameters,
|
|
67032
67547
|
onDestructivePlan: void 0,
|
|
67033
|
-
...inheritedSecrets &&
|
|
67548
|
+
...inheritedSecrets && carriesInheritedRedaction(inheritedSecrets) && { inheritedSecrets },
|
|
67034
67549
|
inheritedPhysicalNameCopies: inheritedPhysicalNameCopiesOf(inheritedSecrets),
|
|
67035
67550
|
inheritedReferenceProvenance: snapshotPassProvenance(inheritedSecrets),
|
|
67036
67551
|
...passedClasses && { passedParameterClasses: passedClasses },
|
|
@@ -67058,9 +67573,10 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
|
|
|
67058
67573
|
const slot = parentCtx.childUnaddressed;
|
|
67059
67574
|
if (slot) slot.last = {
|
|
67060
67575
|
deleteSkipped: childResult.deleteSkipped,
|
|
67061
|
-
updatePartial: (slot.last?.updatePartial ?? 0) + childResult.updatePartial
|
|
67576
|
+
updatePartial: (slot.last?.updatePartial ?? 0) + childResult.updatePartial,
|
|
67577
|
+
...(childResult.queuedRemovals ?? 0) > 0 && { queuedRemovals: childResult.queuedRemovals }
|
|
67062
67578
|
};
|
|
67063
|
-
return childResult.deleteSkipped;
|
|
67579
|
+
return childResult.deleteSkipped + (childResult.queuedRemovals ?? 0);
|
|
67064
67580
|
}
|
|
67065
67581
|
function inheritedPhysicalNameCopiesOf(bag) {
|
|
67066
67582
|
const copies = bag === void 0 ? void 0 : physicalNameCopiesOf.get(bag);
|
|
@@ -67948,5 +68464,5 @@ var ACMCertificateProvider = class {
|
|
|
67948
68464
|
}
|
|
67949
68465
|
};
|
|
67950
68466
|
|
|
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 };
|
|
67952
|
-
//# sourceMappingURL=provider-classes-
|
|
68467
|
+
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, EC2VPNGatewayRoutePropagationProvider, ECRProvider, ECSProvider, EFSProvider, ELBv2ListenerCertificateProvider, 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 };
|
|
68468
|
+
//# sourceMappingURL=provider-classes-CNMjjxoS.js.map
|