Add a Global Secondary Index and Wait
A 2-step recipe with Amazon DynamoDB. We can help you get access.
Recipe · 2 steps
Add a Global Secondary Index and Wait
with Amazon DynamoDB
Add a global secondary index and wait for the table to return to ACTIVE.
- Submit the UpdateTable request that creates the new global secondary index and declares its key attributes.
- Poll DescribeTable until the table status returns to ACTIVE, looping while the index is still backfilling.
What you'll need to have ready
- tableName: The name of the table to add the index to.
- attributeDefinitions: Attribute definitions for the new index key attributes.
- globalSecondaryIndexUpdates: An array of GSI update actions (each with a Create block).
For your developer
Arazzo workflow amazon-dynamodb:create-index-and-wait, 2 operations: UpdateTable → DescribeTable. Specs on APIs.io.