-
Notifications
You must be signed in to change notification settings - Fork 15
Error: No provisioned throughput specified for the global secondary index #108
Comments
I tried to use aws-cli to create the same table on real aws dynamo-db service. Also doesn't work. |
Hi @okarmusk, Sorry to hear you're having an issue. Can you provide the debug logs (add The error you're getting is from the service, so I think I'll need to see the request and response to be of any further assistance. Thanks! |
@kdaily Debug log output:
|
@kdaily Are there any news regarding the issue? |
same here. |
I can reproduce, also using the example directly from the documentation page (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GCICli.html#GCICli.CreateTableWithIndex). I've reported this to the DynamoDB team. |
I do not believe that this is an AWS CLI issue, so I'm going to transfer this to the centralized AWS SDK repository. |
V416963781 |
Hi @okarmusk and @supercoinman, I heard back from the DynamoDB team, who confirmed that the example in the documentation is not correct. This is a working example of how to add provisioned throughput to a GSI, which would replace the example from the Amazon DynamoDB Developer Guide here:
Of note, the API documentation IS correct for this, which shows the use of the I will leave this open as a documentation issue to be corrected. Thanks again! |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hello,
I'm trying to create table with global secondary index. I followed an example from: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GCICli.html#GCICli.CreateTableWithIndex
Based on documentation, I created script what should create table with global secondary index:
Example from dynamo-db developer guide doesn't work too, returns the same error.
The aws-cli return
An error occurred (ValidationException) when calling the CreateTable operation: No provisioned throughput specified for the global secondary index
.I added line with
--provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=5 \
.aws-cli version
aws-cli/2.2.1 Python/3.8.8 Linux/5.4.0-72-generic exe/x86_64.ubuntu.20 prompt/off
Localhost dynamo-db docker image
amazon/dynamodb-local:1.15.0
The text was updated successfully, but these errors were encountered: