capabilities.work

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

Add a global secondary index and wait for the table to return to ACTIVE.

  1. Submit the UpdateTable request that creates the new global secondary index and declares its key attributes.
  2. 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.