Skip to content

Commit

Permalink
chore: add troubleshooting callout for disabling gsi limit check [amp…
Browse files Browse the repository at this point in the history
…lify-cli] (#5836)

* chore: add troubleshooting callout for disabling gsi limit check

* Update troubleshooting.mdx

---------

Co-authored-by: Rene Brandel <[email protected]>
  • Loading branch information
alharris-at and renebrandel authored Sep 5, 2023
1 parent 3db0b93 commit 32ee4dd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/pages/cli/graphql/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ python3 ddb_to_es.py \
## Index with multiple sort key fields

When you add an `@index` directive with 2 or more sort key fields, you will need to backfill the new composite sort key for existing data. With `@index(sortKeyFields: ["status", "date"])`, you will need to backfill the `status#date` field with composite key values made up of each object's `status` and `date` fields joined by a `#`. You do not need to backfill data for `@index` directives with zero to one sort key field(s).

## Maximum Global Secondary Index limit for DynamoDB table exceeded

If you have increased the [soft limit of GSI per table](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html) in DynamoDB beyond 20, then iterative deployments will fail with the following warning.

```console
DynamoDB <Table Name> can have max of 20 GSIs.
To disable this check, use the --disable-gsi-limit-check option.
```

In order to disable this behavior, update your deploy scripts or ci commands to include the `--disable-gsi-limit-check` option to circumvent this validation during pushes.

```bash
amplify push --disable-gsi-limit-check
```

0 comments on commit 32ee4dd

Please sign in to comment.