suggest_gsi
Generates a DynamoDB GSI definition with index name, partition key, projection, and billing mode for queries needing a missing index. Use after checking table schema.
Instructions
Generates a ready-to-use DynamoDB GSI definition — index name, partition key, projection type, billing mode — for a given table and attribute. Call this when a query pattern needs an index that does not exist yet, or when the analyzer flags a missing GSI finding. Does not verify whether the GSI already exists; check the table schema in get_infra_overview first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | DynamoDB table name | |
| attribute | Yes | Attribute to create the GSI on |