You can adjust the read capacity units and write capacity units values of a currently running index creation using the AWS CLI:
Create a file named gsi-update-MyIndex.json with the following content:
[
{
"Update": {
"IndexName": "BluekaiID-index",
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 100
}
}
}
]
Then, execute the following command:
aws dynamodb update-table --table-name mytablename --global-secondary-index-updates file://gsi-update-MyIndex.json
You'll probably want to bump up the values on the main table for a minute, too with the following command:
aws dynamodb update-table --table-name mytablename --provisioned-throughput ReadCapacityUnits=100,WriteCapacityUnits=1
Once your index creation is done and loaded, rerun the commands above with smaller values to fit your normal traffic.