We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc7d1b commit 68c991eCopy full SHA for 68c991e
index.js
@@ -304,6 +304,19 @@ class ServerlessDynamodbLocal {
304
if (migration.Tags) {
305
delete migration.Tags;
306
}
307
+ if (migration.BillingMode) {
308
+ delete migration.BillingMode;
309
+ const defaultProvisioning = {
310
+ ReadCapacityUnits: 5,
311
+ WriteCapacityUnits: 5
312
+ };
313
+ migration.ProvisionedThroughput = defaultProvisioning;
314
+ if (migration.GlobalSecondaryIndexes) {
315
+ migration.GlobalSecondaryIndexes.forEach(gsi => {
316
+ gsi.ProvisionedThroughput = defaultProvisioning;
317
+ });
318
+ }
319
320
dynamodb.raw.createTable(migration, (err) => {
321
if (err) {
322
if (err.name === 'ResourceInUseException') {
0 commit comments