@cdkd/cli 0.350.3 → 0.350.4
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-CqrM5nDS.js → ambient-client-defaults-CepgBr_y.js} +3 -3
- package/dist/{ambient-client-defaults-CqrM5nDS.js.map → ambient-client-defaults-CepgBr_y.js.map} +1 -1
- package/dist/{asg-provider-hZ4nyheM.js → asg-provider-26AfIhcd.js} +6 -6
- package/dist/{asg-provider-hZ4nyheM.js.map → asg-provider-26AfIhcd.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CcClWTa-.js → custom-resource-runtime-2Kfh-v8P.js} +6 -6
- package/dist/{custom-resource-runtime-CcClWTa-.js.map → custom-resource-runtime-2Kfh-v8P.js.map} +1 -1
- package/dist/{db-instance-modify-retry-CsIlFgIJ.js → db-instance-modify-retry-BoKzNMfz.js} +4 -4
- package/dist/{db-instance-modify-retry-CsIlFgIJ.js.map → db-instance-modify-retry-BoKzNMfz.js.map} +1 -1
- package/dist/{delete-started-C0g7PYI-.js → delete-started-Bq_G9e4j.js} +4 -3
- package/dist/delete-started-Bq_G9e4j.js.map +1 -0
- package/dist/{deploy-engine-Sw2eta-t.js → deploy-engine-DLmPF7r5.js} +477 -240
- package/dist/deploy-engine-DLmPF7r5.js.map +1 -0
- package/dist/{diff-calculator-BvN5rnLe.js → diff-calculator-DYUmMeew.js} +24 -15
- package/dist/{diff-calculator-BvN5rnLe.js.map → diff-calculator-DYUmMeew.js.map} +1 -1
- package/dist/{ec2-termination-protection-BIIHrzUa.js → ec2-termination-protection-Di3eM8PN.js} +6 -6
- package/dist/{ec2-termination-protection-BIIHrzUa.js.map → ec2-termination-protection-Di3eM8PN.js.map} +1 -1
- package/dist/{ecr-uri-CQ_BCOjX.js → ecr-uri-6HdJfJPR.js} +2 -2
- package/dist/{ecr-uri-CQ_BCOjX.js.map → ecr-uri-6HdJfJPR.js.map} +1 -1
- package/dist/{expected-bucket-owner-DR9qK772.js → expected-bucket-owner-Drp-CSQY.js} +2 -2
- package/dist/{expected-bucket-owner-DR9qK772.js.map → expected-bucket-owner-Drp-CSQY.js.map} +1 -1
- package/dist/{iam-role-provider-i52A7e_4.js → iam-role-provider-B5c4V2kT.js} +7 -7
- package/dist/{iam-role-provider-i52A7e_4.js.map → iam-role-provider-B5c4V2kT.js.map} +1 -1
- package/dist/{image-plan-DOnhBOIa.js → image-plan-CYouJkYM.js} +8 -8
- package/dist/{image-plan-DOnhBOIa.js.map → image-plan-CYouJkYM.js.map} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Ce9kvuBB.js → logger-6lyGJVGE.js} +2 -2
- package/dist/{logger-Ce9kvuBB.js.map → logger-6lyGJVGE.js.map} +1 -1
- package/dist/{neptune-provider-Bir1AdqM.js → neptune-provider-Dhody0jz.js} +7 -7
- package/dist/{neptune-provider-Bir1AdqM.js.map → neptune-provider-Dhody0jz.js.map} +1 -1
- package/dist/{program-DAAu8qUr.js → program-BMBei2v9.js} +74 -44
- package/dist/program-BMBei2v9.js.map +1 -0
- package/dist/{provider-classes-CM8Txuvb.js → provider-classes-B3qqzXp-.js} +134 -18
- package/dist/provider-classes-B3qqzXp-.js.map +1 -0
- package/dist/{rds-provider-DmVAU_Mv.js → rds-provider-CXjWWFKT.js} +10 -10
- package/dist/{rds-provider-DmVAU_Mv.js.map → rds-provider-CXjWWFKT.js.map} +1 -1
- package/dist/{read-replica-Bmq3NTlC.js → read-replica-iA8yd-HO.js} +3 -3
- package/dist/{read-replica-Bmq3NTlC.js.map → read-replica-iA8yd-HO.js.map} +1 -1
- package/dist/{replacement-rules-lOM1aGPr.js → replacement-rules-B4fLD_Ru.js} +3 -3
- package/dist/{replacement-rules-lOM1aGPr.js.map → replacement-rules-B4fLD_Ru.js.map} +1 -1
- package/dist/{resource-deadline-1VcUPyH4.js → resource-deadline-BcEyGRdL.js} +4 -4
- package/dist/{resource-deadline-1VcUPyH4.js.map → resource-deadline-BcEyGRdL.js.map} +1 -1
- package/dist/{run-cli-BlVizMfM.js → run-cli-Dp938GHN.js} +2 -2
- package/dist/{run-cli-BlVizMfM.js.map → run-cli-Dp938GHN.js.map} +1 -1
- package/dist/{update-removal-BOue-bJm.js → update-removal-1ZPAMzvz.js} +5 -5
- package/dist/{update-removal-BOue-bJm.js.map → update-removal-1ZPAMzvz.js.map} +1 -1
- package/dist/{version-DINEmsQH.js → version-D_7vFUjp.js} +2 -2
- package/dist/{version-DINEmsQH.js.map → version-D_7vFUjp.js.map} +1 -1
- package/package.json +2 -2
- package/dist/delete-started-C0g7PYI-.js.map +0 -1
- package/dist/deploy-engine-Sw2eta-t.js.map +0 -1
- package/dist/program-DAAu8qUr.js.map +0 -1
- package/dist/provider-classes-CM8Txuvb.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-B5c4V2kT.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-6lyGJVGE.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { a as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as
|
|
10
|
-
import { _ as definedAttributes, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as stringifyIfAssigned, y as isUsableAttemptedName } from "./resource-deadline-
|
|
11
|
-
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-CepgBr_y.js";
|
|
5
|
+
import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-1ZPAMzvz.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-D_7vFUjp.js";
|
|
7
|
+
import { a as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Bq_G9e4j.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-BMBei2v9.js";
|
|
9
|
+
import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-DLmPF7r5.js";
|
|
10
|
+
import { _ as definedAttributes, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as stringifyIfAssigned, y as isUsableAttemptedName } from "./resource-deadline-BcEyGRdL.js";
|
|
11
|
+
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-Di3eM8PN.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, an as physicalNameCopiesOf, fn as carriesSecretMask, i as ecsServiceLaunchTypeSetOrChanged, in as recoverMaskedOutput, it as hasMaskableValues, l as sameLambdaFunctionAddress, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recordAttributeIdCopy, s as lambdaFunctionNameForMask } from "./replacement-rules-
|
|
15
|
-
import { RDSProvider } from "./rds-provider-
|
|
16
|
-
import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
14
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, an as physicalNameCopiesOf, fn as carriesSecretMask, i as ecsServiceLaunchTypeSetOrChanged, in as recoverMaskedOutput, it as hasMaskableValues, l as sameLambdaFunctionAddress, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recordAttributeIdCopy, s as lambdaFunctionNameForMask } from "./replacement-rules-B4fLD_Ru.js";
|
|
15
|
+
import { RDSProvider } from "./rds-provider-CXjWWFKT.js";
|
|
16
|
+
import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-BoKzNMfz.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-Dhody0jz.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-26AfIhcd.js";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
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";
|
|
21
21
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -31821,6 +31821,103 @@ async function getTaskDefinitionAttribute(physicalId, attributeName) {
|
|
|
31821
31821
|
}
|
|
31822
31822
|
}
|
|
31823
31823
|
|
|
31824
|
+
// src/provisioning/providers/ecs/service-create-ambiguous.ts
|
|
31825
|
+
function answeredSuccess(error) {
|
|
31826
|
+
const status = error?.$metadata?.httpStatusCode;
|
|
31827
|
+
return typeof status === "number" && status >= 200 && status < 300;
|
|
31828
|
+
}
|
|
31829
|
+
function createServiceOutcomeUnknown(error) {
|
|
31830
|
+
return answeredSuccess(error) || isAmbiguousOutcomeError(error);
|
|
31831
|
+
}
|
|
31832
|
+
async function settleAmbiguousCreateService(attempt, log) {
|
|
31833
|
+
try {
|
|
31834
|
+
return await settle.call(this, attempt, log);
|
|
31835
|
+
} catch (error) {
|
|
31836
|
+
log.debug(`Looking for ECS service ${attempt.logicalId} after its ambiguous CreateService failure failed: ${describeAwsFailure(error).detail}`);
|
|
31837
|
+
return;
|
|
31838
|
+
}
|
|
31839
|
+
}
|
|
31840
|
+
async function settle(attempt, log) {
|
|
31841
|
+
const { logicalId, cluster, serviceName, createError } = attempt;
|
|
31842
|
+
if (!createServiceOutcomeUnknown(createError)) return void 0;
|
|
31843
|
+
if (attempt.heldBefore === "held") {
|
|
31844
|
+
log.debug(`CreateService for ECS service ${logicalId} failed without a definite answer, but a service already held the name before it: not this create's`);
|
|
31845
|
+
return;
|
|
31846
|
+
}
|
|
31847
|
+
const window = {
|
|
31848
|
+
floorMs: attempt.attemptStartMs - CREATION_DATE_SKEW_MARGIN_MS,
|
|
31849
|
+
ceilingMs: Date.now() + CREATION_DATE_SKEW_MARGIN_MS
|
|
31850
|
+
};
|
|
31851
|
+
const measuredFree = attempt.heldBeforeMeasured && attempt.heldBefore === "free";
|
|
31852
|
+
const aws = pasteableAwsCommand(log.mask);
|
|
31853
|
+
const clusterArg = cluster ? aws` --cluster ${cluster}` : aws``;
|
|
31854
|
+
const regionArg = await orphanCommandRegionArg$2(this.getClient(), aws);
|
|
31855
|
+
const describeCommand = aws`aws ecs describe-services${regionArg}${clusterArg} --services ${serviceName}`;
|
|
31856
|
+
const deleteCommand = aws`aws ecs delete-service${regionArg}${clusterArg} --service ${serviceName} --force`;
|
|
31857
|
+
const shown = (value) => isPlainImportValue(value) ? `(${value})` : VALUE_NOT_SHOWN;
|
|
31858
|
+
const subject = `ECS service ${logicalIdShown(logicalId)} ${shown(serviceName)}`;
|
|
31859
|
+
let found;
|
|
31860
|
+
let lookupFailure;
|
|
31861
|
+
try {
|
|
31862
|
+
const response = await this.getClient().send(new DescribeServicesCommand({
|
|
31863
|
+
cluster,
|
|
31864
|
+
services: [serviceName]
|
|
31865
|
+
}));
|
|
31866
|
+
const services = response?.services ?? [];
|
|
31867
|
+
const failures = response?.failures ?? [];
|
|
31868
|
+
if (services.length === 0 && failures.length === 1 && failures[0]?.reason === "MISSING") {
|
|
31869
|
+
if (answeredSuccess(createError)) log.debug(`No ECS service ${logicalId} exists after its ambiguous CreateService failure`);
|
|
31870
|
+
else log.warn(`CreateService for ${subject} failed without a definite answer, and no service holds the name yet; ECS may still create it. Check later: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
|
|
31871
|
+
return;
|
|
31872
|
+
}
|
|
31873
|
+
if (failures.length > 0 || services.length !== 1 || !services[0].serviceArn) lookupFailure = "DescribeServices gave no readable answer for the service name";
|
|
31874
|
+
else found = services[0];
|
|
31875
|
+
} catch (lookupError) {
|
|
31876
|
+
const failure = describeAwsFailure(lookupError);
|
|
31877
|
+
log.debug(`DescribeServices for ECS service ${logicalId} failed with: ${failure.detail}`);
|
|
31878
|
+
lookupFailure = `DescribeServices: ${failure.summary.replace(/\.$/, "")}`;
|
|
31879
|
+
}
|
|
31880
|
+
if (found !== void 0) {
|
|
31881
|
+
if (found.status === "INACTIVE") {
|
|
31882
|
+
log.debug(`ECS service ${logicalId} is INACTIVE after its ambiguous CreateService failure`);
|
|
31883
|
+
return;
|
|
31884
|
+
}
|
|
31885
|
+
const arn = found.serviceArn;
|
|
31886
|
+
if (!measuredFree) {
|
|
31887
|
+
if (isInsideWindow(found.createdAt, window)) log.warn(`CreateService for ${subject} failed without a definite answer, and the service ${shown(arn)} under that name was created during the attempt, which may make it this deploy's; cdkd did not check the name before creating, so it neither records nor deletes it. Inspect it: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
|
|
31888
|
+
else log.debug(`ECS service ${logicalId} exists after its ambiguous CreateService failure, but was not created during the attempt (${found.createdAt?.toISOString() ?? "no creation time"}): left alone`);
|
|
31889
|
+
return;
|
|
31890
|
+
}
|
|
31891
|
+
log.warn(`CreateService for ${subject} failed without a definite answer, but ECS created the service ${shown(arn)}. It is recorded on the failed create, so the automatic rollback, or a later rollback or destroy of the stack, deletes it.`);
|
|
31892
|
+
return arn;
|
|
31893
|
+
}
|
|
31894
|
+
if (!(answeredSuccess(createError) && measuredFree)) {
|
|
31895
|
+
log.warn(`CreateService for ${subject} failed without a definite answer, so ECS may have created the service, which no cdkd state records, and cdkd could not look for it (${lookupFailure}). Inspect it: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
|
|
31896
|
+
return;
|
|
31897
|
+
}
|
|
31898
|
+
log.warn(`CreateService for ${subject} created the service, but its answer could not be read (${lookupFailure}). Deleting it by name so no unrecorded service is left; if this run is interrupted, delete it with: ${deleteCommand.render()}`);
|
|
31899
|
+
try {
|
|
31900
|
+
await this.getClient().send(new DeleteServiceCommand({
|
|
31901
|
+
cluster,
|
|
31902
|
+
service: serviceName,
|
|
31903
|
+
force: true
|
|
31904
|
+
}));
|
|
31905
|
+
} catch (deleteError) {
|
|
31906
|
+
if (this.isServiceNotFoundException(deleteError)) {
|
|
31907
|
+
log.debug(`ECS service ${logicalId} was already gone when its cleanup ran`);
|
|
31908
|
+
return;
|
|
31909
|
+
}
|
|
31910
|
+
if (!answeredSuccess(deleteError)) {
|
|
31911
|
+
const failure = describeAwsFailure(deleteError);
|
|
31912
|
+
const head = `Failed to clean up ${subject}, which CreateService created before its answer could not be read: `;
|
|
31913
|
+
if (failure.redacted) log.debug(`${head}${failure.detail}`);
|
|
31914
|
+
log.warn(`${head}${failure.redacted ? `${failure.summary} ` : `${failure.detail}. `}Manual deletion may be required before the next deploy: ${deleteCommand.render()}`);
|
|
31915
|
+
return;
|
|
31916
|
+
}
|
|
31917
|
+
}
|
|
31918
|
+
log.warn(`Deleted ${subject}; it stays DRAINING for a while before the name is free again.`);
|
|
31919
|
+
}
|
|
31920
|
+
|
|
31824
31921
|
// src/provisioning/providers/ecs/service-create.ts
|
|
31825
31922
|
async function createService$1(logicalId, resourceType, properties, log, replayingState) {
|
|
31826
31923
|
log.debug(`Creating ECS service ${logicalId}`);
|
|
@@ -31830,8 +31927,27 @@ async function createService$1(logicalId, resourceType, properties, log, replayi
|
|
|
31830
31927
|
let survivorArn;
|
|
31831
31928
|
try {
|
|
31832
31929
|
const skipReason = controllerSkipsWait(properties);
|
|
31833
|
-
const
|
|
31834
|
-
const
|
|
31930
|
+
const heldBeforeMeasured = process.env["CDKD_NO_WAIT"] !== "true" && skipReason === void 0 && !replayingState;
|
|
31931
|
+
const heldBefore = heldBeforeMeasured ? await nameHeldBefore(() => this.serviceNameHeld(properties["Cluster"], serviceName), (error) => hasErrorName(error, ["ClusterNotFoundException"])) : "free";
|
|
31932
|
+
const sendCreate = async (command) => {
|
|
31933
|
+
const attemptStartMs = Date.now();
|
|
31934
|
+
try {
|
|
31935
|
+
return await client.send(command);
|
|
31936
|
+
} catch (createError) {
|
|
31937
|
+
survivorArn = await settleAmbiguousCreateService.call(this, {
|
|
31938
|
+
logicalId,
|
|
31939
|
+
cluster: properties["Cluster"],
|
|
31940
|
+
serviceName,
|
|
31941
|
+
createError,
|
|
31942
|
+
attemptStartMs,
|
|
31943
|
+
heldBefore,
|
|
31944
|
+
heldBeforeMeasured
|
|
31945
|
+
}, log);
|
|
31946
|
+
if (survivorArn !== void 0) reportCreatedResource(logicalId, resourceType, survivorArn);
|
|
31947
|
+
throw createError;
|
|
31948
|
+
}
|
|
31949
|
+
};
|
|
31950
|
+
const service = (await sendCreate(new CreateServiceCommand({
|
|
31835
31951
|
cluster: properties["Cluster"],
|
|
31836
31952
|
serviceName,
|
|
31837
31953
|
taskDefinition: properties["TaskDefinition"],
|
|
@@ -63069,4 +63185,4 @@ var ACMCertificateProvider = class {
|
|
|
63069
63185
|
};
|
|
63070
63186
|
|
|
63071
63187
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
63072
|
-
//# sourceMappingURL=provider-classes-
|
|
63188
|
+
//# sourceMappingURL=provider-classes-B3qqzXp-.js.map
|