@go-to-k/cdkd 0.230.23 → 0.230.24
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 +10 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1445
1445
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1446
1446
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1447
1447
|
function getCdkdVersion() {
|
|
1448
|
-
return "0.230.
|
|
1448
|
+
return "0.230.24";
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -10032,11 +10032,15 @@ var DynamoDBTableProvider = class {
|
|
|
10032
10032
|
try {
|
|
10033
10033
|
const table = (await this.dynamoDBClient.send(new DescribeTableCommand({ TableName: physicalId }))).Table;
|
|
10034
10034
|
if (table?.TableArn) await this.applyTagDiff(table.TableArn, previousProperties["Tags"], properties["Tags"]);
|
|
10035
|
-
|
|
10035
|
+
const normalizeTableClass = (v) => typeof v === "string" && v.length > 0 ? v : "STANDARD";
|
|
10036
|
+
const tableClassChanged = normalizeTableClass(properties["TableClass"]) !== normalizeTableClass(previousProperties["TableClass"]);
|
|
10037
|
+
const billingOrThroughputChanged = JSON.stringify(properties["BillingMode"]) !== JSON.stringify(previousProperties["BillingMode"]) || JSON.stringify(properties["ProvisionedThroughput"]) !== JSON.stringify(previousProperties["ProvisionedThroughput"]);
|
|
10038
|
+
if (billingOrThroughputChanged || tableClassChanged) {
|
|
10036
10039
|
const billingMode = properties["BillingMode"];
|
|
10037
10040
|
const updateInput = { TableName: physicalId };
|
|
10038
|
-
if (billingMode) updateInput.BillingMode = billingMode;
|
|
10039
|
-
if (
|
|
10041
|
+
if (billingOrThroughputChanged && billingMode) updateInput.BillingMode = billingMode;
|
|
10042
|
+
if (tableClassChanged) updateInput.TableClass = normalizeTableClass(properties["TableClass"]);
|
|
10043
|
+
if (billingOrThroughputChanged && billingMode !== "PAY_PER_REQUEST" && properties["ProvisionedThroughput"]) {
|
|
10040
10044
|
const pt = properties["ProvisionedThroughput"];
|
|
10041
10045
|
updateInput.ProvisionedThroughput = {
|
|
10042
10046
|
ReadCapacityUnits: Number(pt["ReadCapacityUnits"] ?? 5),
|
|
@@ -10045,7 +10049,7 @@ var DynamoDBTableProvider = class {
|
|
|
10045
10049
|
}
|
|
10046
10050
|
await this.dynamoDBClient.send(new UpdateTableCommand(updateInput));
|
|
10047
10051
|
await this.waitForTableActiveAfterUpdate(physicalId);
|
|
10048
|
-
this.logger.debug(`Updated BillingMode/ProvisionedThroughput on DynamoDB table ${physicalId}`);
|
|
10052
|
+
this.logger.debug(`Updated BillingMode/ProvisionedThroughput/TableClass on DynamoDB table ${physicalId}`);
|
|
10049
10053
|
}
|
|
10050
10054
|
if (JSON.stringify(properties["OnDemandThroughput"]) !== JSON.stringify(previousProperties["OnDemandThroughput"])) {
|
|
10051
10055
|
if (properties["OnDemandThroughput"]) {
|
|
@@ -55405,7 +55409,7 @@ function reorderArgs(argv) {
|
|
|
55405
55409
|
async function main() {
|
|
55406
55410
|
installPipeCloseHandler();
|
|
55407
55411
|
const program = new Command();
|
|
55408
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.
|
|
55412
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.24");
|
|
55409
55413
|
program.addCommand(createBootstrapCommand());
|
|
55410
55414
|
program.addCommand(createSynthCommand());
|
|
55411
55415
|
program.addCommand(createListCommand());
|