awslabs / amplify-mobilehub-migrator

A plugin to migrate existing AWS Mobile Hub projects to be used with the Amplify CLI
https://amplify.aws
Apache License 2.0
13 stars 8 forks source link

Amplify CLI can NOT find command: mobilehub import <projectid> #22

Open nawwa opened 4 years ago

nawwa commented 4 years ago

Hello,

I followed the steps described in the README but when I run the command in my terminal I get this Amplify CLI can NOT find command warning

I'm on a macOS Mojave with ├── @aws-amplify/cli@4.13.3 ├── amplify-mobilehub-migrator@1.0.7 └── npm@6.13.7

Error :

Screenshot 2020-02-18 at 11 00 54

Project struct :

Screenshot 2020-02-18 at 11 16 48
swaminator commented 4 years ago

@nawwa we are looking into this right now.

nawwa commented 4 years ago

Hello @swaminator, any updates ? :)

nimacks commented 4 years ago

@nawwa, we are actively looking into this and will provide you updates as soon as they become available. Thank you for your patience while we work through this issue.

nawwa commented 4 years ago

No problem @nimacks, thanks for your work & fast answer, I'll wait your updates.

swaminator commented 4 years ago

@nawwa we released an update. Should be working now.

nawwa commented 4 years ago

Hello @swaminator , just tested it, everything seemed to work, I followed your step by step guide on the README.

However, now that I imported my mobile hub project, when I try to update the cloud with "amplify push", my cloud backend is not updated with the changes.

I see that my file amplify/backend/amplify-meta.json is filled with all my lambdas from the mobile hub project, I see that if I run "amplify status" I also have a bunch of resources to update (picture attached) :

Screenshot 2020-03-30 at 12 53 46

When I run amplify push, it shows this :

Screenshot 2020-03-30 at 12 55 56

But none of my resources are uploaded in the cloud as you can see here :

Screenshot 2020-03-30 at 12 56 45

Also, my file : amplify/backend/backend-config.json only contain an empty object "{}"

Thanks, tell me if you need more infomation.

SanjayMCumulations commented 4 years ago

You have to add this plugin to amplify. i think you missed that step. i faced the same issue. i had missed this step.