Closed alexjurkiewicz closed 9 months ago
For reference: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html
Oddly enough, the docs don't explain this clearly, it just mentions that ProvisionedThroughput
on a GSI spec is optional...
Anyway, thank you for noticing this and the PR.
CI currently failing because 3.7 is EOL'd, please wait for https://github.com/HENNGE/aiodynamo/pull/161 to merge and then rebase (or I'll rebase & merge offline)
Done
mypy is being silly, i'll fix it.
I was looking too 😊 My fix is a little ugly, but satisfies the checker
merged locally, so closing this PR. Thank you.
Thanks for the help!
When creating a table in pay-per-request billing mode, don't specify provisioned throughput for GSIs.
It might be better to create two classes of the Table type, one for each billing mode. But that's a major (probably breaking) refactor, and the AWS API doesn't do this either.