@go-to-k/cdkd 0.257.4 → 0.259.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/{asg-provider-BhmMKcnJ.js → asg-provider-rcNqhfPS.js} +2 -2
- package/dist/{asg-provider-BhmMKcnJ.js.map → asg-provider-rcNqhfPS.js.map} +1 -1
- package/dist/cli.js +488 -74
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-DMpr3qtv.js → deploy-engine-Dg51mHCV.js} +50 -5
- package/dist/deploy-engine-Dg51mHCV.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
- package/dist/deploy-engine-DMpr3qtv.js.map +0 -1
|
@@ -19,6 +19,7 @@ import { CloudWatchClient } from "@aws-sdk/client-cloudwatch";
|
|
|
19
19
|
import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs";
|
|
20
20
|
import { BedrockAgentCoreControlClient } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
21
21
|
import { ACMClient } from "@aws-sdk/client-acm";
|
|
22
|
+
import { LambdaMicrovmsClient } from "@aws-sdk/client-lambda-microvms";
|
|
22
23
|
import { createReadStream, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
23
24
|
import { basename, isAbsolute, join, resolve } from "node:path";
|
|
24
25
|
import { spawn } from "node:child_process";
|
|
@@ -35,7 +36,7 @@ import { DescribeDBClustersCommand, DescribeDBInstancesCommand, RDSClient } from
|
|
|
35
36
|
import { DescribeReplicationGroupsCommand, ElastiCacheClient } from "@aws-sdk/client-elasticache";
|
|
36
37
|
import { DescribeClustersCommand, RedshiftClient } from "@aws-sdk/client-redshift";
|
|
37
38
|
import { DescribeDomainCommand, OpenSearchClient } from "@aws-sdk/client-opensearch";
|
|
38
|
-
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$11, TagResourceCommand as TagResourceCommand$
|
|
39
|
+
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$11, TagResourceCommand as TagResourceCommand$13, UntagResourceCommand as UntagResourceCommand$13, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
39
40
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
40
41
|
|
|
41
42
|
//#region \0rolldown/runtime.js
|
|
@@ -609,6 +610,7 @@ var AwsClients = class {
|
|
|
609
610
|
cloudWatchLogsClient;
|
|
610
611
|
bedrockAgentCoreControlClient;
|
|
611
612
|
acmClient;
|
|
613
|
+
lambdaMicrovmsClient;
|
|
612
614
|
config;
|
|
613
615
|
constructor(config = {}) {
|
|
614
616
|
this.config = config;
|
|
@@ -893,6 +895,28 @@ var AwsClients = class {
|
|
|
893
895
|
return this.getACMClient();
|
|
894
896
|
}
|
|
895
897
|
/**
|
|
898
|
+
* Get Lambda MicroVMs client.
|
|
899
|
+
*
|
|
900
|
+
* Backs `AWS::Lambda::MicrovmImage` (`LambdaMicrovmImageProvider`). This is
|
|
901
|
+
* the dedicated `lambda-microvms` service, NOT `@aws-sdk/client-lambda` —
|
|
902
|
+
* the MicroVM image / MicroVM run APIs live in their own service model.
|
|
903
|
+
* Region-scoped: MicroVM images and their code-artifact S3 buckets must be
|
|
904
|
+
* in the same region.
|
|
905
|
+
*/
|
|
906
|
+
getLambdaMicrovmsClient() {
|
|
907
|
+
if (!this.lambdaMicrovmsClient) this.lambdaMicrovmsClient = new LambdaMicrovmsClient({
|
|
908
|
+
...this.config.region && { region: this.config.region },
|
|
909
|
+
...this.config.credentials && { credentials: this.config.credentials }
|
|
910
|
+
});
|
|
911
|
+
return this.lambdaMicrovmsClient;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* Convenience getter for Lambda MicroVMs client
|
|
915
|
+
*/
|
|
916
|
+
get lambdaMicrovms() {
|
|
917
|
+
return this.getLambdaMicrovmsClient();
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
896
920
|
* Get CloudWatch client
|
|
897
921
|
*/
|
|
898
922
|
getCloudWatchClient() {
|
|
@@ -963,6 +987,7 @@ var AwsClients = class {
|
|
|
963
987
|
this.cloudWatchLogsClient?.destroy();
|
|
964
988
|
this.bedrockAgentCoreControlClient?.destroy();
|
|
965
989
|
this.acmClient?.destroy();
|
|
990
|
+
this.lambdaMicrovmsClient?.destroy();
|
|
966
991
|
}
|
|
967
992
|
};
|
|
968
993
|
/**
|
|
@@ -8486,14 +8511,14 @@ var WAFv2WebACLProvider = class {
|
|
|
8486
8511
|
const tagsToRemove = [];
|
|
8487
8512
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
8488
8513
|
if (tagsToRemove.length > 0) {
|
|
8489
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
8514
|
+
await this.getClient().send(new UntagResourceCommand$13({
|
|
8490
8515
|
ResourceARN: arn,
|
|
8491
8516
|
TagKeys: tagsToRemove
|
|
8492
8517
|
}));
|
|
8493
8518
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from WAFv2 WebACL ${arn}`);
|
|
8494
8519
|
}
|
|
8495
8520
|
if (tagsToAdd.length > 0) {
|
|
8496
|
-
await this.getClient().send(new TagResourceCommand$
|
|
8521
|
+
await this.getClient().send(new TagResourceCommand$13({
|
|
8497
8522
|
ResourceARN: arn,
|
|
8498
8523
|
Tags: tagsToAdd
|
|
8499
8524
|
}));
|
|
@@ -10596,6 +10621,7 @@ const NON_PROVISIONABLE_TYPES = /* @__PURE__ */ new Set([
|
|
|
10596
10621
|
"AWS::AppStream::Fleet",
|
|
10597
10622
|
"AWS::AppSync::ApiCache",
|
|
10598
10623
|
"AWS::AutoScalingPlans::ScalingPlan",
|
|
10624
|
+
"AWS::Bedrock::DefaultPromptRouter",
|
|
10599
10625
|
"AWS::Bedrock::ModelInvocationJob",
|
|
10600
10626
|
"AWS::BedrockAgentCore::TokenVault",
|
|
10601
10627
|
"AWS::Cloud9::EnvironmentEC2",
|
|
@@ -11039,7 +11065,7 @@ var CloudControlProvider = class {
|
|
|
11039
11065
|
this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
|
|
11040
11066
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
11041
11067
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
11042
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
11068
|
+
const { ASGProvider } = await import("./asg-provider-rcNqhfPS.js").then((n) => n.n);
|
|
11043
11069
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
11044
11070
|
return;
|
|
11045
11071
|
}
|
|
@@ -13774,6 +13800,25 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
13774
13800
|
]),
|
|
13775
13801
|
silentDrop: /* @__PURE__ */ new Map()
|
|
13776
13802
|
}],
|
|
13803
|
+
["AWS::Lambda::MicrovmImage", {
|
|
13804
|
+
handled: /* @__PURE__ */ new Set([
|
|
13805
|
+
"AdditionalOsCapabilities",
|
|
13806
|
+
"BaseImageArn",
|
|
13807
|
+
"BaseImageVersion",
|
|
13808
|
+
"BuildRoleArn",
|
|
13809
|
+
"CodeArtifact",
|
|
13810
|
+
"CpuConfigurations",
|
|
13811
|
+
"Description",
|
|
13812
|
+
"EgressNetworkConnectors",
|
|
13813
|
+
"EnvironmentVariables",
|
|
13814
|
+
"Hooks",
|
|
13815
|
+
"Logging",
|
|
13816
|
+
"Name",
|
|
13817
|
+
"Resources",
|
|
13818
|
+
"Tags"
|
|
13819
|
+
]),
|
|
13820
|
+
silentDrop: /* @__PURE__ */ new Map()
|
|
13821
|
+
}],
|
|
13777
13822
|
["AWS::Lambda::Permission", {
|
|
13778
13823
|
handled: /* @__PURE__ */ new Set([
|
|
13779
13824
|
"Action",
|
|
@@ -17687,4 +17732,4 @@ var DeployEngine = class {
|
|
|
17687
17732
|
|
|
17688
17733
|
//#endregion
|
|
17689
17734
|
export { getBootstrapMarkerKey as $, formatError as $t, refStateLookupFromResource as A, resolveBucketRegion as At, S3StateBackend as B, LocalMigrateError as Bt, findActionableSilentDrops as C, CFN_TEMPLATE_URL_LIMIT as Ct, isTerminationProtectionPropagationError as D, expectedOwnerParam as Dt, disableInstanceApiTermination as E, uploadCfnTemplate as Et, applyRoleArnIfSet as F, AssetError as Ft, WorkGraph as G, PartialFailureError as Gt, shouldRetainResource as H, LockError as Ht, DiffCalculator as I, CdkdError as It, loadPublishableAssetManifest as J, ResourceUpdateNotSupportedError as Jt, buildAssetRedirectMap as K, ProvisioningError as Kt, DagBuilder as L, ConfigError as Lt, normalizeAwsTagsToCfn as M, getAwsClients as Mt, resolveExplicitPhysicalId as N, resetAwsClients as Nt, IntrinsicFunctionResolver as O, AssemblyReader as Ot, assertRegionMatch as P, setAwsClients as Pt, ensureAssetStorage as Q, SynthesisError as Qt, TemplateParser as R, DependencyError as Rt, ProviderRegistry as S, CFN_TEMPLATE_BODY_LIMIT as St, slowCcOperationTimeoutMs as T, findLargeInlineResources as Tt, AssetPublisher as U, MissingCdkCliError as Ut, rebuildClientForBucketRegion as V, LocalStartServiceError as Vt, stringifyValue as W, NestedStackChildDirectDestroyError as Wt, AssetModeResolver as X, StackTerminationProtectionError as Xt, rewriteTemplateAssetReferences as Y, StackHasActiveImportsError as Yt, BOOTSTRAP_MARKER_PREFIX as Z, StateError as Zt, green as _, resolveSkipPrefix as _t, withRetry as a, getDockerCmd as at, IAMRoleProvider as b, resolveUseCdkBootstrapAssets as bt, computeImplicitDeleteEdges as c, AssetManifestLoader as ct, isStatefulRecreateTargetSync as d, synthesisStatusMessage as dt, isCdkdError as en, parseBootstrapMarker as et, renderStatefulReason as f, getDefaultStateBucketName as ft, gray as g, resolveCaptureObservedState as gt, cyan as h, resolveAutoAssetStorage as ht, withResourceDeadline as i, formatDockerLoginError as it, WAFv2WebACLProvider as j, AwsClients as jt, cfnRefValueFromPhysicalId as k, clearBucketRegionCache as kt, extractDeploymentEventError as l, getDockerImageBySourceHash as lt, bold as m, resolveApp as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, withErrorHandling as nn, validateContainerRepoName as nt, isRetryableTransientError as o, runDockerForeground as ot, formatResourceLine as p, getLegacyStateBucketName as pt, createAssetRedirectResolver as q, ResourceTimeoutError as qt, DeployEngine as r, __exportAll as rn, buildDockerImage as rt, IMPLICIT_DELETE_DEPENDENCIES as s, runDockerStreaming as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, normalizeAwsError as tn, validateAssetBucketName as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, Synthesizer as ut, red as v, resolveStateBucketWithDefault as vt, CloudControlProvider as w, MIGRATE_TMP_PREFIX as wt, collectInlinePolicyNamesManagedBySiblings as x, warnDeprecatedNoPrefixCliFlag as xt, yellow as y, resolveStateBucketWithDefaultAndSource as yt, LockManager as z, LocalInvokeBuildError as zt };
|
|
17690
|
-
//# sourceMappingURL=deploy-engine-
|
|
17735
|
+
//# sourceMappingURL=deploy-engine-Dg51mHCV.js.map
|