您必须在使用 awsmobile hub cli 之前启用移动中心服务

you must enable mobile hub service before using awsmobile hub cli

我正在从 this link.

的 AWS Linux AMI 服务器中创建示例 Ionic AWS Starter

我已经安装了 Ionic、cordova,并创建了项目。当我提供创建 AWS Mobile Hub 项目时。它显示以下错误。请帮我修复下面 提到的问题。

[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/

此错误通常是由于您的账户中缺少 AWS Mobile Hub 服务角色造成的。

能否转至 AWS IAM console, and check if you have a role named: "MobileHub_Service_Role". If the role does not exist, please follow the link 在您的帐户中启用 AWS Mobile Hub。此操作需要管理员权限。启用 AWS Mobile Hub 后,您将能够创建 AWS Mobile Hub 项目。

如果您已经 "MobileHub_Service_Role" 但仍然收到此错误,请再次与我联系。

此致,
舒凡K
AWS 移动开发人员体验

这可能表明您的 AWS CLI 用户无权在 AWS Mobile Hub 中执行操作。要解决此问题,请将托管策略 "AWSMobileHub_FullAccess" 添加到您的 AWS CLI 用户。