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.
2 parents 9ce9062 + a0bc732 commit f6dbc6bCopy full SHA for f6dbc6b
index.js
@@ -314,6 +314,20 @@ class ServerlessDynamodbLocal {
314
if (migration.Tags) {
315
delete migration.Tags;
316
}
317
+ if (migration.BillingMode === "PAY_PER_REQUEST") {
318
+ delete migration.BillingMode;
319
+
320
+ const defaultProvisioning = {
321
+ ReadCapacityUnits: 5,
322
+ WriteCapacityUnits: 5
323
+ };
324
+ migration.ProvisionedThroughput = defaultProvisioning;
325
+ if (migration.GlobalSecondaryIndexes) {
326
+ migration.GlobalSecondaryIndexes.forEach((gsi) => {
327
+ gsi.ProvisionedThroughput = defaultProvisioning;
328
+ });
329
+ }
330
331
dynamodb.raw.createTable(migration, (err) => {
332
if (err) {
333
if (err.name === 'ResourceInUseException') {
0 commit comments