aws-amplify / aws-amplify/docs

Adding Secondary Indexes to Existing Amplify Tables Without Data Loss

Open
#8,579 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

Currently, I have a table structure without any secondary indexes. However, due to recent changes in my application requirements, I now need to add secondary indexes.

The issue is that when I attempt to add these indexes, the deployment process results in data loss. The tables are already in production and contain active user data, which cannot be deleted or recreated.

What is the recommended approach to introduce secondary indexes into existing Amplify-managed tables without causing data loss?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.