aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
87 stars 73 forks source link

Allow Defining Projected Attributes When Creating Secondary Indexes #2563

Open hasadata opened 3 months ago

hasadata commented 3 months ago

Environment information

prod

Description

Currently, when creating secondary indexes (both Global Secondary Indexes (GSI), there is no option to define the projected attributes. This feature is crucial for optimizing query performance and managing storage costs by projecting only the necessary attributes into the index.

Proposed Feature:

Add the ability to specify projected attributes when creating secondary indexes in Amplify. This feature should include: Selection of Projected Attributes: Allow users to choose specific attributes to be projected into the secondary index. Projection Type Options: Provide options for KEYS_ONLY, INCLUDE, and ALL projection types.

AnilMaktala commented 3 months ago

Hey @hasadata, Thank you for requesting this. Could you please specify whether you are referring to Gen1 or Gen2?

hasadata commented 3 months ago

Gen2