@go-to-k/cdkd 0.182.0 → 0.184.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-J_495u9C.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";
|
|
@@ -18023,6 +18023,7 @@ var ECSProvider = class {
|
|
|
18023
18023
|
"PidMode",
|
|
18024
18024
|
"IpcMode",
|
|
18025
18025
|
"EphemeralStorage",
|
|
18026
|
+
"EnableFaultInjection",
|
|
18026
18027
|
"Tags"
|
|
18027
18028
|
])],
|
|
18028
18029
|
["AWS::ECS::Service", new Set([
|
|
@@ -18193,7 +18194,8 @@ var ECSProvider = class {
|
|
|
18193
18194
|
proxyConfiguration: properties["ProxyConfiguration"],
|
|
18194
18195
|
pidMode: properties["PidMode"],
|
|
18195
18196
|
ipcMode: properties["IpcMode"],
|
|
18196
|
-
ephemeralStorage: properties["EphemeralStorage"]
|
|
18197
|
+
ephemeralStorage: properties["EphemeralStorage"],
|
|
18198
|
+
enableFaultInjection: properties["EnableFaultInjection"]
|
|
18197
18199
|
}))).taskDefinition;
|
|
18198
18200
|
if (!taskDef || !taskDef.taskDefinitionArn) throw new Error("RegisterTaskDefinition did not return task definition ARN");
|
|
18199
18201
|
this.logger.debug(`Successfully created ECS task definition ${logicalId}: ${taskDef.taskDefinitionArn}`);
|
|
@@ -18737,6 +18739,7 @@ var ECSProvider = class {
|
|
|
18737
18739
|
if (td.pidMode !== void 0) result["PidMode"] = td.pidMode;
|
|
18738
18740
|
if (td.ipcMode !== void 0) result["IpcMode"] = td.ipcMode;
|
|
18739
18741
|
if (td.ephemeralStorage?.sizeInGiB !== void 0) result["EphemeralStorage"] = { SizeInGiB: td.ephemeralStorage.sizeInGiB };
|
|
18742
|
+
if (td.enableFaultInjection !== void 0) result["EnableFaultInjection"] = td.enableFaultInjection;
|
|
18740
18743
|
result["ContainerDefinitions"] = td.containerDefinitions ?? [];
|
|
18741
18744
|
result["Tags"] = normalizeAwsTagsToCfn(resp.tags);
|
|
18742
18745
|
return result;
|
|
@@ -25823,7 +25826,8 @@ var GlueProvider = class {
|
|
|
25823
25826
|
"DatabaseName",
|
|
25824
25827
|
"TableInput",
|
|
25825
25828
|
"Name",
|
|
25826
|
-
"CatalogId"
|
|
25829
|
+
"CatalogId",
|
|
25830
|
+
"OpenTableFormatInput"
|
|
25827
25831
|
])]]);
|
|
25828
25832
|
getClient() {
|
|
25829
25833
|
if (!this.client) this.client = new GlueClient(this.providerRegion ? { region: this.providerRegion } : {});
|
|
@@ -25921,11 +25925,13 @@ var GlueProvider = class {
|
|
|
25921
25925
|
const tableName = tableInput["Name"] ?? properties["Name"];
|
|
25922
25926
|
if (!tableName) throw new ProvisioningError(`TableInput.Name or top-level Name is required for Glue Table ${logicalId}`, resourceType, logicalId);
|
|
25923
25927
|
const catalogId = properties["CatalogId"];
|
|
25928
|
+
const openTableFormatInput = properties["OpenTableFormatInput"];
|
|
25924
25929
|
try {
|
|
25925
25930
|
await this.getClient().send(new CreateTableCommand$1({
|
|
25926
25931
|
CatalogId: catalogId,
|
|
25927
25932
|
DatabaseName: databaseName,
|
|
25928
|
-
TableInput: this.buildTableInput(tableInput, tableName)
|
|
25933
|
+
TableInput: this.buildTableInput(tableInput, tableName),
|
|
25934
|
+
...openTableFormatInput !== void 0 && { OpenTableFormatInput: openTableFormatInput }
|
|
25929
25935
|
}));
|
|
25930
25936
|
const physicalId = `${databaseName}|${tableName}`;
|
|
25931
25937
|
this.logger.debug(`Successfully created Glue Table ${logicalId}: ${physicalId}`);
|
|
@@ -26097,6 +26103,20 @@ var GlueProvider = class {
|
|
|
26097
26103
|
default: return;
|
|
26098
26104
|
}
|
|
26099
26105
|
}
|
|
26106
|
+
/**
|
|
26107
|
+
* `OpenTableFormatInput` is a create-time directive (`IcebergInput.MetadataOperation`
|
|
26108
|
+
* can only be `CREATE`). `GetTable` does NOT echo it back as an
|
|
26109
|
+
* `OpenTableFormatInput` field — an Iceberg table surfaces only via
|
|
26110
|
+
* `Table.Parameters['table_type'] == 'ICEBERG'`, which is not the same
|
|
26111
|
+
* round-trippable shape. There is therefore no clean emit-when-present
|
|
26112
|
+
* readback for it (and fabricating a placeholder would itself fire false
|
|
26113
|
+
* drift). Declaring it here keeps the drift comparator from false-positiving
|
|
26114
|
+
* on a state-recorded `OpenTableFormatInput` that the readback never surfaces.
|
|
26115
|
+
*/
|
|
26116
|
+
getDriftUnknownPaths(resourceType) {
|
|
26117
|
+
if (resourceType === "AWS::Glue::Table") return ["OpenTableFormatInput"];
|
|
26118
|
+
return [];
|
|
26119
|
+
}
|
|
26100
26120
|
async readDatabase(physicalId) {
|
|
26101
26121
|
let db;
|
|
26102
26122
|
try {
|
|
@@ -51516,7 +51536,7 @@ function reorderArgs(argv) {
|
|
|
51516
51536
|
*/
|
|
51517
51537
|
async function main() {
|
|
51518
51538
|
const program = new Command();
|
|
51519
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51539
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.184.0");
|
|
51520
51540
|
program.addCommand(createBootstrapCommand());
|
|
51521
51541
|
program.addCommand(createSynthCommand());
|
|
51522
51542
|
program.addCommand(createListCommand());
|