Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Amplify/CLI vs AWS mobile hub

I'm new with AWS mobile hub and today I just notice there is a new AWS Amplify/CL, now I'm super confused with these two libs.

My understanding was AWS mobile cli is a tool that create aws backend service, and amplify js just client library that hook up with the aws backend.

But now I see this AWS Amplify/CLI, it also can create aws service and also creates the aws-exports.js file, and now AWS Amplify docs has changed, it no longer tell you how would it works with mobile hub, instead use Amplify/CLI to create services.

Dose it mean I should use AWS Amplify/CLI instead?

like image 658
Yi Zhou Avatar asked Sep 04 '18 09:09

Yi Zhou


People also ask

What happened to AWS mobile hub?

All of AWS Mobile Hub's functionality and much more, are now part of AWS Amplify. If you have existing Mobile Hub projects, please use our tool to migrate your Mobile Hub projects to AWS Amplify.

Can I use amplify without CLI?

Yes. The libraries can be used to access backend resources that were created without the Amplify CLI.

What is AWS amplify hub?

Amplify has a local eventing system called Hub. It is a lightweight implementation of Publisher-Subscriber pattern, and is used to share data between modules and components in your app.


3 Answers

Use the Amplify CLI going forward, it's more flexible architecture that allows a comprehensive feature set. See the information in this post:

Existing Mobile Hub projects continue to work without requiring any app changes. If you’re using the AWS Mobile CLI for existing projects, you can also continue to use that older CLI. However, going forward, new features will be added to the AWS Amplify CLI toolchain which does not use Mobile Hub.

If you’re building a new mobile or web app, or adding cloud capabilities to brownfield apps, use the new AWS Amplify CLI. The new Amplify CLI will allow you to take advantage of all the new features outlined in this blog, as well as the rich CloudFormation functionality to unlock more workflows and future tooling.

Section: Existing tooling, https://aws.amazon.com/blogs/mobile/announcing-the-aws-amplify-cli-toolchain/

like image 194
Richard Avatar answered Nov 02 '22 07:11

Richard


For current Mobile Hub users, we just released a Mobile Hub to Amplify CLI migrator that you can access here: https://github.com/awslabs/amplify-mobilehub-migrator. This will help you import your Mobile Hub resources into an Amplify project, give you an exports file, and allow you to leverage Amplify CLI features such as GraphQL APIs, Codegen, and the GraphQL Transform.

like image 27
Nikhil Avatar answered Nov 02 '22 06:11

Nikhil


Update - AWS Mobile Hub will be replaced by AWS Amplify on October 30, 2021. Existing users should plan a migration strategy. For apps already deployed with Mobile Hub, resources created by Mobile Hub will continue to function.

"If you don't migrate your project to Amplify, your app will continue to function, and all your related cloud resources will continue to be available. However, you won't be able to access the Mobile Hub project container after October 15, 2021." - https://docs.aws.amazon.com/aws-mobile/latest/developerguide/what-is-aws-mobile.html#migrate-to-amplify

like image 32
Bill Bunting Avatar answered Nov 02 '22 05:11

Bill Bunting