@cdkd/cli 0.347.0 → 0.349.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-BV_xDm4m.js → ambient-client-defaults-7acjxfyN.js} +3 -3
- package/dist/{ambient-client-defaults-BV_xDm4m.js.map → ambient-client-defaults-7acjxfyN.js.map} +1 -1
- package/dist/{asg-provider-fpr4ZEfp.js → asg-provider-Dvy_jqxt.js} +5 -5
- package/dist/{asg-provider-fpr4ZEfp.js.map → asg-provider-Dvy_jqxt.js.map} +1 -1
- package/dist/aws-partition-DA0r2sr-.js +58 -0
- package/dist/aws-partition-DA0r2sr-.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/custom-resource-runtime-Dwnnj7bg.js +1104 -0
- package/dist/custom-resource-runtime-Dwnnj7bg.js.map +1 -0
- package/dist/{db-instance-modify-retry-BbBT68Qa.js → db-instance-modify-retry-pFWx2ED5.js} +4 -4
- package/dist/{db-instance-modify-retry-BbBT68Qa.js.map → db-instance-modify-retry-pFWx2ED5.js.map} +1 -1
- package/dist/delete-started-Co5Gt1jH.js +169 -0
- package/dist/delete-started-Co5Gt1jH.js.map +1 -0
- package/dist/{deploy-engine-DMWjQ_C2.js → deploy-engine-DeYSJno7.js} +720 -11916
- package/dist/deploy-engine-DeYSJno7.js.map +1 -0
- package/dist/diff-calculator-CRkRB1Dg.js +4959 -0
- package/dist/diff-calculator-CRkRB1Dg.js.map +1 -0
- package/dist/ec2-termination-protection-BM1Zt3Fn.js +1277 -0
- package/dist/ec2-termination-protection-BM1Zt3Fn.js.map +1 -0
- package/dist/{ecr-uri-C2FWGsrX.js → ecr-uri-C3_6QVgR.js} +3 -3
- package/dist/{ecr-uri-C2FWGsrX.js.map → ecr-uri-C3_6QVgR.js.map} +1 -1
- package/dist/expected-bucket-owner-CGoY_YS8.js +88 -0
- package/dist/expected-bucket-owner-CGoY_YS8.js.map +1 -0
- package/dist/{iam-role-provider-70-NzlFV.js → iam-role-provider-BaN9MMWs.js} +6 -5
- package/dist/iam-role-provider-BaN9MMWs.js.map +1 -0
- package/dist/image-plan-D4I8-FhR.js +1940 -0
- package/dist/image-plan-D4I8-FhR.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/{aws-failure-text-jomzO3aT.js → logger-DmQRya0S.js} +148 -59
- package/dist/logger-DmQRya0S.js.map +1 -0
- package/dist/{neptune-provider-CX4BHKjZ.js → neptune-provider-BYgFNrtZ.js} +6 -6
- package/dist/{neptune-provider-CX4BHKjZ.js.map → neptune-provider-BYgFNrtZ.js.map} +1 -1
- package/dist/{program-BU5T28eB.js → program-BBGm88gl.js} +1031 -2003
- package/dist/program-BBGm88gl.js.map +1 -0
- package/dist/{provider-classes-cw32hLq9.js → provider-classes-CRCHL04N.js} +44 -28
- package/dist/provider-classes-CRCHL04N.js.map +1 -0
- package/dist/{rds-provider-CxSVX1d7.js → rds-provider-DKZjtd50.js} +110 -70
- package/dist/rds-provider-DKZjtd50.js.map +1 -0
- package/dist/{read-replica-DtD9IDko.js → read-replica-C5e4xpYi.js} +78 -24
- package/dist/read-replica-C5e4xpYi.js.map +1 -0
- package/dist/replacement-rules-01_01yDU.js +4937 -0
- package/dist/replacement-rules-01_01yDU.js.map +1 -0
- package/dist/resource-deadline-TfDpwRQ_.js +423 -0
- package/dist/resource-deadline-TfDpwRQ_.js.map +1 -0
- package/dist/{update-removal-CpGaCv-d.js → update-removal-D-FspP88.js} +3 -3
- package/dist/{update-removal-CpGaCv-d.js.map → update-removal-D-FspP88.js.map} +1 -1
- package/dist/{version-Bx-Ox9xU.js → version-DamSnfI_.js} +2 -2
- package/dist/{version-Bx-Ox9xU.js.map → version-DamSnfI_.js.map} +1 -1
- package/package.json +4 -2
- package/dist/aws-failure-text-jomzO3aT.js.map +0 -1
- package/dist/deploy-engine-DMWjQ_C2.js.map +0 -1
- package/dist/iam-role-provider-70-NzlFV.js.map +0 -1
- package/dist/program-BU5T28eB.js.map +0 -1
- package/dist/provider-classes-cw32hLq9.js.map +0 -1
- package/dist/rds-provider-CxSVX1d7.js.map +0 -1
- package/dist/read-replica-DtD9IDko.js.map +0 -1
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-BaN9MMWs.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, at as asIsMessage, c as VERBOSE_POINTER, ct as displayIdent, d as describeAwsStatusReason, dt as isPasteableIdent, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, lt as displaySafe, mt as safeMsg, n as getLogger, nt as SECRET_REF_MAX_CODE_POINTS, p as safeStringify, pt as plainIdentOr, q as getCurrentStackInstanceId, u as describeAwsFailure, ut as displayStackName, w as generatedNameFor } from "./logger-DmQRya0S.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { Ct as withheldTargetClause, 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, St as shellQuote, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, _t as pasteableCommand, at as ProvisioningError, et as CdkdError, gt as isInertUnquoted, ht as hasClauseBreak, i as credentialFingerprint, mt as commandHole, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, yt as plainOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as deleteAfterProtectionFlipWithFinalSnapshot, A as setBounded, At as segmentAfterAnchor, B as resolveExplicitPhysicalId, Bt as clearCreatedBeforeFailure, C as AmbiguousCreateLatch, Ct as canonicalizeRoute53QueryName, D as isInsideWindow, Dt as logicalIdShown, E as createAttemptKey, Et as compositeIdSkipResult, F as isQuotableImportValue, Ft as maskDeep, H as assertRegionMatch, I as normalizeAwsTagsToCfn, It as maskerOrIdentity, J as observeThenDisableProtection, Jt as markSupersedesEarlierCreate, K as deleteWithProtectionCompensation, Kt as markAuxiliaryFailure, L as quotedRemedyLogicalId, Lt as withDerivedNameMasks, M as VALUE_NOT_SHOWN, Mt as createMaskedLogSinks, N as isPlainImportJson, Nt as createMaskedRetryLogger, O as replayFollowedAmbiguousAttempt, Ot as packCompositeId, P as isPlainImportValue, Pt as isSecretDerivedValue, Q as PROTECTION_FLIP_RETRY_WAIT_MS, R as refusalTypeShown, S as AMBIGUOUS_LATCH_TTL_MS, St as startInterruptWatch, T as ambiguousAttemptLead, Tt as compositeIdSeparatorRefusal, V as RESOURCE_NOT_FOUND, W as markNotGone, Wt as isAuxiliaryFailure, Y as rdsFamilyProtectionSite, Z as userPoolProtectionSite, _ as onlySecretDerived, _t as renderDisableCommand, a as withRemovalDefaults, at as isTerminalDeleteFailure, b as recordedPrincipalsRepair, cn as injectiveKeyPrefix, ct as ElapsedBudget, f as retractCreatedResource, ft as UNNAMEABLE_ID_CLAUSE, g as holdsSecretDerivedEntry, gt as protectedReplacementAdvice, h as SECRET_DERIVED_READ_LIVE, ht as pasteableAwsCommand, i as removedTemplateKeys, it as ProtectionFlipRegistry, j as withoutServerErrorRetries, jt as stateOrphanRecordRemedy, k as replayedSendWindow, lt as ElapsedBudgetRegistry, mt as isAwsCliLiteral, nt as isTerminalDbWaitStatus, ot as protectionFlipKey, pn as withPasteableAwsProfile, pt as WITHHELD_AWS_COMMAND, q as logGroupProtectionSite, qt as markCreatedBeforeFailure, sn as injectiveKey, t as clearOnUpdateRemoval, tt as isProceedDbStatus, u as reportCreatedResource, v as readPrincipalLists, w as RecentIdSet, wt as compositeIdFormatMessage, xt as isInterruptedWaitError, z as remedyLogicalId } from "./update-removal-
|
|
6
|
-
import {
|
|
7
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
4
|
+
import { Ct as withheldTargetClause, 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, St as shellQuote, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, _t as pasteableCommand, at as ProvisioningError, et as CdkdError, gt as isInertUnquoted, ht as hasClauseBreak, i as credentialFingerprint, mt as commandHole, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, yt as plainOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-7acjxfyN.js";
|
|
5
|
+
import { $ as deleteAfterProtectionFlipWithFinalSnapshot, A as setBounded, At as segmentAfterAnchor, B as resolveExplicitPhysicalId, Bt as clearCreatedBeforeFailure, C as AmbiguousCreateLatch, Ct as canonicalizeRoute53QueryName, D as isInsideWindow, Dt as logicalIdShown, E as createAttemptKey, Et as compositeIdSkipResult, F as isQuotableImportValue, Ft as maskDeep, H as assertRegionMatch, I as normalizeAwsTagsToCfn, It as maskerOrIdentity, J as observeThenDisableProtection, Jt as markSupersedesEarlierCreate, K as deleteWithProtectionCompensation, Kt as markAuxiliaryFailure, L as quotedRemedyLogicalId, Lt as withDerivedNameMasks, M as VALUE_NOT_SHOWN, Mt as createMaskedLogSinks, N as isPlainImportJson, Nt as createMaskedRetryLogger, O as replayFollowedAmbiguousAttempt, Ot as packCompositeId, P as isPlainImportValue, Pt as isSecretDerivedValue, Q as PROTECTION_FLIP_RETRY_WAIT_MS, R as refusalTypeShown, S as AMBIGUOUS_LATCH_TTL_MS, St as startInterruptWatch, T as ambiguousAttemptLead, Tt as compositeIdSeparatorRefusal, V as RESOURCE_NOT_FOUND, W as markNotGone, Wt as isAuxiliaryFailure, Y as rdsFamilyProtectionSite, Z as userPoolProtectionSite, _ as onlySecretDerived, _t as renderDisableCommand, a as withRemovalDefaults, at as isTerminalDeleteFailure, b as recordedPrincipalsRepair, cn as injectiveKeyPrefix, ct as ElapsedBudget, f as retractCreatedResource, ft as UNNAMEABLE_ID_CLAUSE, g as holdsSecretDerivedEntry, gt as protectedReplacementAdvice, h as SECRET_DERIVED_READ_LIVE, ht as pasteableAwsCommand, i as removedTemplateKeys, it as ProtectionFlipRegistry, j as withoutServerErrorRetries, jt as stateOrphanRecordRemedy, k as replayedSendWindow, lt as ElapsedBudgetRegistry, mt as isAwsCliLiteral, nt as isTerminalDbWaitStatus, ot as protectionFlipKey, pn as withPasteableAwsProfile, pt as WITHHELD_AWS_COMMAND, q as logGroupProtectionSite, qt as markCreatedBeforeFailure, sn as injectiveKey, t as clearOnUpdateRemoval, tt as isProceedDbStatus, u as reportCreatedResource, v as readPrincipalLists, w as RecentIdSet, wt as compositeIdFormatMessage, xt as isInterruptedWaitError, z as remedyLogicalId } from "./update-removal-D-FspP88.js";
|
|
6
|
+
import { i as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Co5Gt1jH.js";
|
|
7
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-BBGm88gl.js";
|
|
8
|
+
import { $ as planVectorIndexUpdates, $o as toFiniteNumber, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Co as outputReferenceProvenanceOf, Cr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Ct as TABLE_INDEX_NOUN, Da as resolvedResourceTimeoutMs, Dc as withoutSdkUnwiredProperties, Dt as waitForIndexesSettled, Ea as waitForGoneAfterDelete, El as decodeListingKey, Er as redactedDeleteAddressSkip, Et as relayedIndexBusyDelete, Fl as displayAssemblyPath, G as streamMemberRefusals, Gi as maskedSecretSegment, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, J as isTtlAlreadyDisabled, Jt as lookupEachName, K as streamPolicyMatchesDeclared, Kt as chunks, L as STREAM_POLICY_KEY, Ll as renderAssemblyPathEscape, Lr as getCurrentProducerRegions, Na as deleteSkipReason, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pa as withIndeterminateGuard, Pl as describeFileReadFailure, Q as sendTtlWaitingOutRateLimit, Qo as toCfnInteger, R as STREAM_TAGS_KEY, Rl as resolveAssemblyPath, Sa as getCurrentResourceSecrets, St as INDEX_SETTLE_POLL_INTERVAL_MS, Tr as redactedDeleteAddressFields, Tt as maskedLogger, U as streamDeclaresPolicy, Ut as getPriorAttempts, V as planStreamMemberOps, Va as isSettledInstanceState, W as streamDeclaresTags, Wi as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Wt as markRefusedBeforeApplying, X as planTimeToLive, Xo as coerceWarmThroughput$1, Y as isTtlRateLimited, Yo as WARM_THROUGHPUT_MEMBERS, Yt as withApiLimit, Z as readTtlSpec, Zo as isWarmThroughputDecrease, _ as listNestedTemplateRows, _t as compensateRemovedDeletionProtection, an as revertNestedChildFromJournal, as as passedParameterClassesOf, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, co as s3BucketDualStackDomainName, cr as reserveStackCreateToken, ct as planIndexContributorInsightsOps, di as replacedDeleteFailureVerdict, dt as reverseMapTableContributorInsights, ec as refuseMalformedNestedChildOutputs, et as readbackVectorIndexes, ft as stripIndexContributorInsights, g as isAbsoluteAssetPath, gc as withheldAccountClause, gt as beginDeleteWait, h as findNestedTemplateTreeDefect, hc as accountArgs, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jt as isTruthyCfnBoolean, ko as getAccountInfo, kt as S3_AUTO_DELETE_OBJECTS_TAG, li as getStackRecords, ln as getCurrentNestedStackContext, lo as s3BucketRegionalDomainName, lt as readContributorInsightsSpec, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, nl as rewriteTemplateAssetReferences, nn as getNestedRevertRun, nt as vectorIndexesSettled, oo as s3BucketArn, or as earliestDefined, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as stringifyValue, qt as isAccessDeniedError, rt as vectorIndexesShapeDetail, si as awaitInFlightSibling, so as s3BucketDomainName, st as planContributorInsightsOp, t as DeployEngine, tt as vectorIndexesForCreate, uc as refuseMalformedResourcesForDestroy, un as withNestedStackContext, uo as s3BucketWebsiteUrl, ur as acquireIdempotencyToken, ut as reverseMapIndexContributorInsights, v as renderNestedTemplateTreeDefect, vt as deleteBudgetKey, wa as waitForLambdaFunctionActive, wc as findSdkUnwiredProperties, wr as isRedactedRecordedValue, wt as deleteTableWithIndexBusyRetry, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, yo as parseWebACLArn, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zi as secretNamedAttributeNamesOf } from "./deploy-engine-DeYSJno7.js";
|
|
9
|
+
import { _ as tagMapAsList, c as refuseRestoreFromItself, d as stringifyIfAssigned, f as DBPROXY_TAGS_WHAT, g as refuseMalformedDesiredTags, h as readTagList, m as planTagDiff, n as enclosingDeadlineRemainingMs, p as DBPROXY_TAG_OPTIONS, t as enclosingDeadlineExpired, u as definedAttributes, v as tagPlanWarning, y as isUsableAttemptedName } from "./resource-deadline-TfDpwRQ_.js";
|
|
10
|
+
import { E as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, y as withRetry } from "./ec2-termination-protection-BM1Zt3Fn.js";
|
|
11
|
+
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
12
|
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
+
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-01_01yDU.js";
|
|
14
|
+
import { RDSProvider } from "./rds-provider-DKZjtd50.js";
|
|
15
|
+
import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-pFWx2ED5.js";
|
|
16
|
+
import { NeptuneProvider } from "./neptune-provider-BYgFNrtZ.js";
|
|
17
|
+
import { ASGProvider } from "./asg-provider-Dvy_jqxt.js";
|
|
13
18
|
import { createHash, randomUUID } from "node:crypto";
|
|
14
19
|
import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
|
|
15
20
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -224,10 +229,10 @@ async function detachPartialPolicy(logicalId, policyName, attached, sinks, maskS
|
|
|
224
229
|
if (failure.redacted) log.debug(`Failed to detach the partially-created IAM policy ${logicalId} (${v(policyName)}) from ${step.what}: ${failure.detail}`);
|
|
225
230
|
withheld ||= failure.redacted;
|
|
226
231
|
const tail = ` ${VERBOSE_POINTER}`;
|
|
227
|
-
const reason = !failure.redacted ? failure.detail : failure.summary.endsWith(tail) ? failure.summary.slice(0, -tail.length).replace(/\.$/, "")
|
|
232
|
+
const reason = !failure.redacted ? failure.detail : (failure.summary.endsWith(tail) ? failure.summary.slice(0, -tail.length) : failure.summary).replace(/\.$/, "");
|
|
228
233
|
failed.push(`${step.what} (${log.mask(reason)}): ${step.command}`);
|
|
229
234
|
}
|
|
230
|
-
if (failed.length > 0) log.warn(`Failed to detach the partially-created IAM policy ${logicalId} (${v(policyName)}) after its create failed; cdkd has no record of it, so it stays attached and granting until it is removed by hand${withheld ? ` (${VERBOSE_POINTER.replace(/\.$/, "")})` : ""}: ${failed.join("; ")}`);
|
|
235
|
+
if (failed.length > 0) log.warn(`Failed to detach the partially-created IAM policy ${logicalId} (${v(policyName)}) after its create failed; cdkd has no record of it, so it stays attached and granting until it is removed by hand${withheld && verbosePointerSentence() ? ` (${VERBOSE_POINTER.replace(/\.$/, "")})` : ""}: ${failed.join("; ")}`);
|
|
231
236
|
}
|
|
232
237
|
|
|
233
238
|
// src/provisioning/providers/iam-policy/update.ts
|
|
@@ -4606,7 +4611,7 @@ function carriesBucketRegionHeader(error) {
|
|
|
4606
4611
|
function probeFailedCause(errorName) {
|
|
4607
4612
|
return {
|
|
4608
4613
|
why: `the GetBucketLocation identity check failed (${errorName})`,
|
|
4609
|
-
remedy:
|
|
4614
|
+
remedy: `${verbosePointerSentence()}Re-run the destroy once the check can succeed, or grant s3:GetBucketLocation on the bucket (a bucket policy can Deny it), to have the guard verify the target first.`
|
|
4610
4615
|
};
|
|
4611
4616
|
}
|
|
4612
4617
|
function noRecordedRegionCause() {
|
|
@@ -6001,7 +6006,7 @@ async function create$38(logicalId, resourceType, properties, context) {
|
|
|
6001
6006
|
if (createdNewBucket) windowSpent = true;
|
|
6002
6007
|
if (preflight.kind === "region" && preflight.region !== "us-east-1") this.refuseForeignRegionAdopt(logicalId, resourceType, bucketName, "us-east-1", preflight.region);
|
|
6003
6008
|
if (preflight.kind === "region" && !adoptedOwnLeftover) this.logger.warn(`S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}) already existed in ${preflight.region} and was ADOPTED, not created. In us-east-1 S3 answers a re-create of a bucket you already own with 200 OK and RESETS that bucket's access control lists, so any ACL previously set on ${this.shown(bucketName)} is now the default. cdkd will not delete this bucket if the rest of this create fails.`);
|
|
6004
|
-
if (ownershipUnknown !== void 0 && preflight.kind === "indeterminate") this.logger.warn(safeMsg`S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}) was ` + `sent to CreateBucket without knowing whether a bucket of that explicit name ` + safeMsg`already existed: the region probe (${preflight.errorName}) and the bucket ` + safeMsg`listing (${ownershipUnknown}) both failed. In us-east-1 CreateBucket answers 200 ` +
|
|
6009
|
+
if (ownershipUnknown !== void 0 && preflight.kind === "indeterminate") this.logger.warn(safeMsg`S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}) was ` + `sent to CreateBucket without knowing whether a bucket of that explicit name ` + safeMsg`already existed: the region probe (${preflight.errorName}) and the bucket ` + safeMsg`listing (${ownershipUnknown}) both failed. In us-east-1 CreateBucket answers 200 ` + `OK over a bucket you own, so if one existed it has now been configured and ` + safeMsg`recorded as this stack's.${verbosePointerTail()}`);
|
|
6005
6010
|
this.logger.debug(`Created S3 bucket: ${this.shown(bucketName)}`);
|
|
6006
6011
|
} catch (createError) {
|
|
6007
6012
|
if (createError instanceof ProvisioningError) throw createError;
|
|
@@ -6047,11 +6052,11 @@ async function create$38(logicalId, resourceType, properties, context) {
|
|
|
6047
6052
|
this.logger.debug(`Cleaned up partially-created S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}) after wiring failure`);
|
|
6048
6053
|
} catch (cleanupError) {
|
|
6049
6054
|
this.logger.debug(`DeleteBucket cleanup failed for S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}): ${describeAwsFailure(cleanupError).detail}`);
|
|
6050
|
-
this.logger.warn(safeMsg`Failed to clean up partially-created S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}) ` + safeMsg`(${cleanupError instanceof Error ? cleanupError.name : typeof cleanupError}). ` + `
|
|
6055
|
+
this.logger.warn(safeMsg`Failed to clean up partially-created S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}) ` + safeMsg`(${cleanupError instanceof Error ? cleanupError.name : typeof cleanupError}). ` + safeMsg`${verbosePointerSentence()}` + safeMsg`${manualBucketDeletionClause(bucketName, this.shownMask, true)}`);
|
|
6051
6056
|
}
|
|
6052
6057
|
else if (preflight.kind === "indeterminate") {
|
|
6053
6058
|
this.logger.debug(`GetBucketLocation failed for S3 bucket ${this.shown(bucketName)} (${displaySafe(logicalId)}) during create: ${preflight.reason}`);
|
|
6054
|
-
this.logger.warn(safeMsg`Not cleaning up S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}) after a wiring failure: ` + `this deploy could not confirm whether it created the bucket (region probe failed: ` + safeMsg`${preflight.errorName}), and in us-east-1 a successful CreateBucket does not ` +
|
|
6059
|
+
this.logger.warn(safeMsg`Not cleaning up S3 bucket ${displaySafe(logicalId)} (${this.shown(bucketName)}) after a wiring failure: ` + `this deploy could not confirm whether it created the bucket (region probe failed: ` + safeMsg`${preflight.errorName}), and in us-east-1 a successful CreateBucket does not ` + safeMsg`prove it. ${verbosePointerSentence()}If cdkd created it, the ` + `bucket is an orphan. ` + safeMsg`${manualBucketDeletionClause(bucketName, this.shownMask, false)}`);
|
|
6055
6060
|
}
|
|
6056
6061
|
throw markAuxiliaryFailure(innerError, logicalId);
|
|
6057
6062
|
}
|
|
@@ -8054,11 +8059,13 @@ async function applyUpdate$6(logicalId, physicalId, resourceType, properties, pr
|
|
|
8054
8059
|
},
|
|
8055
8060
|
{
|
|
8056
8061
|
name: "ContentBasedDeduplication",
|
|
8057
|
-
prop: "ContentBasedDeduplication"
|
|
8062
|
+
prop: "ContentBasedDeduplication",
|
|
8063
|
+
resetValue: "false"
|
|
8058
8064
|
},
|
|
8059
8065
|
{
|
|
8060
8066
|
name: "TracingConfig",
|
|
8061
|
-
prop: "TracingConfig"
|
|
8067
|
+
prop: "TracingConfig",
|
|
8068
|
+
resetValue: "PassThrough"
|
|
8062
8069
|
},
|
|
8063
8070
|
{
|
|
8064
8071
|
name: "SignatureVersion",
|
|
@@ -8071,7 +8078,8 @@ async function applyUpdate$6(logicalId, physicalId, resourceType, properties, pr
|
|
|
8071
8078
|
{
|
|
8072
8079
|
name: "ArchivePolicy",
|
|
8073
8080
|
prop: "ArchivePolicy",
|
|
8074
|
-
serialize: true
|
|
8081
|
+
serialize: true,
|
|
8082
|
+
resetValue: "{}"
|
|
8075
8083
|
},
|
|
8076
8084
|
{
|
|
8077
8085
|
name: "DataProtectionPolicy",
|
|
@@ -8089,7 +8097,7 @@ async function applyUpdate$6(logicalId, physicalId, resourceType, properties, pr
|
|
|
8089
8097
|
const oldVal = previousProperties[attr.prop];
|
|
8090
8098
|
if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
|
|
8091
8099
|
let value;
|
|
8092
|
-
if (newVal === void 0 || newVal === null) value = attr.resetValue ?? "";
|
|
8100
|
+
if (newVal === void 0 || newVal === null || newVal === "" && attr.resetValue !== void 0) value = attr.resetValue ?? "";
|
|
8093
8101
|
else if (attr.serialize && typeof newVal !== "string") value = JSON.stringify(newVal);
|
|
8094
8102
|
else value = stringifyValue(newVal);
|
|
8095
8103
|
await this.snsClient.send(new SetTopicAttributesCommand({
|
|
@@ -8388,6 +8396,13 @@ var SNSTopicProvider = class {
|
|
|
8388
8396
|
getDriftUnknownPaths() {
|
|
8389
8397
|
return [];
|
|
8390
8398
|
}
|
|
8399
|
+
canonicalizeDriftProperties(_resourceType, properties) {
|
|
8400
|
+
if (properties["TracingConfig"] !== "PassThrough") return properties;
|
|
8401
|
+
return {
|
|
8402
|
+
...properties,
|
|
8403
|
+
TracingConfig: ""
|
|
8404
|
+
};
|
|
8405
|
+
}
|
|
8391
8406
|
generatedCreateName(_resourceType, logicalId, properties) {
|
|
8392
8407
|
if (properties["TopicName"]) return void 0;
|
|
8393
8408
|
return generatedNameFor("AWS::SNS::Topic", logicalId, { properties });
|
|
@@ -25529,7 +25544,7 @@ async function update$30(logicalId, physicalId, resourceType, properties, previo
|
|
|
25529
25544
|
case "AWS::ApiGateway::Deployment": return this.updateDeployment(logicalId, physicalId, resourceType, properties, previousProperties, log);
|
|
25530
25545
|
case "AWS::ApiGateway::Stage": return this.updateStage(logicalId, physicalId, resourceType, properties, previousProperties, stageSinks$1(this.logger, context, [[properties["StageName"], physicalId], [previousProperties["StageName"], physicalId]]));
|
|
25531
25546
|
case "AWS::ApiGateway::Method": return this.updateMethod(logicalId, physicalId, resourceType, properties, previousProperties, log, context?.desiredFromAwsReadback === true);
|
|
25532
|
-
case "AWS::ApiGateway::RestApi": return this.updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, context?.changedProperties, context?.noEchoOnlyChangedProperties);
|
|
25547
|
+
case "AWS::ApiGateway::RestApi": return this.updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, context?.changedProperties, context?.noEchoOnlyChangedProperties, context?.keptNoEchoOnlyProperty);
|
|
25533
25548
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
25534
25549
|
}
|
|
25535
25550
|
}
|
|
@@ -26897,7 +26912,7 @@ async function retireFailedRestApi(restApiId, log) {
|
|
|
26897
26912
|
return ` The REST API ${restApiId} it created could not be deleted (${describeAwsFailure(cleanupError).summary}); delete it with: ` + aws`aws apigateway delete-rest-api --rest-api-id ${restApiId}${regionArg}`.render();
|
|
26898
26913
|
}
|
|
26899
26914
|
}
|
|
26900
|
-
async function updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged) {
|
|
26915
|
+
async function updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged, keptNoEchoOnly) {
|
|
26901
26916
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
26902
26917
|
try {
|
|
26903
26918
|
let current = previousProperties;
|
|
@@ -26908,7 +26923,8 @@ async function updateRestApi(logicalId, physicalId, resourceType, properties, pr
|
|
|
26908
26923
|
const named = BODY_KEYS.filter((key) => changedProperties.has(key));
|
|
26909
26924
|
if (named.length > 0 && named.every((key) => noEchoOnlyChanged.has(key))) {
|
|
26910
26925
|
bodyChanged = false;
|
|
26911
|
-
|
|
26926
|
+
for (const key of named) keptNoEchoOnly?.(key);
|
|
26927
|
+
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 'cdkd bootstrap' creates, 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.`);
|
|
26912
26928
|
}
|
|
26913
26929
|
}
|
|
26914
26930
|
if (bodyChanged) {
|
|
@@ -27401,8 +27417,8 @@ var ApiGatewayProvider = class {
|
|
|
27401
27417
|
createRestApi(logicalId, resourceType, properties, log) {
|
|
27402
27418
|
return createRestApi.call(this, logicalId, resourceType, properties, log);
|
|
27403
27419
|
}
|
|
27404
|
-
updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged) {
|
|
27405
|
-
return updateRestApi.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged);
|
|
27420
|
+
updateRestApi(logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged, keptNoEchoOnly) {
|
|
27421
|
+
return updateRestApi.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, changedProperties, noEchoOnlyChanged, keptNoEchoOnly);
|
|
27406
27422
|
}
|
|
27407
27423
|
deleteRestApi(logicalId, physicalId, resourceType, context) {
|
|
27408
27424
|
return deleteRestApi.call(this, logicalId, physicalId, resourceType, context);
|
|
@@ -31873,7 +31889,7 @@ function wrapWaiterResultError(error, logicalId, log) {
|
|
|
31873
31889
|
}
|
|
31874
31890
|
if (typeof state !== "string" || !/^[A-Z]+$/.test(state)) return error;
|
|
31875
31891
|
log.debug(`ECS service ${logicalId} ServicesStable waiter result: ${error.message}`);
|
|
31876
|
-
const reduced = new Error(`the ServicesStable waiter ended in state ${state}${error.name && error.name !== "Error" ? ` (${error.name})` : ""}
|
|
31892
|
+
const reduced = new Error(`the ServicesStable waiter ended in state ${state}${error.name && error.name !== "Error" ? ` (${error.name})` : ""}.${verbosePointerTail()}`, { cause: error });
|
|
31877
31893
|
reduced.name = error.name;
|
|
31878
31894
|
return markRedactedCause(reduced);
|
|
31879
31895
|
}
|
|
@@ -32885,7 +32901,7 @@ async function importCluster(input) {
|
|
|
32885
32901
|
const unanswered = (resp.failures ?? []).find((f) => f.reason !== "MISSING");
|
|
32886
32902
|
if (unanswered !== void 0) {
|
|
32887
32903
|
if (unanswered.detail !== void 0) this.logger.debug(`DescribeClusters failure detail for cluster ${displaySafe(explicit)}: ${displaySafe(unanswered.detail)}`);
|
|
32888
|
-
throw new Error(`DescribeClusters did not answer for cluster ${displaySafe(explicit)}: ${displaySafe(unanswered.reason ?? "no reason given")}` + (unanswered.detail !== void 0 ?
|
|
32904
|
+
throw new Error(`DescribeClusters did not answer for cluster ${displaySafe(explicit)}: ${displaySafe(unanswered.reason ?? "no reason given")}` + (unanswered.detail !== void 0 ? `.${verbosePointerTail()}` : ""));
|
|
32889
32905
|
}
|
|
32890
32906
|
return null;
|
|
32891
32907
|
}
|
|
@@ -62932,4 +62948,4 @@ var ACMCertificateProvider = class {
|
|
|
62932
62948
|
};
|
|
62933
62949
|
|
|
62934
62950
|
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 };
|
|
62935
|
-
//# sourceMappingURL=provider-classes-
|
|
62951
|
+
//# sourceMappingURL=provider-classes-CRCHL04N.js.map
|