Search code examples
amazon-web-servicesamazon-dynamodbaws-cloudformationpitr

DynamoDB - restoring table using PITR for DynamoDB table managed by CloudFormation


I would like to be able to perform PITR restoration without losing benefit of Infrastructure-as-a-code with CloudFormation.

Specifically, if I perform PITR restoration manually and then point application to the new database, won't that result in new DynamoDB table falling out of CloudFormation managed infrastructure? AFAIK, there is no mechanism at the moment to add a resource to CloudFormation after it was already created. Has anyone solved this problem?


Solution

  • There is a now a way to import existing resources into cloudformation.

    This means that you can do a PiTR and then import the newly created table into your stack.