@go-to-k/cdkd 0.189.0 → 0.190.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/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
|
|
3
|
-
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-
|
|
3
|
+
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-CapyHC2m.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -12358,7 +12358,8 @@ var EventBridgeBusProvider = class {
|
|
|
12358
12358
|
"Description",
|
|
12359
12359
|
"KmsKeyIdentifier",
|
|
12360
12360
|
"Policy",
|
|
12361
|
-
"DeadLetterConfig"
|
|
12361
|
+
"DeadLetterConfig",
|
|
12362
|
+
"LogConfig"
|
|
12362
12363
|
])]]);
|
|
12363
12364
|
constructor() {
|
|
12364
12365
|
this.eventBridgeClient = getAwsClients().eventBridge;
|
|
@@ -12375,6 +12376,7 @@ var EventBridgeBusProvider = class {
|
|
|
12375
12376
|
if (properties["Tags"]) createParams.Tags = properties["Tags"];
|
|
12376
12377
|
const dlcCreate = sanitizeDeadLetterConfig(properties["DeadLetterConfig"]);
|
|
12377
12378
|
if (dlcCreate) createParams.DeadLetterConfig = dlcCreate;
|
|
12379
|
+
if (properties["LogConfig"] !== void 0) createParams.LogConfig = properties["LogConfig"];
|
|
12378
12380
|
const eventBusArn = (await this.eventBridgeClient.send(new CreateEventBusCommand(createParams))).EventBusArn ?? "";
|
|
12379
12381
|
if (properties["Policy"]) {}
|
|
12380
12382
|
return {
|
|
@@ -12394,7 +12396,8 @@ var EventBridgeBusProvider = class {
|
|
|
12394
12396
|
const descChanged = properties["Description"] !== previousProperties["Description"];
|
|
12395
12397
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
12396
12398
|
const dlcChanged = JSON.stringify(properties["DeadLetterConfig"]) !== JSON.stringify(previousProperties["DeadLetterConfig"]);
|
|
12397
|
-
|
|
12399
|
+
const logCfgChanged = JSON.stringify(properties["LogConfig"]) !== JSON.stringify(previousProperties["LogConfig"]);
|
|
12400
|
+
if (descChanged || kmsChanged || dlcChanged || logCfgChanged) {
|
|
12398
12401
|
const updateParams = { Name: physicalId };
|
|
12399
12402
|
if (properties["Description"] !== void 0) updateParams.Description = properties["Description"];
|
|
12400
12403
|
if (properties["KmsKeyIdentifier"] !== void 0) updateParams.KmsKeyIdentifier = properties["KmsKeyIdentifier"];
|
|
@@ -12402,6 +12405,7 @@ var EventBridgeBusProvider = class {
|
|
|
12402
12405
|
const dlcUpdate = sanitizeDeadLetterConfig(properties["DeadLetterConfig"]);
|
|
12403
12406
|
if (dlcUpdate) updateParams.DeadLetterConfig = dlcUpdate;
|
|
12404
12407
|
}
|
|
12408
|
+
if (properties["LogConfig"] !== void 0) updateParams.LogConfig = properties["LogConfig"];
|
|
12405
12409
|
await this.eventBridgeClient.send(new UpdateEventBusCommand(updateParams));
|
|
12406
12410
|
}
|
|
12407
12411
|
const newTags = properties["Tags"];
|
|
@@ -12516,6 +12520,12 @@ var EventBridgeBusProvider = class {
|
|
|
12516
12520
|
result["Description"] = resp.Description ?? "";
|
|
12517
12521
|
result["KmsKeyIdentifier"] = resp.KmsKeyIdentifier ?? "";
|
|
12518
12522
|
result["DeadLetterConfig"] = { Arn: resp.DeadLetterConfig?.Arn ?? "" };
|
|
12523
|
+
if (resp.LogConfig !== void 0) {
|
|
12524
|
+
const lc = {};
|
|
12525
|
+
if (resp.LogConfig.IncludeDetail !== void 0) lc["IncludeDetail"] = resp.LogConfig.IncludeDetail;
|
|
12526
|
+
if (resp.LogConfig.Level !== void 0) lc["Level"] = resp.LogConfig.Level;
|
|
12527
|
+
if (Object.keys(lc).length > 0) result["LogConfig"] = lc;
|
|
12528
|
+
}
|
|
12519
12529
|
if (resp.Policy) try {
|
|
12520
12530
|
result["Policy"] = JSON.parse(resp.Policy);
|
|
12521
12531
|
} catch {
|
|
@@ -51597,7 +51607,7 @@ function reorderArgs(argv) {
|
|
|
51597
51607
|
*/
|
|
51598
51608
|
async function main() {
|
|
51599
51609
|
const program = new Command();
|
|
51600
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51610
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.190.0");
|
|
51601
51611
|
program.addCommand(createBootstrapCommand());
|
|
51602
51612
|
program.addCommand(createSynthCommand());
|
|
51603
51613
|
program.addCommand(createListCommand());
|