Search code examples
amazon-web-servicesionic-frameworkaws-cliamazon-linux

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/

Solution

  • 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.