#✅ - Amplify/flutter is there a way of supporting multiple AWS regions with mobile app?

4 messages · Page 1 of 1 (latest)

keen tiger
#

I did research and get to know that reconfigure of the app is not possible, how can I then support multiple AWS regions within my mobile app? Reset isn't available so how can I hange the url endpoints / string inputs - for certain config. I have no idea if I can override the AppSync url when making a call via Amplify.API? and similarly for Cognito when calling Amplify.Auth? or what are my options. Thank you

runic lotus
#

Hi @keen tiger it is possible to configure Amplify with different configurations based on some app logic e.g.

if (usRegion) {
  Amplify.configure(usRegionResources)
} else if (euRegion) {
  Amplify.configure(euRegionResources)
}

if the above does not work for your use case, there is a GH feature request to support reconfiguration at run time. https://github.com/aws-amplify/amplify-flutter/issues/1902 feel free to add your use case .

GitHub

Updated Request The ability to call Amplify.configure() multiple times with new config values, or to use different config values based on region or other condition. Original Request I want to confi...

keen tiger
#

thank you

fickle aspenBOT
#

✅ - Amplify/flutter is there a way of supporting multiple AWS regions with mobile app?