mbudm / fotopia-serverless

An API, storage and face detection for a photo archive web app using serverless framework
21 stars 5 forks source link

Database backup/migration #1

Open mbudm opened 5 years ago

mbudm commented 5 years ago

Sometimes you need to redeploy - eg if you tweak any of the dynamodb indexes. This means all the data in the db and S3 buckets are gone.

Need a way to handle migration when the stack is recreated.

Breaking up serverless.yml will help, as there's more control over what gets removed and re deployed - but this might still be a need

mbudm commented 5 years ago

Point in time recovery/continuous backups might be overkill. Better would be to use on demand backups as part of a redeploy CI process. https://aws.amazon.com/dynamodb/pricing/on-demand/