docs icon indicating copy to clipboard operation
docs copied to clipboard

How to setup backups manually

Open GeorgeBellTMH opened this issue 4 years ago • 6 comments

It would be good to document how to setup comprehensive backups for amplify until there is a way to do it from the cli.

How to backup:

  • S3
  • Dynamo
  • Cognito
  • others???

How to restore:

  • S3
  • Dynamo
  • Cognito
  • others???

GeorgeBellTMH avatar Nov 25 '20 19:11 GeorgeBellTMH

aws-amplify/amplify-category-api#235

GeorgeBellTMH avatar Nov 25 '20 19:11 GeorgeBellTMH

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 23 '21 17:01 stale[bot]

Seems important...

GeorgeBellTMH avatar Apr 18 '21 10:04 GeorgeBellTMH

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 22 '21 17:06 stale[bot]

I

Seems important...

I second that it's important for any commercial application to have a solution to this problem. I am wondering why there isn't any activity on this? Is there another way that we don't know?

droidgeek1 avatar Jun 22 '21 18:06 droidgeek1

I would add functions to the list! Along with sound sound Disaster recovery design

droidgeek1 avatar Jun 22 '21 18:06 droidgeek1

I'll just add that having now tried to actually backup and restore a cognito instance it is actually almost impossible...

GeorgeBellTMH avatar Jan 12 '23 21:01 GeorgeBellTMH

  1. If you are restoring to a new instance there are all sorts of gotchas (including needing to setup SES, getting out of sandbox mode)
  2. The CSV import in cognito has no export function...
  3. The CSV import does not handle groups
  4. It seems to send an email to each user asking them to reset via pin...(which eventually fails if 1 is not complete)
  5. It's not clear when importing if there are setup problems with custom. fields or other associated setting differences

GeorgeBellTMH avatar Jan 12 '23 22:01 GeorgeBellTMH

Backup doesn't seem to be available out of the box with cognito...so you are at the mercy of API's and non AWS developers....

GeorgeBellTMH avatar Jan 12 '23 22:01 GeorgeBellTMH

I just published a blog in the AWS Storage channel last week that provides the definition for a CDK custom resource to setup backups with AWS Backup. Take a look and see if this solves for your need.

https://aws.amazon.com/blogs/storage/automate-backups-for-aws-amplify-graphql-backends-with-aws-backup/

kevinschwarz avatar Jan 17 '23 14:01 kevinschwarz