@go-to-k/cdkd 0.221.15 → 0.221.16
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 +17 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1553,7 +1553,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1553
1553
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1554
1554
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1555
1555
|
function getCdkdVersion() {
|
|
1556
|
-
return "0.221.
|
|
1556
|
+
return "0.221.16";
|
|
1557
1557
|
}
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -9579,6 +9579,21 @@ var DynamoDBTableProvider = class {
|
|
|
9579
9579
|
try {
|
|
9580
9580
|
const table = (await this.dynamoDBClient.send(new DescribeTableCommand({ TableName: physicalId }))).Table;
|
|
9581
9581
|
if (table?.TableArn) await this.applyTagDiff(table.TableArn, previousProperties["Tags"], properties["Tags"]);
|
|
9582
|
+
if (JSON.stringify(properties["BillingMode"]) !== JSON.stringify(previousProperties["BillingMode"]) || JSON.stringify(properties["ProvisionedThroughput"]) !== JSON.stringify(previousProperties["ProvisionedThroughput"])) {
|
|
9583
|
+
const billingMode = properties["BillingMode"];
|
|
9584
|
+
const updateInput = { TableName: physicalId };
|
|
9585
|
+
if (billingMode) updateInput.BillingMode = billingMode;
|
|
9586
|
+
if (billingMode !== "PAY_PER_REQUEST" && properties["ProvisionedThroughput"]) {
|
|
9587
|
+
const pt = properties["ProvisionedThroughput"];
|
|
9588
|
+
updateInput.ProvisionedThroughput = {
|
|
9589
|
+
ReadCapacityUnits: Number(pt["ReadCapacityUnits"] ?? 5),
|
|
9590
|
+
WriteCapacityUnits: Number(pt["WriteCapacityUnits"] ?? 5)
|
|
9591
|
+
};
|
|
9592
|
+
}
|
|
9593
|
+
await this.dynamoDBClient.send(new UpdateTableCommand(updateInput));
|
|
9594
|
+
await this.waitForTableActiveAfterUpdate(physicalId);
|
|
9595
|
+
this.logger.debug(`Updated BillingMode/ProvisionedThroughput on DynamoDB table ${physicalId}`);
|
|
9596
|
+
}
|
|
9582
9597
|
if (JSON.stringify(properties["OnDemandThroughput"]) !== JSON.stringify(previousProperties["OnDemandThroughput"])) {
|
|
9583
9598
|
if (properties["OnDemandThroughput"]) {
|
|
9584
9599
|
await this.dynamoDBClient.send(new UpdateTableCommand({
|
|
@@ -54085,7 +54100,7 @@ function reorderArgs(argv) {
|
|
|
54085
54100
|
async function main() {
|
|
54086
54101
|
installPipeCloseHandler();
|
|
54087
54102
|
const program = new Command();
|
|
54088
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.221.
|
|
54103
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.221.16");
|
|
54089
54104
|
program.addCommand(createBootstrapCommand());
|
|
54090
54105
|
program.addCommand(createSynthCommand());
|
|
54091
54106
|
program.addCommand(createListCommand());
|