@go-to-k/cdkd 0.301.5 → 0.301.7
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-DHB498Xq.js → asg-provider-C14GB-Hy.js} +3 -3
- package/dist/{asg-provider-DHB498Xq.js.map → asg-provider-C14GB-Hy.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-HAvm8vSI.js → deploy-engine-zLKsm0IM.js} +299 -110
- package/dist/deploy-engine-zLKsm0IM.js.map +1 -0
- package/dist/{iam-policy-targets-BkeM7IXi.js → iam-policy-targets-LyArt3ew.js} +2 -2
- package/dist/{iam-policy-targets-BkeM7IXi.js.map → iam-policy-targets-LyArt3ew.js.map} +1 -1
- package/dist/{iam-role-provider-CTpDWSUG.js → iam-role-provider-BnStRZFM.js} +3 -3
- package/dist/{iam-role-provider-CTpDWSUG.js.map → iam-role-provider-BnStRZFM.js.map} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{neptune-provider-CXhoiT-P.js → neptune-provider-BlpYIZQP.js} +3 -3
- package/dist/{neptune-provider-CXhoiT-P.js.map → neptune-provider-BlpYIZQP.js.map} +1 -1
- package/dist/{program-DmPDfDhE.js → program-CiTz5-_D.js} +87 -26
- package/dist/program-CiTz5-_D.js.map +1 -0
- package/dist/{provider-classes-DPwEHVDJ.js → provider-classes-BWo7K01p.js} +127 -57
- package/dist/provider-classes-BWo7K01p.js.map +1 -0
- package/dist/{rds-provider-CxB94DZy.js → rds-provider-DagnUCn-.js} +3 -3
- package/dist/{rds-provider-CxB94DZy.js.map → rds-provider-DagnUCn-.js.map} +1 -1
- package/dist/{version-2jeKJQlt.js → version-MUc6NbW0.js} +2 -2
- package/dist/{version-2jeKJQlt.js.map → version-MUc6NbW0.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-HAvm8vSI.js.map +0 -1
- package/dist/program-DmPDfDhE.js.map +0 -1
- package/dist/provider-classes-DPwEHVDJ.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as getAwsClients } from "./aws-clients-B_CEQGE1.js";
|
|
2
2
|
import { B as safeMsg, F as displaySafe, I as displayStackName, L as isPasteableIdent, O as SECRET_REF_MAX_CODE_POINTS, P as displayIdent, a as getLogger, b as generateResourceNameWithFallback, n as isAwsAuthoredFailure, r as safeStringify, t as describeAwsFailure, y as generateResourceName, z as plainIdentOr } from "./aws-failure-text-BEQfs6za.js";
|
|
3
|
-
import { $ as protectedReplacementAdvice, $n as
|
|
3
|
+
import { $ as protectedReplacementAdvice, $n as markReplayMayCollide, $t as ambientCredentialConfig, A as isQuotableImportValue, B as isTerminalDeleteFailure, C as setBounded, D as VALUE_NOT_SHOWN, E as assertRegionMatch, F as resolveExplicitPhysicalId, Fn as isInertUnquoted, H as observeThenDisableProtection, Hn as withheldTargetClause, In as pasteableCommand, Kt as injectiveKey, L as ProtectionFlipRegistry, M as quotedRemedyLogicalId, Mt as markCreatedBeforeFailure, N as refusalTypeShown, Nn as commandHole, Nt as markSupersedesEarlierCreate, O as isPlainImportJson, P as remedyLogicalId, Pn as hasClauseBreak, Q as pasteableAwsCommand, Qn as markNameCollision, Qt as ambientClientDefaults, Rn as plainOrDescribed, S as replayedSendWindow, St as withDerivedNameMasks, T as RESOURCE_NOT_FOUND, Tt as clearCreatedBeforeFailure, U as protectionFlipKey, V as logGroupProtectionSite, Vn as shellQuote, W as rdsFamilyProtectionSite, X as WITHHELD_AWS_COMMAND, Y as UNNAMEABLE_ID_CLAUSE, Z as isAwsCliLiteral, Zt as withPasteableAwsProfile, _ as RecentIdSet, _t as createMaskedLogSinks, a as onlySecretDerived, at as startInterruptWatch, b as isInsideWindow, bn as ResourceUpdateNotSupportedError, bt as maskDeep, c as recordedPrincipalsRepair, ct as canonicalizeRoute53QueryName, dr as isThrottlingError, dt as compositeIdSkipResult, en as clientDefaultsFor, er as explicitDenyPolicyKind, et as renderDisableCommand, fr as markNonRetryable, ft as logicalIdShown, g as AmbiguousCreateLatch, gt as stateOrphanRecordRemedy, h as AMBIGUOUS_LATCH_TTL_MS, ht as segmentAfterAnchor, i as holdsSecretDerivedEntry, in as CdkdError, ir as isExplicitDenyError, it as isInterruptedWaitError, j as normalizeAwsTagsToCfn, jt as markAuxiliaryFailure, k as isPlainImportValue, lr as THROTTLING_ERROR_NAMES, lt as compositeIdFormatMessage, mr as wrapMaskedAwsError, nn as AccountIdUnavailableError, o as readPrincipalLists, or as isRetryableTransientError, ot as ElapsedBudgetRegistry, p as withRemovalDefaults, pr as markRedactedCause, pt as packCompositeId, q as userPoolProtectionSite, qn as isNameCollisionError, qt as injectiveKeyPrefix, r as SECRET_DERIVED_READ_LIVE, rr as isAmbiguousOutcomeError, sr as isTransientServerError, tn as credentialFingerprint, u as clearOnUpdateRemoval, ur as isMarkedNonRetryable, ut as compositeIdSeparatorRefusal, v as ambiguousAttemptLead, vn as ProvisioningError, vt as createMaskedRetryLogger, w as withoutServerErrorRetries, x as replayFollowedAmbiguousAttempt, xt as maskerOrIdentity, y as createAttemptKey, yt as isSecretDerivedValue, z as deleteWithProtectionCompensation } from "./iam-policy-targets-LyArt3ew.js";
|
|
4
4
|
import { s as ambientRegion } from "./aws-client-defaults-DBXBcg0J.js";
|
|
5
|
-
import { $i as accountArgs, Ao as replayWarn, Bo as sameLambdaFunctionAddress, C as getPriorAttempts,
|
|
6
|
-
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-
|
|
7
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, 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 { $i as accountArgs, Ao as replayWarn, Bl as displayAssemblyPath, Bo as sameLambdaFunctionAddress, C as getPriorAttempts, Cc as rewriteTemplateAssetReferences, Cn as awaitInFlightSibling, Co as toFiniteNumber, Dn as replacedDeleteFailureVerdict, Do as configIntegerRefusal, Dr as waitForLambdaFunctionActive, Dt as withApiLimit, Eo as configBooleanRefusal, Es as dynamicReferenceTokens, Et as lookupEachName, F as listNestedTemplateRows, Gr as isWaitAbandonedError, Hl as resolveAssemblyPath, I as renderNestedTemplateTreeDefect, Ja as refuseMalformedResourcesForDestroy, Jr as ec2InstanceProtectionSite, Jt as redactedDeleteAddressFields, Ki as passedParameterClassesOf, Kn as secretNamedAttributeNamesOf, Kr as markWaitAbandoned, Kt as REDACTED_DELETE_ADDRESS_SKIP_REASON, Lo as withRetry, Lr as slowCcOperationTimeoutMs, Ls as carriesSecretMask, Mo as requireConfigObject, Ms as recoverMaskedOutput, N as findNestedTemplateTreeDefect, Ni as getAccountInfo, No as requireConfigString, Ns as physicalNameCopiesOf, Oa as refuseMalformedNestedChildOutputs, Ol as canonicalizeRegion, Oo as configStringRefusal, P as isAbsoluteAssetPath, Ps as recordAttributeIdCopy, Qo as passedNoEchoParametersOf, Qr as reEnableInstanceApiTermination, Ro as canonicalLambdaFunctionName, Rr as unchangedBehindSecretReference, S as isTruthyCfnBoolean, So as toCfnInteger, Tl as decodeListingKey, Tn as getStackRecords, To as coerceCfnInteger, Tt as isAccessDeniedError, Ui as parseWebACLArn, Ur as deleteSkipReason, Vl as renderAssemblyPathEscape, Wr as withIndeterminateGuard, Wt as getCurrentProducerRegions, Xr as observeThenDisableInstanceApiTermination, Yr as isTerminationProtectionPropagationError, Yt as redactedDeleteAddressSkip, Zr as reDisableInstanceApiTermination, _ as deleteTableWithIndexBusyRetry, _r as refuseMalformedDesiredTags, ai as s3BucketDomainName, b as S3_AUTO_DELETE_OBJECTS_TAG, bo as coerceWarmThroughput$1, br as definedAttributes, bs as snapshotPassProvenance, c as DynamoDBGlobalTableProvider, ci as s3BucketWebsiteUrl, co as findSilentDropProperties, cr as reserveStackCreateToken, d as compensateRemovedDeletionProtection, dr as isRefusedByName, f as deleteBudgetKey, fr as markDeleteStarted, g as INDEX_SETTLE_POLL_INTERVAL_MS, gr as readTagList, h as DELETE_INDEX_WAIT_PROCEED_NOTE, hr as planTagDiff, ii as s3BucketArn, jo as requireConfigArray, jr as getCurrentResourceSecrets, kl as derivePartitionAndUrlSuffix, ko as readConfigString, l as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, lt as revertNestedChildFromJournal, m as resolveDynamoDbDeleteBudgetMs, mr as DBPROXY_TAG_OPTIONS, mt as withNestedStackContext, oi as s3BucketDualStackDomainName, oo as withheldAccountClause, or as earliestDefined, os as hasMaskableValues, ot as getNestedRevertRun, p as resolveDynamoDbDeleteBudgetClock, pi as outputReferenceProvenanceOf, pr as DBPROXY_TAGS_WHAT, pt as getCurrentNestedStackContext, qt as isRedactedRecordedValue, ri as isSettledInstanceState, si as s3BucketRegionalDomainName, t as DeployEngine, u as beginDeleteWait, uo as withoutSilentDropProperties, ur as acquireIdempotencyToken, v as waitForIndexesSettled, vc as stringifyValue, vr as tagMapAsList, vs as markSameGenerationBag, w as markRefusedBeforeApplying, wo as coerceCfnBoolean, ws as withoutPhysicalNameCopies, wt as chunks, x as hasCdkAutoDeleteTag, xo as isWarmThroughputDecrease, xr as stringifyIfAssigned, xs as redactForState, y as ECR_AUTO_DELETE_IMAGES_TAG, yo as WARM_THROUGHPUT_MEMBERS, yr as tagPlanWarning, ys as recordReferenceProvenanceEntry, zl as describeFileReadFailure, zo as lambdaFunctionNameForMask } from "./deploy-engine-zLKsm0IM.js";
|
|
6
|
+
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-BnStRZFM.js";
|
|
7
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, t as canonicalizeIpv4Cidr } from "./program-CiTz5-_D.js";
|
|
8
|
+
import { RDSProvider } from "./rds-provider-DagnUCn-.js";
|
|
9
|
+
import { NeptuneProvider } from "./neptune-provider-BlpYIZQP.js";
|
|
10
|
+
import { ASGProvider } from "./asg-provider-C14GB-Hy.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";
|
|
@@ -18,7 +18,7 @@ import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
|
18
18
|
import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateRouteTableCommand, AttachInternetGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcsCommand, DetachInternetGatewayCommand, DisassociateAddressCommand, DisassociateRouteTableCommand, EC2Client, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceNetworkAclAssociationCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
|
|
19
19
|
import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
|
|
20
20
|
import { APIGatewayClient, CreateAuthorizerCommand, CreateDeploymentCommand, CreateResourceCommand, CreateStageCommand, DeleteAuthorizerCommand, DeleteDeploymentCommand, DeleteMethodCommand, DeleteResourceCommand, DeleteStageCommand, GetAccountCommand, GetAuthorizerCommand, GetAuthorizersCommand, GetDeploymentCommand, GetDeploymentsCommand, GetMethodCommand, GetResourceCommand, GetStageCommand, NotFoundException as NotFoundException$1, PutIntegrationCommand, PutIntegrationResponseCommand, PutMethodCommand, PutMethodResponseCommand, TagResourceCommand as TagResourceCommand$3, UntagResourceCommand as UntagResourceCommand$3, UpdateAccountCommand, UpdateAuthorizerCommand, UpdateMethodCommand, UpdateStageCommand } from "@aws-sdk/client-api-gateway";
|
|
21
|
-
import { CreateEventBusCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
21
|
+
import { CreateEventBusCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutPermissionCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
22
22
|
import { CreateSecretCommand, DeleteSecretCommand, DescribeSecretCommand, RemoveRegionsFromReplicationCommand, ReplicateSecretToRegionsCommand, ResourceNotFoundException as ResourceNotFoundException$3, SecretsManagerClient, TagResourceCommand as TagResourceCommand$5, UntagResourceCommand as UntagResourceCommand$5, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager";
|
|
23
23
|
import { AddTagsToResourceCommand, DeleteParameterCommand, DescribeParametersCommand, GetParameterCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$2, ParameterNotFound, PutParameterCommand, RemoveTagsFromResourceCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
24
24
|
import { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand, CreateDistributionCommand, CreateDistributionWithTagsCommand, CreateOriginAccessControlCommand, DeleteCloudFrontOriginAccessIdentityCommand, DeleteDistributionCommand, DeleteOriginAccessControlCommand, DistributionAlreadyExists, GetCloudFrontOriginAccessIdentityCommand, GetDistributionCommand, GetDistributionConfigCommand, GetOriginAccessControlCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, NoSuchOriginAccessControl, TagResourceCommand as TagResourceCommand$6, UntagResourceCommand as UntagResourceCommand$6, UpdateCloudFrontOriginAccessIdentityCommand, UpdateDistributionCommand, UpdateOriginAccessControlCommand } from "@aws-sdk/client-cloudfront";
|
|
@@ -14586,7 +14586,10 @@ var SecretsManagerSecretProvider = class {
|
|
|
14586
14586
|
}
|
|
14587
14587
|
asPersisted(bag) {
|
|
14588
14588
|
const secrets = getCurrentResourceSecrets();
|
|
14589
|
-
return secrets !== void 0 && secrets.size > 0 ?
|
|
14589
|
+
return secrets !== void 0 && secrets.size > 0 ? redactForState(bag, {
|
|
14590
|
+
provenance: "value-scan",
|
|
14591
|
+
secrets
|
|
14592
|
+
}) : bag;
|
|
14590
14593
|
}
|
|
14591
14594
|
generateSecretString(config, options) {
|
|
14592
14595
|
const refusal = generateMemberRefusal(config);
|
|
@@ -15377,6 +15380,25 @@ function sanitizeDeadLetterConfig(value) {
|
|
|
15377
15380
|
if (typeof arn !== "string" || arn.length === 0) return void 0;
|
|
15378
15381
|
return { Arn: arn };
|
|
15379
15382
|
}
|
|
15383
|
+
function policyDocument(value) {
|
|
15384
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
15385
|
+
return typeof value === "string" ? value : JSON.stringify(value);
|
|
15386
|
+
}
|
|
15387
|
+
function policyKey(value) {
|
|
15388
|
+
const doc = policyDocument(value);
|
|
15389
|
+
if (doc === void 0) return void 0;
|
|
15390
|
+
try {
|
|
15391
|
+
return JSON.stringify(sortKeys(JSON.parse(doc)));
|
|
15392
|
+
} catch {
|
|
15393
|
+
return doc;
|
|
15394
|
+
}
|
|
15395
|
+
}
|
|
15396
|
+
function sortKeys(value) {
|
|
15397
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
15398
|
+
if (typeof value !== "object" || value === null) return value;
|
|
15399
|
+
const record = value;
|
|
15400
|
+
return Object.fromEntries(Object.keys(record).sort().map((key) => [key, sortKeys(record[key])]));
|
|
15401
|
+
}
|
|
15380
15402
|
var EventBridgeBusProvider = class {
|
|
15381
15403
|
eventBridgeClient;
|
|
15382
15404
|
logger = getLogger().child("EventBridgeBusProvider");
|
|
@@ -15390,6 +15412,14 @@ var EventBridgeBusProvider = class {
|
|
|
15390
15412
|
"DeadLetterConfig",
|
|
15391
15413
|
"LogConfig"
|
|
15392
15414
|
])]]);
|
|
15415
|
+
removalDefaults = /* @__PURE__ */ new Map([["AWS::Events::EventBus", /* @__PURE__ */ new Map([
|
|
15416
|
+
["Description", ""],
|
|
15417
|
+
["KmsKeyIdentifier", ""],
|
|
15418
|
+
["LogConfig", {
|
|
15419
|
+
Level: "OFF",
|
|
15420
|
+
IncludeDetail: "NONE"
|
|
15421
|
+
}]
|
|
15422
|
+
])]]);
|
|
15393
15423
|
constructor() {
|
|
15394
15424
|
this.eventBridgeClient = getAwsClients().eventBridge;
|
|
15395
15425
|
}
|
|
@@ -15406,11 +15436,19 @@ var EventBridgeBusProvider = class {
|
|
|
15406
15436
|
});
|
|
15407
15437
|
return this.createClient;
|
|
15408
15438
|
}
|
|
15409
|
-
|
|
15439
|
+
wrapMaskedError(mask, error, build) {
|
|
15440
|
+
const failure = describeAwsFailure(error);
|
|
15441
|
+
if (!(error instanceof Error)) return build(mask(failure.detail));
|
|
15442
|
+
if (!failure.redacted) return wrapMaskedAwsError(mask, error, build);
|
|
15443
|
+
this.logger.debug(mask(build(failure.detail).message));
|
|
15444
|
+
return markRedactedCause(build(mask(failure.summary)));
|
|
15445
|
+
}
|
|
15446
|
+
async create(logicalId, resourceType, properties, context) {
|
|
15410
15447
|
const tags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
15411
15448
|
const name = properties["Name"];
|
|
15412
15449
|
if (!name) throw new ProvisioningError(`Name is required for EventBus ${logicalId}`, resourceType, logicalId);
|
|
15413
15450
|
this.logger.debug(`Creating EventBus ${logicalId}: ${name}`);
|
|
15451
|
+
let busCreated = false;
|
|
15414
15452
|
try {
|
|
15415
15453
|
const createParams = { Name: name };
|
|
15416
15454
|
if (properties["EventSourceName"]) createParams.EventSourceName = properties["EventSourceName"];
|
|
@@ -15421,7 +15459,12 @@ var EventBridgeBusProvider = class {
|
|
|
15421
15459
|
if (dlcCreate) createParams.DeadLetterConfig = dlcCreate;
|
|
15422
15460
|
if (properties["LogConfig"] !== void 0) createParams.LogConfig = properties["LogConfig"];
|
|
15423
15461
|
const response = await (await this.getCreateClient()).send(new CreateEventBusCommand(createParams));
|
|
15424
|
-
|
|
15462
|
+
busCreated = true;
|
|
15463
|
+
const policy = policyDocument(properties["Policy"]);
|
|
15464
|
+
if (policy !== void 0) await this.eventBridgeClient.send(new PutPermissionCommand({
|
|
15465
|
+
EventBusName: name,
|
|
15466
|
+
Policy: policy
|
|
15467
|
+
}));
|
|
15425
15468
|
return {
|
|
15426
15469
|
physicalId: name,
|
|
15427
15470
|
attributes: definedAttributes({
|
|
@@ -15430,22 +15473,26 @@ var EventBridgeBusProvider = class {
|
|
|
15430
15473
|
})
|
|
15431
15474
|
};
|
|
15432
15475
|
} catch (error) {
|
|
15476
|
+
if (busCreated) markAuxiliaryFailure(error, logicalId);
|
|
15433
15477
|
const cause = error instanceof Error ? error : void 0;
|
|
15434
|
-
|
|
15478
|
+
const thrown = this.wrapMaskedError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create EventBus ${logicalId}: ${text}`, resourceType, logicalId, busCreated ? name : void 0, cause));
|
|
15479
|
+
if (busCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, name);
|
|
15480
|
+
throw thrown;
|
|
15435
15481
|
}
|
|
15436
15482
|
}
|
|
15437
15483
|
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
15438
15484
|
assertRegionMatch(context?.expectedRegion ? await this.eventBridgeClient.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
15439
15485
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
15486
|
+
properties = withRemovalDefaults(this.removalDefaults, resourceType, properties, previousProperties, context);
|
|
15440
15487
|
try {
|
|
15441
|
-
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
15488
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
15442
15489
|
} catch (error) {
|
|
15443
15490
|
if (error instanceof CdkdError) throw error;
|
|
15444
15491
|
const cause = error instanceof Error ? error : void 0;
|
|
15445
|
-
throw new ProvisioningError(`Failed to update EventBus ${logicalId}: ${
|
|
15492
|
+
throw this.wrapMaskedError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to update EventBus ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
15446
15493
|
}
|
|
15447
15494
|
}
|
|
15448
|
-
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
15495
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
15449
15496
|
this.logger.debug(`Updating EventBus ${logicalId}: ${physicalId}`);
|
|
15450
15497
|
const descChanged = properties["Description"] !== previousProperties["Description"];
|
|
15451
15498
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
@@ -15458,10 +15505,16 @@ var EventBridgeBusProvider = class {
|
|
|
15458
15505
|
if (properties["DeadLetterConfig"] !== void 0) {
|
|
15459
15506
|
const dlcUpdate = sanitizeDeadLetterConfig(properties["DeadLetterConfig"]);
|
|
15460
15507
|
if (dlcUpdate) updateParams.DeadLetterConfig = dlcUpdate;
|
|
15461
|
-
}
|
|
15508
|
+
} else if ((context?.removedProperties?.has("DeadLetterConfig") ?? previousProperties["DeadLetterConfig"] !== void 0) && sanitizeDeadLetterConfig(previousProperties["DeadLetterConfig"]) !== void 0) updateParams.DeadLetterConfig = { Arn: "" };
|
|
15462
15509
|
if (properties["LogConfig"] !== void 0) updateParams.LogConfig = properties["LogConfig"];
|
|
15463
15510
|
await this.eventBridgeClient.send(new UpdateEventBusCommand(updateParams));
|
|
15464
15511
|
}
|
|
15512
|
+
const policy = policyDocument(properties["Policy"]);
|
|
15513
|
+
if (policy !== void 0 && policyKey(policy) !== policyKey(previousProperties["Policy"])) await this.eventBridgeClient.send(new PutPermissionCommand({
|
|
15514
|
+
EventBusName: physicalId,
|
|
15515
|
+
Policy: policy
|
|
15516
|
+
}));
|
|
15517
|
+
else if (policy === void 0 && (context?.removedProperties?.has("Policy") ?? policyDocument(previousProperties["Policy"]) !== void 0)) this.logger.warn(safeMsg`${logicalId} (${resourceType}): Policy was removed from the template; the bus keeps its current resource policy, as CloudFormation leaves it. Remove its statements with 'aws events remove-permission' if they should go.`);
|
|
15465
15518
|
const plan = planTagDiff(previousProperties["Tags"], properties["Tags"]);
|
|
15466
15519
|
const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
|
|
15467
15520
|
if (tagWarning !== void 0) this.logger.warn(tagWarning);
|
|
@@ -15752,6 +15805,12 @@ const lostCreateNoun = (what, sent, adjective) => sent.length === 0 ? `${adjecti
|
|
|
15752
15805
|
function isCreateTagsDenial(error) {
|
|
15753
15806
|
return isNamedError(error, CREATE_TAGS_DENIAL_NAMES) && describeAwsFailure(error).detail.includes("ec2:CreateTags");
|
|
15754
15807
|
}
|
|
15808
|
+
const CDKD_NOTES = /* @__PURE__ */ new WeakMap();
|
|
15809
|
+
function redactedEc2FailureText(error, failure) {
|
|
15810
|
+
if (!(error instanceof Error)) return failure.summary;
|
|
15811
|
+
const collision = isNameCollisionError(failure.detail) ? " AWS reports that it already exists." : "";
|
|
15812
|
+
return `${failure.summary}${collision}${CDKD_NOTES.get(error) ?? ""}`;
|
|
15813
|
+
}
|
|
15755
15814
|
const CREATE_TAGS_DENIAL_NAMES = /* @__PURE__ */ new Set(["UnauthorizedOperation"]);
|
|
15756
15815
|
const IDEMPOTENT_MISMATCH_NAMES = /* @__PURE__ */ new Set(["IdempotentParameterMismatch"]);
|
|
15757
15816
|
const OWN_WRITE_READ_ATTEMPTS = 5;
|
|
@@ -16026,7 +16085,7 @@ var EC2Provider = class {
|
|
|
16026
16085
|
} catch (error) {
|
|
16027
16086
|
if (error instanceof CdkdError) throw error;
|
|
16028
16087
|
const cause = error instanceof Error ? error : void 0;
|
|
16029
|
-
throw new ProvisioningError(`Failed to update EC2 resource ${logicalId}: ${
|
|
16088
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update EC2 resource ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16030
16089
|
}
|
|
16031
16090
|
}
|
|
16032
16091
|
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
@@ -16267,7 +16326,7 @@ var EC2Provider = class {
|
|
|
16267
16326
|
};
|
|
16268
16327
|
} catch (error) {
|
|
16269
16328
|
const cause = error instanceof Error ? error : void 0;
|
|
16270
|
-
const thrown = new ProvisioningError(`Failed to create VPC ${logicalId}: ${
|
|
16329
|
+
const thrown = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create VPC ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16271
16330
|
if (leftBehindId !== void 0) {
|
|
16272
16331
|
markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
|
|
16273
16332
|
markNonRetryable(thrown);
|
|
@@ -16307,7 +16366,7 @@ var EC2Provider = class {
|
|
|
16307
16366
|
};
|
|
16308
16367
|
} catch (error) {
|
|
16309
16368
|
const cause = error instanceof Error ? error : void 0;
|
|
16310
|
-
throw new ProvisioningError(`Failed to update VPC ${logicalId}: ${
|
|
16369
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update VPC ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16311
16370
|
}
|
|
16312
16371
|
}
|
|
16313
16372
|
async deleteVpc(logicalId, physicalId, resourceType, context) {
|
|
@@ -16332,7 +16391,7 @@ var EC2Provider = class {
|
|
|
16332
16391
|
continue;
|
|
16333
16392
|
}
|
|
16334
16393
|
const cause = error instanceof Error ? error : void 0;
|
|
16335
|
-
throw new ProvisioningError(`Failed to delete VPC ${logicalId}: ${
|
|
16394
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete VPC ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16336
16395
|
}
|
|
16337
16396
|
}
|
|
16338
16397
|
async getVpcAttribute(physicalId, attributeName) {
|
|
@@ -16427,7 +16486,7 @@ var EC2Provider = class {
|
|
|
16427
16486
|
};
|
|
16428
16487
|
} catch (error) {
|
|
16429
16488
|
const cause = error instanceof Error ? error : void 0;
|
|
16430
|
-
const thrown = new ProvisioningError(`Failed to create Subnet ${logicalId}: ${
|
|
16489
|
+
const thrown = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create Subnet ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16431
16490
|
if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
|
|
16432
16491
|
throw thrown;
|
|
16433
16492
|
}
|
|
@@ -16463,7 +16522,7 @@ var EC2Provider = class {
|
|
|
16463
16522
|
} catch (error) {
|
|
16464
16523
|
if (error instanceof CdkdError) throw error;
|
|
16465
16524
|
const cause = error instanceof Error ? error : void 0;
|
|
16466
|
-
throw new ProvisioningError(`Failed to update Subnet ${logicalId}: ${
|
|
16525
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update Subnet ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16467
16526
|
}
|
|
16468
16527
|
}
|
|
16469
16528
|
async waitForSubnetMapPublicIp(subnetId, expected) {
|
|
@@ -16502,7 +16561,7 @@ var EC2Provider = class {
|
|
|
16502
16561
|
continue;
|
|
16503
16562
|
}
|
|
16504
16563
|
const cause = error instanceof Error ? error : void 0;
|
|
16505
|
-
throw new ProvisioningError(`Failed to delete Subnet ${logicalId}: ${
|
|
16564
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete Subnet ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16506
16565
|
}
|
|
16507
16566
|
}
|
|
16508
16567
|
async cleanupSubnetLambdaEnis(subnetId) {
|
|
@@ -16571,7 +16630,7 @@ var EC2Provider = class {
|
|
|
16571
16630
|
};
|
|
16572
16631
|
} catch (error) {
|
|
16573
16632
|
const cause = error instanceof Error ? error : void 0;
|
|
16574
|
-
throw new ProvisioningError(`Failed to create InternetGateway ${logicalId}: ${
|
|
16633
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create InternetGateway ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16575
16634
|
}
|
|
16576
16635
|
}
|
|
16577
16636
|
updateInternetGateway(logicalId, physicalId) {
|
|
@@ -16590,7 +16649,7 @@ var EC2Provider = class {
|
|
|
16590
16649
|
return;
|
|
16591
16650
|
}
|
|
16592
16651
|
const cause = error instanceof Error ? error : void 0;
|
|
16593
|
-
throw new ProvisioningError(`Failed to delete InternetGateway ${logicalId}: ${
|
|
16652
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete InternetGateway ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16594
16653
|
}
|
|
16595
16654
|
}
|
|
16596
16655
|
eipPhysicalId(logicalId, publicIp, allocationId, options) {
|
|
@@ -16689,7 +16748,7 @@ var EC2Provider = class {
|
|
|
16689
16748
|
this.logger.warn(safeMsg`Failed to release partially-created EIP ${logicalId} (${allocatedId}): ${describeAwsFailure(cleanupError).detail}. Manual release may be required: ${pasteableAwsCommand(context?.maskSecrets)`aws ec2 release-address --allocation-id ${allocatedId}`.render()}`);
|
|
16690
16749
|
}
|
|
16691
16750
|
const cause = error instanceof Error ? error : void 0;
|
|
16692
|
-
const thrown = new ProvisioningError(`Failed to create EIP ${logicalId}: ${
|
|
16751
|
+
const thrown = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create EIP ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16693
16752
|
if (createdId !== void 0) {
|
|
16694
16753
|
markCreatedBeforeFailure(thrown, logicalId, resourceType, createdId);
|
|
16695
16754
|
markNonRetryable(thrown);
|
|
@@ -16760,7 +16819,7 @@ var EC2Provider = class {
|
|
|
16760
16819
|
return;
|
|
16761
16820
|
}
|
|
16762
16821
|
const cause = error instanceof Error ? error : void 0;
|
|
16763
|
-
throw new ProvisioningError(`Failed to delete EIP ${logicalId}: ${
|
|
16822
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete EIP ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16764
16823
|
}
|
|
16765
16824
|
}
|
|
16766
16825
|
async getEipAttribute(physicalId, attributeName) {
|
|
@@ -16803,7 +16862,7 @@ var EC2Provider = class {
|
|
|
16803
16862
|
};
|
|
16804
16863
|
} catch (error) {
|
|
16805
16864
|
const cause = error instanceof Error ? error : void 0;
|
|
16806
|
-
throw new ProvisioningError(`Failed to create VPCGatewayAttachment ${logicalId}: ${
|
|
16865
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create VPCGatewayAttachment ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16807
16866
|
}
|
|
16808
16867
|
}
|
|
16809
16868
|
updateVpcGatewayAttachment(logicalId, physicalId) {
|
|
@@ -16828,7 +16887,7 @@ var EC2Provider = class {
|
|
|
16828
16887
|
return;
|
|
16829
16888
|
}
|
|
16830
16889
|
const cause = error instanceof Error ? error : void 0;
|
|
16831
|
-
throw new ProvisioningError(`Failed to delete VPCGatewayAttachment ${logicalId}: ${
|
|
16890
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete VPCGatewayAttachment ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16832
16891
|
}
|
|
16833
16892
|
}
|
|
16834
16893
|
async createNatGateway(logicalId, resourceType, properties) {
|
|
@@ -16874,7 +16933,7 @@ var EC2Provider = class {
|
|
|
16874
16933
|
};
|
|
16875
16934
|
} catch (error) {
|
|
16876
16935
|
const cause = error instanceof Error ? error : void 0;
|
|
16877
|
-
const thrown = new ProvisioningError(`Failed to create NatGateway ${logicalId}: ${
|
|
16936
|
+
const thrown = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create NatGateway ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16878
16937
|
if (createdId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdId);
|
|
16879
16938
|
throw thrown;
|
|
16880
16939
|
}
|
|
@@ -16895,7 +16954,7 @@ var EC2Provider = class {
|
|
|
16895
16954
|
return;
|
|
16896
16955
|
}
|
|
16897
16956
|
const cause = error instanceof Error ? error : void 0;
|
|
16898
|
-
throw new ProvisioningError(`Failed to delete NatGateway ${logicalId}: ${
|
|
16957
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete NatGateway ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16899
16958
|
}
|
|
16900
16959
|
this.logger.debug(`Waiting for NatGateway ${physicalId} to reach deleted state...`);
|
|
16901
16960
|
try {
|
|
@@ -16935,7 +16994,7 @@ var EC2Provider = class {
|
|
|
16935
16994
|
};
|
|
16936
16995
|
} catch (error) {
|
|
16937
16996
|
const cause = error instanceof Error ? error : void 0;
|
|
16938
|
-
throw new ProvisioningError(`Failed to create RouteTable ${logicalId}: ${
|
|
16997
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create RouteTable ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
16939
16998
|
}
|
|
16940
16999
|
}
|
|
16941
17000
|
updateRouteTable(logicalId, physicalId) {
|
|
@@ -16954,7 +17013,7 @@ var EC2Provider = class {
|
|
|
16954
17013
|
return;
|
|
16955
17014
|
}
|
|
16956
17015
|
const cause = error instanceof Error ? error : void 0;
|
|
16957
|
-
throw new ProvisioningError(`Failed to delete RouteTable ${logicalId}: ${
|
|
17016
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete RouteTable ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
16958
17017
|
}
|
|
16959
17018
|
}
|
|
16960
17019
|
async createRoute(logicalId, resourceType, properties, onMultipleDestinations, maskSecrets) {
|
|
@@ -17009,7 +17068,7 @@ var EC2Provider = class {
|
|
|
17009
17068
|
};
|
|
17010
17069
|
} catch (error) {
|
|
17011
17070
|
const cause = error instanceof Error ? error : void 0;
|
|
17012
|
-
throw new ProvisioningError(`Failed to create Route ${logicalId}: ${
|
|
17071
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create Route ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
17013
17072
|
}
|
|
17014
17073
|
}
|
|
17015
17074
|
async updateRoute(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
@@ -17035,7 +17094,7 @@ var EC2Provider = class {
|
|
|
17035
17094
|
} catch (error) {
|
|
17036
17095
|
if (error instanceof CdkdError) throw error;
|
|
17037
17096
|
const cause = error instanceof Error ? error : void 0;
|
|
17038
|
-
throw new ProvisioningError(`Failed to update Route ${logicalId}: ${
|
|
17097
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update Route ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17039
17098
|
}
|
|
17040
17099
|
}
|
|
17041
17100
|
async deleteRoute(logicalId, physicalId, resourceType, context) {
|
|
@@ -17058,7 +17117,7 @@ var EC2Provider = class {
|
|
|
17058
17117
|
return;
|
|
17059
17118
|
}
|
|
17060
17119
|
const cause = error instanceof Error ? error : void 0;
|
|
17061
|
-
throw new ProvisioningError(`Failed to delete Route ${logicalId}: ${
|
|
17120
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete Route ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17062
17121
|
}
|
|
17063
17122
|
}
|
|
17064
17123
|
async createSubnetRouteTableAssociation(logicalId, resourceType, properties) {
|
|
@@ -17078,7 +17137,7 @@ var EC2Provider = class {
|
|
|
17078
17137
|
};
|
|
17079
17138
|
} catch (error) {
|
|
17080
17139
|
const cause = error instanceof Error ? error : void 0;
|
|
17081
|
-
throw new ProvisioningError(`Failed to create SubnetRouteTableAssociation ${logicalId}: ${
|
|
17140
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create SubnetRouteTableAssociation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
17082
17141
|
}
|
|
17083
17142
|
}
|
|
17084
17143
|
updateSubnetRouteTableAssociation(logicalId, physicalId) {
|
|
@@ -17097,7 +17156,7 @@ var EC2Provider = class {
|
|
|
17097
17156
|
return;
|
|
17098
17157
|
}
|
|
17099
17158
|
const cause = error instanceof Error ? error : void 0;
|
|
17100
|
-
throw new ProvisioningError(`Failed to delete SubnetRouteTableAssociation ${logicalId}: ${
|
|
17159
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete SubnetRouteTableAssociation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17101
17160
|
}
|
|
17102
17161
|
}
|
|
17103
17162
|
async createSecurityGroup(logicalId, resourceType, properties) {
|
|
@@ -17148,7 +17207,7 @@ var EC2Provider = class {
|
|
|
17148
17207
|
};
|
|
17149
17208
|
} catch (error) {
|
|
17150
17209
|
const cause = error instanceof Error ? error : void 0;
|
|
17151
|
-
const thrown = new ProvisioningError(`Failed to create SecurityGroup ${logicalId}: ${
|
|
17210
|
+
const thrown = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create SecurityGroup ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
17152
17211
|
if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
|
|
17153
17212
|
throw thrown;
|
|
17154
17213
|
}
|
|
@@ -17201,7 +17260,7 @@ var EC2Provider = class {
|
|
|
17201
17260
|
};
|
|
17202
17261
|
} catch (error) {
|
|
17203
17262
|
const cause = error instanceof Error ? error : void 0;
|
|
17204
|
-
throw new ProvisioningError(`Failed to update SecurityGroup ${logicalId}: ${
|
|
17263
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update SecurityGroup ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17205
17264
|
}
|
|
17206
17265
|
}
|
|
17207
17266
|
async deleteSecurityGroup(logicalId, physicalId, resourceType, context) {
|
|
@@ -17219,15 +17278,14 @@ var EC2Provider = class {
|
|
|
17219
17278
|
else this.logger.debug(`SecurityGroup ${physicalId} does not exist, skipping deletion`);
|
|
17220
17279
|
return;
|
|
17221
17280
|
}
|
|
17222
|
-
|
|
17223
|
-
if (msg.includes("dependent object") && attempt < maxAttempts) {
|
|
17281
|
+
if (describeAwsFailure(error).detail.includes("dependent object") && attempt < maxAttempts) {
|
|
17224
17282
|
await this.cleanupSecurityGroupLambdaEnis(physicalId);
|
|
17225
17283
|
this.logger.debug(`SecurityGroup ${physicalId} has dependent objects (attempt ${attempt}/${maxAttempts}), retrying in ${attempt * 5}s...`);
|
|
17226
17284
|
await new Promise((resolve) => setTimeout(resolve, attempt * 5e3));
|
|
17227
17285
|
continue;
|
|
17228
17286
|
}
|
|
17229
17287
|
const cause = error instanceof Error ? error : void 0;
|
|
17230
|
-
throw new ProvisioningError(`Failed to delete SecurityGroup ${logicalId}: ${
|
|
17288
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete SecurityGroup ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17231
17289
|
}
|
|
17232
17290
|
}
|
|
17233
17291
|
async cleanupSecurityGroupLambdaEnis(groupId) {
|
|
@@ -17356,7 +17414,7 @@ var EC2Provider = class {
|
|
|
17356
17414
|
};
|
|
17357
17415
|
}
|
|
17358
17416
|
const cause = error instanceof Error ? error : void 0;
|
|
17359
|
-
const failure = new ProvisioningError(`Failed to create SecurityGroupIngress ${logicalId}: ${
|
|
17417
|
+
const failure = this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create SecurityGroupIngress ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
17360
17418
|
const lookup = getPriorAttempts(logicalId);
|
|
17361
17419
|
if (authorizeDefinitelyNotApplied(error) && !earlierSendAmbiguous && lookup?.possiblyLanded() !== true) markRefusedBeforeApplying(failure);
|
|
17362
17420
|
else lookup?.notePossiblyLanded();
|
|
@@ -17550,7 +17608,7 @@ var EC2Provider = class {
|
|
|
17550
17608
|
} catch (error) {
|
|
17551
17609
|
if (error instanceof CdkdError) throw error;
|
|
17552
17610
|
const cause = error instanceof Error ? error : void 0;
|
|
17553
|
-
throw new ProvisioningError(`Failed to update SecurityGroupIngress ${logicalId}: ${
|
|
17611
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update SecurityGroupIngress ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17554
17612
|
}
|
|
17555
17613
|
}
|
|
17556
17614
|
withoutDescription(value) {
|
|
@@ -17626,7 +17684,7 @@ var EC2Provider = class {
|
|
|
17626
17684
|
return notMatched();
|
|
17627
17685
|
}
|
|
17628
17686
|
const cause = error instanceof Error ? error : void 0;
|
|
17629
|
-
throw new ProvisioningError(`Failed to delete SecurityGroupIngress ${logicalId}: ${
|
|
17687
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete SecurityGroupIngress ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17630
17688
|
}
|
|
17631
17689
|
}
|
|
17632
17690
|
async createInstance(logicalId, resourceType, properties, context) {
|
|
@@ -17711,7 +17769,7 @@ var EC2Provider = class {
|
|
|
17711
17769
|
throw markAuxiliaryFailure(innerError, logicalId);
|
|
17712
17770
|
}
|
|
17713
17771
|
} catch (error) {
|
|
17714
|
-
const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create EC2 Instance ${logicalId}: ${
|
|
17772
|
+
const thrown = error instanceof ProvisioningError ? error : this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create EC2 Instance ${logicalId}: ${text}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0));
|
|
17715
17773
|
if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
|
|
17716
17774
|
throw thrown;
|
|
17717
17775
|
}
|
|
@@ -17809,7 +17867,7 @@ var EC2Provider = class {
|
|
|
17809
17867
|
};
|
|
17810
17868
|
} catch (error) {
|
|
17811
17869
|
const cause = error instanceof Error ? error : void 0;
|
|
17812
|
-
throw new ProvisioningError(`Failed to update EC2 Instance ${logicalId}: ${
|
|
17870
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to update EC2 Instance ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17813
17871
|
}
|
|
17814
17872
|
}
|
|
17815
17873
|
async updateInstanceSecurityProps(physicalId, properties, previousProperties) {
|
|
@@ -17900,7 +17958,7 @@ var EC2Provider = class {
|
|
|
17900
17958
|
continue;
|
|
17901
17959
|
}
|
|
17902
17960
|
const cause = error instanceof Error ? error : void 0;
|
|
17903
|
-
throw new ProvisioningError(`Failed to terminate EC2 Instance ${logicalId}: ${
|
|
17961
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to terminate EC2 Instance ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
17904
17962
|
}
|
|
17905
17963
|
}
|
|
17906
17964
|
async getInstanceAttribute(physicalId, attributeName) {
|
|
@@ -18120,7 +18178,7 @@ var EC2Provider = class {
|
|
|
18120
18178
|
};
|
|
18121
18179
|
} catch (error) {
|
|
18122
18180
|
const cause = error instanceof Error ? error : void 0;
|
|
18123
|
-
throw new ProvisioningError(`Failed to create NetworkAcl ${logicalId}: ${
|
|
18181
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create NetworkAcl ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
18124
18182
|
}
|
|
18125
18183
|
}
|
|
18126
18184
|
async deleteNetworkAcl(logicalId, physicalId, resourceType, context) {
|
|
@@ -18136,7 +18194,7 @@ var EC2Provider = class {
|
|
|
18136
18194
|
return;
|
|
18137
18195
|
}
|
|
18138
18196
|
const cause = error instanceof Error ? error : void 0;
|
|
18139
|
-
throw new ProvisioningError(`Failed to delete NetworkAcl ${logicalId}: ${
|
|
18197
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete NetworkAcl ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18140
18198
|
}
|
|
18141
18199
|
}
|
|
18142
18200
|
async createNetworkAclEntry(logicalId, resourceType, properties, context) {
|
|
@@ -18193,7 +18251,7 @@ var EC2Provider = class {
|
|
|
18193
18251
|
};
|
|
18194
18252
|
} catch (error) {
|
|
18195
18253
|
const cause = error instanceof Error ? error : void 0;
|
|
18196
|
-
throw new ProvisioningError(`Failed to create NetworkAclEntry ${logicalId}: ${
|
|
18254
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create NetworkAclEntry ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
18197
18255
|
}
|
|
18198
18256
|
}
|
|
18199
18257
|
async deleteNetworkAclEntry(logicalId, physicalId, resourceType, context) {
|
|
@@ -18224,7 +18282,7 @@ var EC2Provider = class {
|
|
|
18224
18282
|
return;
|
|
18225
18283
|
}
|
|
18226
18284
|
const cause = error instanceof Error ? error : void 0;
|
|
18227
|
-
throw new ProvisioningError(`Failed to delete NetworkAclEntry ${logicalId}: ${
|
|
18285
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to delete NetworkAclEntry ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18228
18286
|
}
|
|
18229
18287
|
}
|
|
18230
18288
|
async createSubnetNetworkAclAssociation(logicalId, resourceType, properties) {
|
|
@@ -18258,7 +18316,7 @@ var EC2Provider = class {
|
|
|
18258
18316
|
} catch (error) {
|
|
18259
18317
|
if (error instanceof ProvisioningError) throw error;
|
|
18260
18318
|
const cause = error instanceof Error ? error : void 0;
|
|
18261
|
-
throw new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${
|
|
18319
|
+
throw this.wrapCaughtError(error, (text) => new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
18262
18320
|
}
|
|
18263
18321
|
}
|
|
18264
18322
|
async sendTaggedCreate(logicalId, tagResourceType, tags, send) {
|
|
@@ -18294,7 +18352,9 @@ var EC2Provider = class {
|
|
|
18294
18352
|
this.logger.debug(safeMsg`Create of ${logicalId} without tags was refused: ${untaggedDetail}`);
|
|
18295
18353
|
const explicit = isExplicitDenyError(untaggedDetail);
|
|
18296
18354
|
const kind = explicit ? explicitDenyPolicyKind(untaggedDetail) : void 0;
|
|
18297
|
-
|
|
18355
|
+
const note = ` The create without tags was refused too (UnauthorizedOperation)${explicit ? `; explicit deny${kind !== void 0 ? ` (${kind})` : ""}` : ""}.`;
|
|
18356
|
+
taggedError.message = `${taggedError.message}${note}`;
|
|
18357
|
+
CDKD_NOTES.set(taggedError, note);
|
|
18298
18358
|
if (explicit) markNonRetryable(taggedError);
|
|
18299
18359
|
throw taggedError;
|
|
18300
18360
|
}
|
|
@@ -18363,6 +18423,13 @@ var EC2Provider = class {
|
|
|
18363
18423
|
delay = Math.min(delay * 2, maxDelayMs);
|
|
18364
18424
|
}
|
|
18365
18425
|
}
|
|
18426
|
+
wrapCaughtError(error, build) {
|
|
18427
|
+
const failure = describeAwsFailure(error);
|
|
18428
|
+
if (!failure.redacted) return build(failure.detail);
|
|
18429
|
+
this.logger.debug(build(failure.detail).message);
|
|
18430
|
+
const wrapped = build(redactedEc2FailureText(error, failure));
|
|
18431
|
+
return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
|
|
18432
|
+
}
|
|
18366
18433
|
isDependencyViolationError(error) {
|
|
18367
18434
|
if (!(error instanceof Error)) return false;
|
|
18368
18435
|
const code = error.Code ?? "";
|
|
@@ -38082,7 +38149,10 @@ var SchedulerScheduleProvider = class {
|
|
|
38082
38149
|
const bag = getCurrentResourceSecrets();
|
|
38083
38150
|
if (bag === void 0 || typeof desiredGroup !== "string") return false;
|
|
38084
38151
|
if (typeof recordedGroup !== "string" || !recordedGroup.includes("{{resolve:")) return false;
|
|
38085
|
-
return withoutPhysicalNameCopies(bag, () =>
|
|
38152
|
+
return withoutPhysicalNameCopies(bag, () => redactForState(desiredGroup, {
|
|
38153
|
+
provenance: "value-scan",
|
|
38154
|
+
secrets: bag
|
|
38155
|
+
})) !== recordedGroup;
|
|
38086
38156
|
}
|
|
38087
38157
|
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
38088
38158
|
const groupName = this.groupNameOf(properties);
|
|
@@ -46763,4 +46833,4 @@ var ACMCertificateProvider = class {
|
|
|
46763
46833
|
|
|
46764
46834
|
//#endregion
|
|
46765
46835
|
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, 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 };
|
|
46766
|
-
//# sourceMappingURL=provider-classes-
|
|
46836
|
+
//# sourceMappingURL=provider-classes-BWo7K01p.js.map
|