guardian / recipes

1 stars 1 forks source link

Enable nightly backups for DynamoDB tables #77

Closed jacobwinch closed 9 months ago

jacobwinch commented 9 months ago

What does this change?

This PR allows us to start backing up the recipes app's DynamoDB tables using https://github.com/guardian/aws-backup. For more details on this project see this doc.

N.B. prior to enabling the backups I upgraded GuCDK and refactored a bit to improve the coverage of the snapshot tests; it will be easiest to review this PR commit by commit.

How to test

The snapshot change in https://github.com/guardian/recipes/commit/9314f57bfea23515f3e8862756734a8a8cca5724 should be sufficient here.

I will also check that the backups are created as expected after this has been deployed (the backup jobs run overnight so I'll report back the next working day after this is merged).

How can we measure success?

We will be able to recover (most) data stored in these tables in the unlikely event that they are ever deleted.

Have we considered potential risks?

Yes, a number of risks related to performance, cost and privacy were considered. See this doc for more details.

jacobwinch commented 9 months ago

I will also check that the backups are created as expected after this has been deployed (the backup jobs run overnight so I'll report back the next working day after this is merged).

Sorry, this took me much longer than expected but it's working now:

image

cc @frederickobrien