PITR restoration on aws_dynamodb_table
not currently useful
#25214
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/dynamodb
Issues and PRs that pertain to the dynamodb service.
Milestone
Community Note
Description
Currently there are a few attributes that allow us to create a new DynamoDB table, restored from a PITR backup of an existing table. This is done by using the
restore_source_name
andrestore_to_latest_time
orrestore_date_time
attributes.This works initially, and the data is restored into the new table, however there is effectively no where to go after this point, and therefore the restore is useless. Any change to either of these attributes forces a replace on the table, which means we are unable to remove the attributes and therefore remove the old table that the data was restored from. It's also not possible to restore the original table from this restored table, as this causes a cyclical dependency. The only way forward currently would be to accept the original unused table hanging around, which isn't practical.
New or Affected Resource(s)
Potential Terraform Configuration
The way this could work is to force replace on the resource only when
restore_source_name
is changed to another value (for example, changed from null to a table name, or from one table name to another), but not when it is removed - this should not force a resource replacement.The text was updated successfully, but these errors were encountered: