[aws-dynamodb] replicationRegions sets billing to PAY_PER_REQUEST and autoScaleReadCapacity will fail #10572
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
According to https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_reqs_bestpractices.html I should be able to have Autoscaling and Global tables.
If I set replicationRegions I get the error "AutoScaling is not available for tables with PAY_PER_REQUEST billing mode", when I do autoScaleReadCapacity. This is because table's constructor sets PAY_PER_REQUEST when I pass replicationRegions.
As it stands I have no way of declaring global tables with autoscaling.
AFAIK what we want to avoid is global tables with provisioning and without autoscaling, so we should test for that on the add global replication tables method and make it public instead of calling it from the constructor.
The text was updated successfully, but these errors were encountered: