aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.82k stars 820 forks source link

Multi Region Config #9344

Open GeorgeBellTMH opened 2 years ago

GeorgeBellTMH commented 2 years ago

Is this feature request related to a new or existing Amplify category?

No response

Is this related to another service?

No response

Describe the feature you'd like to request

Options for multiple regions, to protect from outages, to allow for ensuring data is stored or sync'd depending on different rulesets (ie. for ensuring data is stored in the users region, or ensuring it is available during outages in other regions etc.)

Describe the solution you'd like

amplify region add ? Please pick region: us-east-1, us-west-1, etc. ? Please choose load balancing type: By Location, Round-robin, etc. ? Should user information be stored in only their local region, or should it be sync'd ? Please choose syncing for S3 deployments: automatic, manual ? Cognito syncing: [options] ? DynamoDB syncing: [options]

Describe alternatives you've considered

Manually doing this is a pain.

Additional context

AWS Datacenter seem to go have outages fairly frequently recently....

Is this something that you'd be interested in working on?

GeorgeBellTMH commented 2 years ago

This could potentially be expanded to create the ability for api's to be protected by region, or to have alternate implementations in different regions in the graphql [ie. @auth({region:us-east1, group:admin, access:[region:us-east-1,allow:[read,write]]},{region:eu-west-1, group:admin, access:[region:eu-east-1,allow:[read,write]]}) would only let admins in us modify data stored in the us, and eu admins to only let admins in the eu...