@go-to-k/cdkd 0.296.21 → 0.296.22
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/{asg-provider-D5_Zlj5T.js → asg-provider-BYk2trWp.js} +2 -2
- package/dist/{asg-provider-D5_Zlj5T.js.map → asg-provider-BYk2trWp.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-CFgNpsEy.js → deploy-engine-BueFQdfN.js} +154 -93
- package/dist/{deploy-engine-CFgNpsEy.js.map → deploy-engine-BueFQdfN.js.map} +1 -1
- package/dist/{iam-role-provider-lZJS9r6W.js → iam-role-provider-CGY8o8Pv.js} +2 -2
- package/dist/{iam-role-provider-lZJS9r6W.js.map → iam-role-provider-CGY8o8Pv.js.map} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{neptune-provider-DGI_r9C8.js → neptune-provider-7hDILb3t.js} +2 -2
- package/dist/{neptune-provider-DGI_r9C8.js.map → neptune-provider-7hDILb3t.js.map} +1 -1
- package/dist/{program-B5hwPYpu.js → program-B6NoMGdN.js} +11 -7
- package/dist/{program-B5hwPYpu.js.map → program-B6NoMGdN.js.map} +1 -1
- package/dist/{provider-classes-D9az4nS4.js → provider-classes-SKdRlxGS.js} +75 -13
- package/dist/provider-classes-SKdRlxGS.js.map +1 -0
- package/dist/{rds-provider-CE85wFCg.js → rds-provider-Cc9l4-JW.js} +2 -2
- package/dist/{rds-provider-CE85wFCg.js.map → rds-provider-Cc9l4-JW.js.map} +1 -1
- package/dist/{version-_h48bvqX.js → version-COXjPf3D.js} +2 -2
- package/dist/{version-_h48bvqX.js.map → version-COXjPf3D.js.map} +1 -1
- package/package.json +1 -1
- package/dist/provider-classes-D9az4nS4.js.map +0 -1
|
@@ -2,12 +2,12 @@ import { r as getAwsClients } from "./aws-clients-CnmtbrxD.js";
|
|
|
2
2
|
import { F as displayStackName, I as isPasteableIdent, N as displayIdent, O as SECRET_REF_MAX_CODE_POINTS, P as displaySafe, R as plainIdentOr, a as getLogger, b as generateResourceNameWithFallback, n as isAwsAuthoredFailure, r as safeStringify, t as describeAwsFailure, y as generateResourceName, z as safeMsg } from "./aws-failure-text-BaWeCWRz.js";
|
|
3
3
|
import { $ as protectedReplacementAdvice, $t as AccountIdUnavailableError, A as isQuotableImportValue, An as commandHole, B as isTerminalDeleteFailure, C as setBounded, D as VALUE_NOT_SHOWN, E as assertRegionMatch, F as resolveExplicitPhysicalId, Fn as plainOrDescribed, H as observeThenDisableProtection, Jn as markNameCollision, Jt as withPasteableAwsProfile, L as ProtectionFlipRegistry, M as quotedRemedyLogicalId, Mn as isInertUnquoted, Mt as markCreatedBeforeFailure, N as refusalTypeShown, Nn as pasteableCommand, O as isPlainImportJson, P as remedyLogicalId, Q as pasteableAwsCommand, Qn as isAmbiguousOutcomeError, Qt as credentialFingerprint, Rn as shellQuote, S as replayedSendWindow, St as withDerivedNameMasks, T as RESOURCE_NOT_FOUND, Tt as clearCreatedBeforeFailure, U as protectionFlipKey, Ut as injectiveKey, V as logGroupProtectionSite, W as rdsFamilyProtectionSite, Wt as injectiveKeyPrefix, X as WITHHELD_AWS_COMMAND, Xt as ambientCredentialConfig, Y as UNNAMEABLE_ID_CLAUSE, Yn as markReplayMayCollide, Yt as ambientClientDefaults, Z as isAwsCliLiteral, Zt as clientDefaultsFor, _ as RecentIdSet, _n as ResourceUpdateNotSupportedError, _t as createMaskedLogSinks, a as onlySecretDerived, ar as isThrottlingError, at as startInterruptWatch, b as isInsideWindow, bt as maskDeep, c as recordedPrincipalsRepair, cr as wrapMaskedAwsError, ct as canonicalizeRoute53QueryName, dt as compositeIdSkipResult, er as isRetryableTransientError, et as renderDisableCommand, ft as logicalIdShown, g as AmbiguousCreateLatch, gt as stateOrphanRecordRemedy, h as AMBIGUOUS_LATCH_TTL_MS, hn as ProvisioningError, ht as segmentAfterAnchor, i as holdsSecretDerivedEntry, ir as isMarkedNonRetryable, it as isInterruptedWaitError, j as normalizeAwsTagsToCfn, jn as hasClauseBreak, jt as markAuxiliaryFailure, k as isPlainImportValue, lt as compositeIdFormatMessage, o as readPrincipalLists, or as markNonRetryable, ot as ElapsedBudgetRegistry, p as withRemovalDefaults, pt as packCompositeId, q as userPoolProtectionSite, r as SECRET_DERIVED_READ_LIVE, rr as THROTTLING_ERROR_NAMES, sr as markRedactedCause, tn as CdkdError, tr as isTransientServerError, u as clearOnUpdateRemoval, ut as compositeIdSeparatorRefusal, v as ambiguousAttemptLead, vt as createMaskedRetryLogger, w as withoutServerErrorRetries, x as replayFollowedAmbiguousAttempt, xt as maskerOrIdentity, y as createAttemptKey, yt as isSecretDerivedValue, z as deleteWithProtectionCompensation, zn as withheldTargetClause } from "./iam-policy-targets-BoZuWtxK.js";
|
|
4
4
|
import { s as ambientRegion } from "./aws-client-defaults-D0q0z4dG.js";
|
|
5
|
-
import { A as beginDeleteWait, B as S3_AUTO_DELETE_OBJECTS_TAG, Ba as
|
|
6
|
-
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-
|
|
7
|
-
import { a as canonicalizeIpProtocolValue, i as resolveSecretDerivedPrincipals, n as runDestroyForStack, o as resolvedResourceTimeoutMs, r as isResolvableSecretPrincipalList, t as canonicalizeIpv4Cidr } from "./program-
|
|
8
|
-
import { RDSProvider } from "./rds-provider-
|
|
9
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
10
|
-
import { ASGProvider } from "./asg-provider-
|
|
5
|
+
import { $a as lambdaFunctionNameForMask, A as beginDeleteWait, B as S3_AUTO_DELETE_OBJECTS_TAG, Ba as configBooleanRefusal, Br as s3BucketArn, Cc as derivePartitionAndUrlSuffix, Eo as redactSecretsForState, Et as awaitInFlightSibling, F as DELETE_INDEX_WAIT_PROCEED_NOTE, Fa as isWarmThroughputDecrease, Fc as renderAssemblyPathEscape, Fo as recoverMaskedOutput, Ga as requireConfigArray, Gn as readTagList, Gt as REDACTED_DELETE_ADDRESS_SKIP_REASON, H as isTruthyCfnBoolean, Ha as configStringRefusal, Hi as refuseMalformedNestedChildOutputs, Hn as DBPROXY_TAGS_WHAT, Hr as s3BucketDualStackDomainName, I as INDEX_SETTLE_POLL_INTERVAL_MS, Ia as toCfnInteger, Ic as resolveAssemblyPath, Io as carriesSecretMask, Jn as tagPlanWarning, Jr as getAccountInfo, Jt as redactedDeleteAddressSkip, Ka as requireConfigObject, Kn as refuseMalformedDesiredTags, Kt as isRedactedRecordedValue, L as deleteTableWithIndexBusyRetry, La as toFiniteNumber, Ln as earliestDefined, M as deleteBudgetKey, N as resolveDynamoDbDeleteBudgetClock, Na as WARM_THROUGHPUT_MEMBERS, Nc as describeFileReadFailure, O as DynamoDBGlobalTableProvider, Ot as getStackRecords, P as resolveDynamoDbDeleteBudgetMs, Pa as coerceWarmThroughput$1, Pc as displayAssemblyPath, Qa as canonicalLambdaFunctionName, R as waitForIndexesSettled, Ra as coerceCfnBoolean, Sa as findSilentDropProperties, Sc as canonicalizeRegion, To as markSameGenerationBag, U as getPriorAttempts, Ua as readConfigString, Un as DBPROXY_TAG_OPTIONS, Ur as s3BucketRegionalDomainName, Ut as getCurrentProducerRegions, V as hasCdkAutoDeleteTag, Va as configIntegerRefusal, Vn as acquireIdempotencyToken, Vr as s3BucketDomainName, W as markRefusedBeforeApplying, Wa as replayWarn, Wn as planTagDiff, Wr as s3BucketWebsiteUrl, Xn as stringifyIfAssigned, Yn as definedAttributes, Za as withRetry, _r as ec2InstanceProtectionSite, a as findNestedTemplateTreeDefect, ar as getCurrentResourceSecrets, ba as withheldAccountClause, br as reDisableInstanceApiTermination, c as renderNestedTemplateTreeDefect, ca as refuseMalformedResourcesForDestroy, cr as slowCcOperationTimeoutMs, eo as sameLambdaFunctionAddress, fr as deleteSkipReason, ft as revertNestedChildFromJournal, gt as withNestedStackContext, hr as markWaitAbandoned, ht as getCurrentNestedStackContext, ii as parseWebACLArn, j as compensateRemovedDeletionProtection, k as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ko as dynamicReferenceTokens, lo as passedNoEchoParametersOf, lr as unchangedBehindSecretReference, lt as getNestedRevertRun, mo as hasMaskableValues, mr as isWaitAbandonedError, ms as stringifyValue, o as isAbsoluteAssetPath, pi as accountArgs, pr as withIndeterminateGuard, qa as requireConfigString, qn as tagMapAsList, qt as redactedDeleteAddressFields, s as listNestedTemplateRows, si as passedParameterClassesOf, t as DeployEngine, vr as isTerminationProtectionPropagationError, wa as withoutSilentDropProperties, xr as reEnableInstanceApiTermination, yc as decodeListingKey, yr as observeThenDisableInstanceApiTermination, ys as rewriteTemplateAssetReferences, z as ECR_AUTO_DELETE_IMAGES_TAG, za as coerceCfnInteger, zn as reserveStackCreateToken, zr as isSettledInstanceState } from "./deploy-engine-BueFQdfN.js";
|
|
6
|
+
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-CGY8o8Pv.js";
|
|
7
|
+
import { a as canonicalizeIpProtocolValue, i as resolveSecretDerivedPrincipals, n as runDestroyForStack, o as resolvedResourceTimeoutMs, r as isResolvableSecretPrincipalList, t as canonicalizeIpv4Cidr } from "./program-B6NoMGdN.js";
|
|
8
|
+
import { RDSProvider } from "./rds-provider-Cc9l4-JW.js";
|
|
9
|
+
import { NeptuneProvider } from "./neptune-provider-7hDILb3t.js";
|
|
10
|
+
import { ASGProvider } from "./asg-provider-BYk2trWp.js";
|
|
11
11
|
import { createHash, randomUUID } from "node:crypto";
|
|
12
12
|
import { CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
|
|
13
13
|
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, UpdateLoginProfileCommand } from "@aws-sdk/client-iam";
|
|
@@ -3089,6 +3089,23 @@ function holdCreateBucketWindow(logicalId, window) {
|
|
|
3089
3089
|
heldAtMs: Date.now()
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
3092
|
+
const ownLeftoverBuckets = /* @__PURE__ */ new Map();
|
|
3093
|
+
function holdOwnLeftoverBucket(logicalId, identity) {
|
|
3094
|
+
setBounded(ownLeftoverBuckets, createAttemptKey("CreateBucket", logicalId), {
|
|
3095
|
+
identity,
|
|
3096
|
+
heldAtMs: Date.now()
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3099
|
+
const OWN_LEFTOVER_IDENTITY_TIMEOUT_MS = 1e4;
|
|
3100
|
+
function tokenDate(token) {
|
|
3101
|
+
return token.slice(token.lastIndexOf("|") + 1);
|
|
3102
|
+
}
|
|
3103
|
+
function takeOwnLeftoverBucket(logicalId) {
|
|
3104
|
+
const key = createAttemptKey("CreateBucket", logicalId);
|
|
3105
|
+
const held = ownLeftoverBuckets.get(key);
|
|
3106
|
+
ownLeftoverBuckets.delete(key);
|
|
3107
|
+
return held !== void 0 && Date.now() - held.heldAtMs <= 18e5 ? held.identity : void 0;
|
|
3108
|
+
}
|
|
3092
3109
|
var S3BucketProvider = class S3BucketProvider {
|
|
3093
3110
|
s3Client;
|
|
3094
3111
|
createClientHolder = {};
|
|
@@ -3150,6 +3167,40 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
3150
3167
|
const listed = await this.listOwnedBucket(bucketName);
|
|
3151
3168
|
return "unknown" in listed ? listed : { owned: listed.bucket !== void 0 };
|
|
3152
3169
|
}
|
|
3170
|
+
async boundedIdentity(bucketName, resourceType, region) {
|
|
3171
|
+
let timer;
|
|
3172
|
+
try {
|
|
3173
|
+
return await Promise.race([this.resourceIdentity(bucketName, resourceType, { expectedRegion: region }), new Promise((resolve) => {
|
|
3174
|
+
timer = setTimeout(() => resolve(void 0), OWN_LEFTOVER_IDENTITY_TIMEOUT_MS);
|
|
3175
|
+
})]);
|
|
3176
|
+
} finally {
|
|
3177
|
+
clearTimeout(timer);
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
async holdOwnLeftover(logicalId, resourceType, bucketName) {
|
|
3181
|
+
try {
|
|
3182
|
+
const region = canonicalizeRegion(await this.getRegion());
|
|
3183
|
+
const identity = await this.boundedIdentity(bucketName, resourceType, region);
|
|
3184
|
+
if (typeof identity === "string") {
|
|
3185
|
+
holdOwnLeftoverBucket(logicalId, identity);
|
|
3186
|
+
this.logger.debug(safeMsg`Recorded the bucket ${this.shown(bucketName)} this failed create of ${displaySafe(logicalId)} leaves (created ${tokenDate(identity)}), for its retry`);
|
|
3187
|
+
} else this.logger.debug(safeMsg`No identity for the bucket ${this.shown(bucketName)} this failed create of ${displaySafe(logicalId)} leaves; a retry will refuse it`);
|
|
3188
|
+
} catch {}
|
|
3189
|
+
}
|
|
3190
|
+
async isOwnLeftoverBucket(leftover, bucketName, resourceType, region) {
|
|
3191
|
+
if (leftover === void 0) {
|
|
3192
|
+
this.logger.debug(safeMsg`Not this create's own bucket: no earlier attempt recorded ${this.shown(bucketName)}`);
|
|
3193
|
+
return false;
|
|
3194
|
+
}
|
|
3195
|
+
try {
|
|
3196
|
+
const identity = await this.boundedIdentity(bucketName, resourceType, region);
|
|
3197
|
+
if (typeof identity === "string" && identity === leftover) return true;
|
|
3198
|
+
this.logger.debug(safeMsg`Not this create's own bucket: ${this.shown(bucketName)} reads ` + safeMsg`${typeof identity === "string" ? `created ${tokenDate(identity)}` : "no identity"}, ` + safeMsg`the earlier attempt recorded created ${tokenDate(leftover)}`);
|
|
3199
|
+
return false;
|
|
3200
|
+
} catch {
|
|
3201
|
+
return false;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3153
3204
|
async listOwnedBucket(bucketName) {
|
|
3154
3205
|
try {
|
|
3155
3206
|
let token;
|
|
@@ -4342,30 +4393,38 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
4342
4393
|
let createdNewBucket = false;
|
|
4343
4394
|
const createClient = await this.getCreateClient();
|
|
4344
4395
|
ambiguousWindow = takeCreateBucketWindow(logicalId);
|
|
4396
|
+
const ownLeftover = takeOwnLeftoverBucket(logicalId);
|
|
4397
|
+
const adoptedOwnLeftover = explicitBucketName && ownLeftover !== void 0 && context?.replayingState !== true && await this.isOwnLeftoverBucket(ownLeftover, bucketName, resourceType, canonicalRegion);
|
|
4398
|
+
if (adoptedOwnLeftover) {
|
|
4399
|
+
createdNewBucket = true;
|
|
4400
|
+
bucketLeftBehind = true;
|
|
4401
|
+
}
|
|
4345
4402
|
if (ambiguousWindow !== void 0 && (preflight.kind === "indeterminate" || preflight.kind === "region" && preflight.region === "us-east-1")) {
|
|
4346
4403
|
windowSpent = true;
|
|
4347
4404
|
this.refuseAmbiguousCreateAdopt(logicalId, resourceType, bucketName, canonicalRegion, { preflight: preflight.kind }, explicitBucketName);
|
|
4348
4405
|
}
|
|
4349
|
-
if (explicitBucketName && preflight.kind === "region" && preflight.region === "us-east-1")
|
|
4406
|
+
if (explicitBucketName && preflight.kind === "region" && preflight.region === "us-east-1") {
|
|
4407
|
+
if (!adoptedOwnLeftover) this.refuseExplicitNameHeld(logicalId, resourceType, bucketName, { preflightRegion: preflight.region });
|
|
4408
|
+
}
|
|
4350
4409
|
let ownershipUnknown;
|
|
4351
|
-
if (explicitBucketName && preflight.kind === "indeterminate") {
|
|
4410
|
+
if (explicitBucketName && preflight.kind === "indeterminate" && !adoptedOwnLeftover) {
|
|
4352
4411
|
const owned = await this.ownsBucketNamed(bucketName);
|
|
4353
4412
|
if ("owned" in owned && owned.owned) this.refuseExplicitNameHeld(logicalId, resourceType, bucketName, { listed: true });
|
|
4354
4413
|
if ("unknown" in owned) ownershipUnknown = owned.unknown;
|
|
4355
4414
|
}
|
|
4356
4415
|
try {
|
|
4357
4416
|
const attemptStartMs = Date.now();
|
|
4358
|
-
try {
|
|
4417
|
+
if (!adoptedOwnLeftover) try {
|
|
4359
4418
|
await createClient.send(new CreateBucketCommand(createParams));
|
|
4360
4419
|
} catch (sendError) {
|
|
4361
4420
|
createBucketLatch.noteFailure(logicalId, sendError, attemptStartMs, ambiguousWindow);
|
|
4362
4421
|
throw sendError;
|
|
4363
4422
|
}
|
|
4364
|
-
createdNewBucket = preflight.kind === "absent";
|
|
4423
|
+
createdNewBucket = adoptedOwnLeftover || preflight.kind === "absent";
|
|
4365
4424
|
bucketLeftBehind = createdNewBucket;
|
|
4366
4425
|
if (createdNewBucket) windowSpent = true;
|
|
4367
4426
|
if (preflight.kind === "region" && preflight.region !== "us-east-1") this.refuseForeignRegionAdopt(logicalId, resourceType, bucketName, "us-east-1", preflight.region);
|
|
4368
|
-
if (preflight.kind === "region") 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.`);
|
|
4427
|
+
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.`);
|
|
4369
4428
|
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 recorded as this stack's. Re-run with --verbose for AWS's own message.");
|
|
4370
4429
|
this.logger.debug(`Created S3 bucket: ${this.shown(bucketName)}`);
|
|
4371
4430
|
} catch (createError) {
|
|
@@ -4414,7 +4473,10 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
4414
4473
|
} catch (error) {
|
|
4415
4474
|
if (ambiguousWindow !== void 0 && !windowSpent) holdCreateBucketWindow(logicalId, ambiguousWindow);
|
|
4416
4475
|
const thrown = this.wrapOperationError("create", logicalId, resourceType, bucketName, error);
|
|
4417
|
-
if (bucketLeftBehind)
|
|
4476
|
+
if (bucketLeftBehind) {
|
|
4477
|
+
markCreatedBeforeFailure(thrown, logicalId, resourceType, bucketName);
|
|
4478
|
+
if (explicitBucketName) await this.holdOwnLeftover(logicalId, resourceType, bucketName);
|
|
4479
|
+
}
|
|
4418
4480
|
throw thrown;
|
|
4419
4481
|
}
|
|
4420
4482
|
}
|
|
@@ -44435,4 +44497,4 @@ var ACMCertificateProvider = class {
|
|
|
44435
44497
|
|
|
44436
44498
|
//#endregion
|
|
44437
44499
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, 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, LambdaPermissionProvider, LambdaUrlProvider, 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 };
|
|
44438
|
-
//# sourceMappingURL=provider-classes-
|
|
44500
|
+
//# sourceMappingURL=provider-classes-SKdRlxGS.js.map
|