Skip to content

Commit

Permalink
fix(table): create table with on-demand billing mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mooyoul committed Feb 19, 2020
1 parent 4ee5c47 commit 62c3498
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/query/table_operations/create_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ export async function createTable(metadata: Metadata.Table.Metadata) {
Projection: {
ProjectionType: "ALL",
},
ProvisionedThroughput: {
ReadCapacityUnits: 1,
WriteCapacityUnits: 1,
},
};
} else {
return {
Expand All @@ -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;
};

Expand Down

0 comments on commit 62c3498

Please sign in to comment.