fix(cloudformation): honor DynamoDB on-demand billing mode (#7931)

This commit is contained in:
Rashen Anupama authored and GitHub committed 2026-11-10 17:06:48 -04:00
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");
}