Removing 3 GSIs on table with enableIterativeGsiUpdates set to true throws "cannot modify more than one GSI" error
See original GitHub issueDescribe the bug Removing 3 GSIs on table with enableIterativeGsiUpdates set to true throws “cannot modify more than one GSI” error
To Reproduce Steps to reproduce the behavior:
change schema from:
type Product
@model
@key(fields: ["id"])
@key(name: "ByActive", fields: ["active"], queryField: "productsByActive")
@key(name: "ByProduct", fields: ["product"], queryField: "productsByProduct")
@key(name: "SKUID", fields: ["SKUID"], queryField: "productsBySKUID")
@key(name: "ChildSKUID", fields: ["ChildSKUID"], queryField: "productsBychildSKUID")
to
type Product
@model
@key(fields: ["id"])
@key(name: "ByActive", fields: ["active"], queryField: "productsByActive")
throws error in master + production envs using the provided push simple script when iterative GSI update flag is set to true Expected behavior
removing 3 GSIs should not trigger an error
CLI versions: latest/4.40.*
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Cannot perform more than one GSI creation or deletion in a ...
This error occurs when you try to: create a DynamoDB table with more than one Global Secondary Index (GSI); or; add or remove...
Read more >Managing Global Secondary Indexes - Amazon DynamoDB
Create, modify, and delete global secondary indexes online in Amazon DynamoDB. ... To create a table with one or more global secondary indexes, ......
Read more >AWS: Cannot perform more than one GSI creation or deletion ...
Your table currently has one index (GSI). You want 3 indexes. You cannot add more than one index at a time. So, add...
Read more >Filtering with GSIs and parallel queries in DynamoDB
An exploration of using data duplication to implement an efficient paginated and filterable product comments system on DynamoDB.
Read more >What is a DynamoDB GSI and How to Create One? - YouTube
In this video, I show you how to create a DynamoDB Global Secondary Index (or GSI for short). I also explain to you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes, I can do this, thanks!
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels for those types of questions.