mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(cloudformation): honor DynamoDB on-demand billing mode (#7931)
This commit is contained in:
1 parent
77cb014f9d
commit
b3de4b3179
11 files changed
+52
-9
No files matched your search
@@ -144,11 +144,7 @@ public class NativeDynamoDbTableService {
|
||||
|
||||
table.setDeletionProtectionEnabled(Boolean.TRUE.equals(settings.deletionProtectionEnabled()));
|
||||
|
||||
if ("PAY_PER_REQUEST".equals(billingMode)) {
|
||||
table.setBillingMode("PAY_PER_REQUEST");
|
||||
table.getProvisionedThroughput().setReadCapacityUnits(0L);
|
||||
table.getProvisionedThroughput().setWriteCapacityUnits(0L);
|
||||
} else {
|
||||
if (!"PAY_PER_REQUEST".equals(billingMode)) {
|
||||
table.setBillingMode("PROVISIONED");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user