create_gsi
Create a Global Secondary Index on a DynamoDB table to enable queries on non-primary-key attributes. Monitor index creation progress using describe_table.
Instructions
Create a Global Secondary Index (GSI) on a DynamoDB table.
GSIs enable querying on non-primary-key attributes. The table must be in ACTIVE status. Index creation is asynchronous — use describe_table to monitor progress.
When to use:
To enable queries on attributes that aren't part of the primary key
To create alternative access patterns for existing data
When NOT to use:
If a suitable GSI already exists (check with describe_table first)
If the table is not in ACTIVE status
Returns: JSON confirming the GSI creation was initiated with index details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |