@go-to-k/cdkd 0.181.0 → 0.183.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-BrXMb3Sv.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";
|
|
@@ -22583,7 +22583,8 @@ var Route53Provider = class {
|
|
|
22583
22583
|
"HealthCheckId",
|
|
22584
22584
|
"Comment",
|
|
22585
22585
|
"GeoLocation",
|
|
22586
|
-
"GeoProximityLocation"
|
|
22586
|
+
"GeoProximityLocation",
|
|
22587
|
+
"CidrRoutingConfig"
|
|
22587
22588
|
])]]);
|
|
22588
22589
|
getClient() {
|
|
22589
22590
|
if (!this.route53Client) this.route53Client = new Route53Client(this.providerRegion ? { region: this.providerRegion } : {});
|
|
@@ -22812,8 +22813,8 @@ var Route53Provider = class {
|
|
|
22812
22813
|
* Handles conversion of CDK-style ResourceRecords (array of strings)
|
|
22813
22814
|
* to SDK-style ResourceRecords (array of {Value}).
|
|
22814
22815
|
* Also handles routing policy properties: Weight, Region, Failover,
|
|
22815
|
-
* MultiValueAnswer, GeoLocation, GeoProximityLocation,
|
|
22816
|
-
* HealthCheckId.
|
|
22816
|
+
* MultiValueAnswer, GeoLocation, GeoProximityLocation, CidrRoutingConfig,
|
|
22817
|
+
* SetIdentifier, and HealthCheckId.
|
|
22817
22818
|
*/
|
|
22818
22819
|
buildResourceRecordSet(properties) {
|
|
22819
22820
|
const name = properties["Name"];
|
|
@@ -22868,6 +22869,13 @@ var Route53Provider = class {
|
|
|
22868
22869
|
if (geoProximityLocation["Bias"] !== void 0) gpl.Bias = Number(geoProximityLocation["Bias"]);
|
|
22869
22870
|
recordSet.GeoProximityLocation = gpl;
|
|
22870
22871
|
}
|
|
22872
|
+
const cidrRoutingConfig = properties["CidrRoutingConfig"];
|
|
22873
|
+
if (cidrRoutingConfig) {
|
|
22874
|
+
const crc = {};
|
|
22875
|
+
if (cidrRoutingConfig["CollectionId"] !== void 0) crc.CollectionId = cidrRoutingConfig["CollectionId"];
|
|
22876
|
+
if (cidrRoutingConfig["LocationName"] !== void 0) crc.LocationName = cidrRoutingConfig["LocationName"];
|
|
22877
|
+
recordSet.CidrRoutingConfig = crc;
|
|
22878
|
+
}
|
|
22871
22879
|
return recordSet;
|
|
22872
22880
|
}
|
|
22873
22881
|
/**
|
|
@@ -23012,7 +23020,7 @@ var Route53Provider = class {
|
|
|
23012
23020
|
* (`{zoneId}|{name}|{type}`). Surfaces TTL, ResourceRecords (with
|
|
23013
23021
|
* `[{Value}]` -> string[] re-shape to match cdkd state), AliasTarget,
|
|
23014
23022
|
* Weight, Region, Failover, MultiValueAnswer, HealthCheckId,
|
|
23015
|
-
* GeoLocation, GeoProximityLocation, SetIdentifier.
|
|
23023
|
+
* GeoLocation, GeoProximityLocation, CidrRoutingConfig, SetIdentifier.
|
|
23016
23024
|
*
|
|
23017
23025
|
* Returns `undefined` when the parent zone is gone (`NoSuchHostedZone`).
|
|
23018
23026
|
*/
|
|
@@ -23125,6 +23133,12 @@ var Route53Provider = class {
|
|
|
23125
23133
|
if (recordSet.GeoProximityLocation.Bias !== void 0) gpl["Bias"] = recordSet.GeoProximityLocation.Bias;
|
|
23126
23134
|
result["GeoProximityLocation"] = gpl;
|
|
23127
23135
|
}
|
|
23136
|
+
if (recordSet.CidrRoutingConfig) {
|
|
23137
|
+
const crc = {};
|
|
23138
|
+
if (recordSet.CidrRoutingConfig.CollectionId !== void 0) crc["CollectionId"] = recordSet.CidrRoutingConfig.CollectionId;
|
|
23139
|
+
if (recordSet.CidrRoutingConfig.LocationName !== void 0) crc["LocationName"] = recordSet.CidrRoutingConfig.LocationName;
|
|
23140
|
+
result["CidrRoutingConfig"] = crc;
|
|
23141
|
+
}
|
|
23128
23142
|
return result;
|
|
23129
23143
|
}
|
|
23130
23144
|
/**
|
|
@@ -25809,7 +25823,8 @@ var GlueProvider = class {
|
|
|
25809
25823
|
"DatabaseName",
|
|
25810
25824
|
"TableInput",
|
|
25811
25825
|
"Name",
|
|
25812
|
-
"CatalogId"
|
|
25826
|
+
"CatalogId",
|
|
25827
|
+
"OpenTableFormatInput"
|
|
25813
25828
|
])]]);
|
|
25814
25829
|
getClient() {
|
|
25815
25830
|
if (!this.client) this.client = new GlueClient(this.providerRegion ? { region: this.providerRegion } : {});
|
|
@@ -25907,11 +25922,13 @@ var GlueProvider = class {
|
|
|
25907
25922
|
const tableName = tableInput["Name"] ?? properties["Name"];
|
|
25908
25923
|
if (!tableName) throw new ProvisioningError(`TableInput.Name or top-level Name is required for Glue Table ${logicalId}`, resourceType, logicalId);
|
|
25909
25924
|
const catalogId = properties["CatalogId"];
|
|
25925
|
+
const openTableFormatInput = properties["OpenTableFormatInput"];
|
|
25910
25926
|
try {
|
|
25911
25927
|
await this.getClient().send(new CreateTableCommand$1({
|
|
25912
25928
|
CatalogId: catalogId,
|
|
25913
25929
|
DatabaseName: databaseName,
|
|
25914
|
-
TableInput: this.buildTableInput(tableInput, tableName)
|
|
25930
|
+
TableInput: this.buildTableInput(tableInput, tableName),
|
|
25931
|
+
...openTableFormatInput !== void 0 && { OpenTableFormatInput: openTableFormatInput }
|
|
25915
25932
|
}));
|
|
25916
25933
|
const physicalId = `${databaseName}|${tableName}`;
|
|
25917
25934
|
this.logger.debug(`Successfully created Glue Table ${logicalId}: ${physicalId}`);
|
|
@@ -26083,6 +26100,20 @@ var GlueProvider = class {
|
|
|
26083
26100
|
default: return;
|
|
26084
26101
|
}
|
|
26085
26102
|
}
|
|
26103
|
+
/**
|
|
26104
|
+
* `OpenTableFormatInput` is a create-time directive (`IcebergInput.MetadataOperation`
|
|
26105
|
+
* can only be `CREATE`). `GetTable` does NOT echo it back as an
|
|
26106
|
+
* `OpenTableFormatInput` field — an Iceberg table surfaces only via
|
|
26107
|
+
* `Table.Parameters['table_type'] == 'ICEBERG'`, which is not the same
|
|
26108
|
+
* round-trippable shape. There is therefore no clean emit-when-present
|
|
26109
|
+
* readback for it (and fabricating a placeholder would itself fire false
|
|
26110
|
+
* drift). Declaring it here keeps the drift comparator from false-positiving
|
|
26111
|
+
* on a state-recorded `OpenTableFormatInput` that the readback never surfaces.
|
|
26112
|
+
*/
|
|
26113
|
+
getDriftUnknownPaths(resourceType) {
|
|
26114
|
+
if (resourceType === "AWS::Glue::Table") return ["OpenTableFormatInput"];
|
|
26115
|
+
return [];
|
|
26116
|
+
}
|
|
26086
26117
|
async readDatabase(physicalId) {
|
|
26087
26118
|
let db;
|
|
26088
26119
|
try {
|
|
@@ -51502,7 +51533,7 @@ function reorderArgs(argv) {
|
|
|
51502
51533
|
*/
|
|
51503
51534
|
async function main() {
|
|
51504
51535
|
const program = new Command();
|
|
51505
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51536
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.183.0");
|
|
51506
51537
|
program.addCommand(createBootstrapCommand());
|
|
51507
51538
|
program.addCommand(createSynthCommand());
|
|
51508
51539
|
program.addCommand(createListCommand());
|