0
votes

Any idea on how can I delete a table without deleting the replica tables?

The exception I'm receiving is as shown below, If I delete the replica tables, the delete operation succeeds.

Replica cannot be deleted because it has acted as a source region for new replica(s) being added to the table in the last 24 hours. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: XXXXX; Proxy: null)`

Note: Using 2019 version of global tables, so any UpdateGlobalTable and its friends are unusable here!

1
Are you talking about breaking off a replica from a global table into its own separate table?Maurice
infact, i want to delete the stack from that region. That means the table gets destroyed as well. not to break off as a separate table.Jimson Kannanthara James

1 Answers

0
votes

In principle you could use the UpdateGlobalTable API-Call to add or delete replicas, but there seem to be some limitations, which are among others described in the error messages:

Replica cannot be deleted because it has acted as a source region for new replica(s) being added to the table in the last 24 hours.

I assume you've probably added replicas in the last 24 hours and the Global table seems to have chosen the replica you're trying to delete as the source to copy data into the new replica, i.e. bootstrapping for new replicas.

I'd try again tomorrow.

Can you do a DescribeGlobalTable docs and tell us which replica you're trying to delete - maybe that will give us more details.