I'm currently working through my first AWS Mobile Hub project, and it's going pretty well so far. However one thing which is unclear is how "production" deployments are managed.
My Mobile Hub project is using features including:
Is there any way to make a distinction between a "development" and "production" environment?
For example, maintain a separate "Users" DB for development and production, and if so, how would i configure the app code (React Native) to know which DB / environment to talk to.
Similarly for API Gateway, i can see that it has created a "Development" stage, but it's not clear whether i should be pointing my production iOS/Android build directly at this Development stage, or if i should be deploying a "production stage", and again, if so, how would i integrate this environment specific switching login in my app code.
Thanks in advance!
I don't know if there is a simple distinction but there are some options I have seen in the docs.
awsmobile init --remove
awsmobile init <awsmobile-project-id>
Track the ids of the environments when you deploy.
https://console.aws.amazon.com/mobilehub/home?region=us-east-1#/[awsmobile-project-id]/build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With