aws-amplify / docs

AWS Amplify Framework Documentation
https://docs.amplify.aws
Apache License 2.0
483 stars 1.03k forks source link

How to setup backups manually #2708

Open GeorgeBellTMH opened 3 years ago

GeorgeBellTMH commented 3 years ago

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:

How to restore:

GeorgeBellTMH commented 3 years ago

aws-amplify/amplify-category-api#235

stale[bot] commented 3 years ago

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.

GeorgeBellTMH commented 3 years ago

Seems important...

stale[bot] commented 3 years ago

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.

droidgeek1 commented 3 years ago

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 commented 3 years ago

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

GeorgeBellTMH commented 1 year ago

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

GeorgeBellTMH commented 1 year ago
  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 commented 1 year ago

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....

kevinschwarz commented 1 year ago

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/