question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing 3 GSIs on table with enableIterativeGsiUpdates set to true throws "cannot modify more than one GSI" error

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tomhirschfeldcommented, Jan 12, 2021

yes, I can do this, thanks!

0reactions
github-actions[bot]commented, May 24, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found