williams499
williams499

Reputation: 13

you must enable mobile hub service before using awsmobile hub cli

I am creating sample Ionic AWS Starter from in AWS Linux AMI server from this link.

I have installed Ionic, cordova, and created project. when I am giving Creating AWS Mobile Hub Project. It was showing below error. Please help me fix below mentioned issue.

[example-ec2-user@ip-some-ipaddress]: backend awsmobile project creation error

You must enable Mobile Hub service role before using the awsmobile cli
https://console.aws.amazon.com/mobilehub/home?#/activaterole/

Upvotes: 1

Views: 471

Answers (2)

Dan
Dan

Reputation: 139

This may be an indication that your AWS CLI user does not have permission to perform actions in AWS Mobile Hub. To resolve this, add the managed policy "AWSMobileHub_FullAccess" to your AWS CLI user.

Upvotes: 0

Shufan K
Shufan K

Reputation: 11

This error is usually caused by the AWS Mobile Hub Service Role is missing in you account.

Could you please go to AWS IAM console, and check if you have a role named: "MobileHub_Service_Role". If the role does not exist, please follow the link to enable AWS Mobile Hub in your account. This action will need administrator permissions. Once you enabled AWS Mobile Hub you will be able to create AWS Mobile Hub project.

If you have already the "MobileHub_Service_Role" and still getting this error, please contact me again.

Sincerely,
Shufan K
AWS Mobile Developer Experience

Upvotes: 1

Related Questions