From 62c349874c870be9be417069bbe2173a621af675 Mon Sep 17 00:00:00 2001 From: MooYeol Prescott Lee Date: Thu, 20 Feb 2020 02:06:35 +0900 Subject: [PATCH] fix(table): create table with on-demand billing mode by default --- src/query/table_operations/create_table.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/query/table_operations/create_table.ts b/src/query/table_operations/create_table.ts index c3e83cd..32c5c48 100644 --- a/src/query/table_operations/create_table.ts +++ b/src/query/table_operations/create_table.ts @@ -123,10 +123,6 @@ export async function createTable(metadata: Metadata.Table.Metadata) { Projection: { ProjectionType: "ALL", }, - ProvisionedThroughput: { - ReadCapacityUnits: 1, - WriteCapacityUnits: 1, - }, }; } else { return { @@ -138,17 +134,10 @@ export async function createTable(metadata: Metadata.Table.Metadata) { Projection: { ProjectionType: "ALL", }, - ProvisionedThroughput: { - ReadCapacityUnits: 1, - WriteCapacityUnits: 1, - }, }; } }) : undefined, - ProvisionedThroughput: { - ReadCapacityUnits: 1, - WriteCapacityUnits: 1, - }, + BillingMode: "PAY_PER_REQUEST" // StreamSpecification?: StreamSpecification; };