@go-to-k/cdkd 0.267.16 → 0.267.17
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/README.md +67 -93
- package/dist/{asg-provider-Ge0MCN5U.js → asg-provider-CGSEz9er.js} +2 -2
- package/dist/{asg-provider-Ge0MCN5U.js.map → asg-provider-CGSEz9er.js.map} +1 -1
- package/dist/cli.js +53 -3
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-BjGr3po1.js → deploy-engine-D-55wJlE.js} +3 -3
- package/dist/{deploy-engine-BjGr3po1.js.map → deploy-engine-D-55wJlE.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as WorkGraph, $t as NestedStackChildDirectDestroyError, A as slowCcOperationTimeoutMs, At as CFN_TEMPLATE_BODY_LIMIT, B as applyRoleArnIfSet, Bt as AwsClients, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as expectedOwnerParam, G as DagBuilder, Gt as CdkdError, H as describeTypeWithThrottleRetry, Ht as resetAwsClients, I as WAFv2WebACLProvider, It as AssemblyReader, J as S3StateBackend, Jt as LocalInvokeBuildError$1, K as TemplateParser, L as normalizeAwsTagsToCfn, Lt as processStackMessages, M as isTerminationProtectionPropagationError, Mt as MIGRATE_TMP_PREFIX, N as IntrinsicFunctionResolver, Nt as findLargeInlineResources, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as uploadCfnTemplate, Q as stringifyValue, Qt as MissingCdkCliError, R as resolveExplicitPhysicalId, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as setAwsClients, V as DiffCalculator, Vt as getAwsClients, W as isRetryableTransientError, X as shouldRetainResource, Xt as LocalStartServiceError, Y as rebuildClientForBucketRegion, Yt as LocalMigrateError, Z as AssetPublisher, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as StackTerminationProtectionError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dn as withErrorHandling, dt as buildDockerImage, en as PartialFailureError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as StackHasActiveImportsError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_URL_LIMIT, k as CloudControlProvider, kt as warnDeprecatedNoPrefixCliFlag, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as ResourceTimeoutError, nt as loadPublishableAssetManifest, o as planFailedOps, ot as ensureAssetStorage, p as extractDeploymentEventError, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ResourceUpdateNotSupportedError, rt as rewriteTemplateAssetReferences, s as planRollback, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as ProvisioningError, tt as createAssetRedirectResolver, u as withResourceDeadline, un as normalizeAwsError, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch, zt as resolveBucketRegion } from "./deploy-engine-
|
|
2
|
+
import { $ as WorkGraph, $t as NestedStackChildDirectDestroyError, A as slowCcOperationTimeoutMs, At as CFN_TEMPLATE_BODY_LIMIT, B as applyRoleArnIfSet, Bt as AwsClients, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as expectedOwnerParam, G as DagBuilder, Gt as CdkdError, H as describeTypeWithThrottleRetry, Ht as resetAwsClients, I as WAFv2WebACLProvider, It as AssemblyReader, J as S3StateBackend, Jt as LocalInvokeBuildError$1, K as TemplateParser, L as normalizeAwsTagsToCfn, Lt as processStackMessages, M as isTerminationProtectionPropagationError, Mt as MIGRATE_TMP_PREFIX, N as IntrinsicFunctionResolver, Nt as findLargeInlineResources, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as uploadCfnTemplate, Q as stringifyValue, Qt as MissingCdkCliError, R as resolveExplicitPhysicalId, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as setAwsClients, V as DiffCalculator, Vt as getAwsClients, W as isRetryableTransientError, X as shouldRetainResource, Xt as LocalStartServiceError, Y as rebuildClientForBucketRegion, Yt as LocalMigrateError, Z as AssetPublisher, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as StackTerminationProtectionError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dn as withErrorHandling, dt as buildDockerImage, en as PartialFailureError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as StackHasActiveImportsError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_URL_LIMIT, k as CloudControlProvider, kt as warnDeprecatedNoPrefixCliFlag, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as ResourceTimeoutError, nt as loadPublishableAssetManifest, o as planFailedOps, ot as ensureAssetStorage, p as extractDeploymentEventError, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ResourceUpdateNotSupportedError, rt as rewriteTemplateAssetReferences, s as planRollback, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as ProvisioningError, tt as createAssetRedirectResolver, u as withResourceDeadline, un as normalizeAwsError, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch, zt as resolveBucketRegion } from "./deploy-engine-D-55wJlE.js";
|
|
3
3
|
import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as withSkipPrefix, i as runStackBuffered, n as getLogger, o as PATTERN_B_NAME_OPTIONS, p as withStackName, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-BYMEE-BS.js";
|
|
4
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-CGSEz9er.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -2870,6 +2870,7 @@ var IAMManagedPolicyProvider = class {
|
|
|
2870
2870
|
attributes: { PolicyArn: policyArn }
|
|
2871
2871
|
};
|
|
2872
2872
|
} catch (error) {
|
|
2873
|
+
if (error instanceof CdkdError) throw error;
|
|
2873
2874
|
const cause = error instanceof Error ? error : void 0;
|
|
2874
2875
|
throw new ProvisioningError(`Failed to create IAM managed policy ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, policyName, cause);
|
|
2875
2876
|
}
|
|
@@ -14831,6 +14832,15 @@ var EC2Provider = class {
|
|
|
14831
14832
|
}
|
|
14832
14833
|
}
|
|
14833
14834
|
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
14835
|
+
try {
|
|
14836
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
14837
|
+
} catch (error) {
|
|
14838
|
+
if (error instanceof CdkdError) throw error;
|
|
14839
|
+
const cause = error instanceof Error ? error : void 0;
|
|
14840
|
+
throw new ProvisioningError(`Failed to update EC2 resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
14841
|
+
}
|
|
14842
|
+
}
|
|
14843
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
14834
14844
|
switch (resourceType) {
|
|
14835
14845
|
case "AWS::EC2::VPC": return this.updateVpc(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
14836
14846
|
case "AWS::EC2::Subnet": return this.updateSubnet(logicalId, physicalId);
|
|
@@ -15481,6 +15491,7 @@ var EC2Provider = class {
|
|
|
15481
15491
|
...createResult.attributes && { attributes: createResult.attributes }
|
|
15482
15492
|
};
|
|
15483
15493
|
} catch (error) {
|
|
15494
|
+
if (error instanceof CdkdError) throw error;
|
|
15484
15495
|
const cause = error instanceof Error ? error : void 0;
|
|
15485
15496
|
throw new ProvisioningError(`Failed to update Route ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
15486
15497
|
}
|
|
@@ -15735,6 +15746,7 @@ var EC2Provider = class {
|
|
|
15735
15746
|
...createResult.attributes && { attributes: createResult.attributes }
|
|
15736
15747
|
};
|
|
15737
15748
|
} catch (error) {
|
|
15749
|
+
if (error instanceof CdkdError) throw error;
|
|
15738
15750
|
const cause = error instanceof Error ? error : void 0;
|
|
15739
15751
|
throw new ProvisioningError(`Failed to update SecurityGroupIngress ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
15740
15752
|
}
|
|
@@ -19926,6 +19938,7 @@ var CloudFrontDistributionProvider = class {
|
|
|
19926
19938
|
}
|
|
19927
19939
|
};
|
|
19928
19940
|
} catch (error) {
|
|
19941
|
+
if (error instanceof CdkdError) throw error;
|
|
19929
19942
|
const cause = error instanceof Error ? error : void 0;
|
|
19930
19943
|
throw new ProvisioningError(`Failed to update CloudFront Distribution ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
19931
19944
|
}
|
|
@@ -23188,6 +23201,15 @@ var ELBv2Provider = class {
|
|
|
23188
23201
|
}
|
|
23189
23202
|
}
|
|
23190
23203
|
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
23204
|
+
try {
|
|
23205
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
23206
|
+
} catch (error) {
|
|
23207
|
+
if (error instanceof CdkdError) throw error;
|
|
23208
|
+
const cause = error instanceof Error ? error : void 0;
|
|
23209
|
+
throw new ProvisioningError(`Failed to update ELBv2 resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
23210
|
+
}
|
|
23211
|
+
}
|
|
23212
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
23191
23213
|
switch (resourceType) {
|
|
23192
23214
|
case "AWS::ElasticLoadBalancingV2::LoadBalancer": return this.updateLoadBalancer(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
23193
23215
|
case "AWS::ElasticLoadBalancingV2::TargetGroup": return this.updateTargetGroup(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
@@ -33342,6 +33364,15 @@ var KinesisStreamConsumerProvider = class {
|
|
|
33342
33364
|
* "use cdkd deploy --replace" suggestion.
|
|
33343
33365
|
*/
|
|
33344
33366
|
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
33367
|
+
try {
|
|
33368
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
33369
|
+
} catch (error) {
|
|
33370
|
+
if (error instanceof CdkdError) throw error;
|
|
33371
|
+
const cause = error instanceof Error ? error : void 0;
|
|
33372
|
+
throw new ProvisioningError(`Failed to update Kinesis stream consumer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
33373
|
+
}
|
|
33374
|
+
}
|
|
33375
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
33345
33376
|
const newConsumerName = properties["ConsumerName"];
|
|
33346
33377
|
const oldConsumerName = previousProperties["ConsumerName"];
|
|
33347
33378
|
const newStreamArn = properties["StreamARN"];
|
|
@@ -37223,6 +37254,15 @@ var FirehoseProvider = class {
|
|
|
37223
37254
|
* can `cdkd deploy --replace`.
|
|
37224
37255
|
*/
|
|
37225
37256
|
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
37257
|
+
try {
|
|
37258
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
37259
|
+
} catch (error) {
|
|
37260
|
+
if (error instanceof CdkdError) throw error;
|
|
37261
|
+
const cause = error instanceof Error ? error : void 0;
|
|
37262
|
+
throw new ProvisioningError(`Failed to update Firehose delivery stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
37263
|
+
}
|
|
37264
|
+
}
|
|
37265
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
37226
37266
|
this.logger.debug(`Updating Firehose delivery stream ${logicalId}: ${physicalId}`);
|
|
37227
37267
|
const destKey = this.findDestinationKey(properties);
|
|
37228
37268
|
const prevDestKey = this.findDestinationKey(previousProperties);
|
|
@@ -40240,6 +40280,15 @@ var S3TablesProvider = class {
|
|
|
40240
40280
|
}
|
|
40241
40281
|
}
|
|
40242
40282
|
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
40283
|
+
try {
|
|
40284
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
40285
|
+
} catch (error) {
|
|
40286
|
+
if (error instanceof CdkdError) throw error;
|
|
40287
|
+
const cause = error instanceof Error ? error : void 0;
|
|
40288
|
+
throw new ProvisioningError(`Failed to update S3 Tables resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
40289
|
+
}
|
|
40290
|
+
}
|
|
40291
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
40243
40292
|
if (resourceType === "AWS::S3Tables::Table") await this.applyTableTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"]);
|
|
40244
40293
|
else if (resourceType === "AWS::S3Tables::TableBucket") await this.applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"]);
|
|
40245
40294
|
else this.logger.debug(`Update is no-op for ${resourceType} ${logicalId}`);
|
|
@@ -41987,6 +42036,7 @@ var ACMCertificateProvider = class {
|
|
|
41987
42036
|
}
|
|
41988
42037
|
};
|
|
41989
42038
|
} catch (error) {
|
|
42039
|
+
if (error instanceof CdkdError) throw error;
|
|
41990
42040
|
const cause = error instanceof Error ? error : void 0;
|
|
41991
42041
|
throw new ProvisioningError(`Failed to create ACM certificate ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
|
|
41992
42042
|
}
|
|
@@ -62167,7 +62217,7 @@ function createMigrateCommand() {
|
|
|
62167
62217
|
*/
|
|
62168
62218
|
function buildProgram() {
|
|
62169
62219
|
const program = new Command();
|
|
62170
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.267.
|
|
62220
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.267.17");
|
|
62171
62221
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
62172
62222
|
const { profile } = actionCommand.optsWithGlobals();
|
|
62173
62223
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|