I want to test making way too many request to a DynamoDB table to trigger the exception ProvisionedThroughputExceededException
.
For this I have to reach the capacity limit, so I need to create a table that doesn't auto-scale.
DynamoDB has 2 capacity modes:
- on-demand: you don't specify any capacity, the table adapts to any traffic.
- provisioned: you specify your desired capacity, but can also auto-scale.
I'm using provisioned mode, but I don't know how to disable its auto scaling. On the table, capacity settings, I only have this:
There's this option of I authorize DynamoDB to scale capacity using the following role. But it's already set, I can't touch it.