Replica issue in DynamoDB

0

I am trying to create a DDB table with replica on a region. But I got an issue due to replica already existed, I guess because the table created before but remove and recreated so some cache in the service side. Now i am not able to release to create the table with replica. I even manually create the replica, but still not working. does somebody know how to delete the underlying replica?

Failed to create a the new replica of table with name: ‘AxxxDataStore-ResourceTags’ because one or more replicas already existed as tables.
Joe
asked 7 months ago167 views
2 Answers
1
Accepted Answer

Make sure no table with the name AxxxDataStore-ResourceTags exists in the destination region. Also make sure that no IaC code references such a replica, it must be removed from all references. Then add the replica to your existing table in the source region, you should have no issue.

profile pictureAWS
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 7 months ago
  • yeah, agree, but it doesn't recognize as a replica, a replica is a table in other region, in my case, it does have a same name table in other region which I was supposing to create in.

  • If you have an existing table in the destination region which already has that name, you must first remove it.

-1

This error typically arises when a DynamoDB table is deleted, but its replicas in other regions persist. If these replicas remain in other regions, it becomes impossible to create a new table with the same name. This is because the global table may still require that namespace within the region

When a table is deleted, it may take a few minutes to be fully removed from the backend servers. The metadata associated with the table's name may still linger. Therefore, it's advisable to wait a few minutes before attempting to recreate a table with the same name to avoid encountering an error indicating that the table already exists.

AWS
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions