Huawei Cloud
1. Huawei Cloud IAM Setup for Mofis
Section titled “1. Huawei Cloud IAM Setup for Mofis”Follow the steps to add Mofis custom policies in Huawei Cloud IAM, assign them to a user group, and configure a user for programmatic access through SMS verification.
Steps (39)
- Search for IAM in the Huawei Cloud console.
- Open “Identity and Access Management”.
- Open “Policies/Roles” to add the custom policies.
- Choose “Create Custom Policy”.
- Name the first policy “mofis-global”.
- Switch to Mofis to get the Huawei Cloud policy JSON.
- Choose “Huawei Cloud”.
- Select “JSON policies”.
- Copy the global policy JSON.
- Return to the Huawei Cloud policy editor.
- Switch “Policy View” to “JSON”.
- Replace the starter JSON with the copied global policy.
- Click “OK” to save the global policy.
- Create a second custom policy for project permissions.
- Name this policy “mofis-project”.
- Switch to Mofis APP and copy project level permissions.
- In Mofis, copy the project policy JSON.
- Return to Huawei Cloud to enter the project policy.
- Switch this policy to “JSON” view.
- Replace the starter JSON with the copied project policy.
- Click “OK” to save the project policy.
- Open “User Groups” to organize these permissions.
- Choose “Create User Group”.
- Name the user group “mofis-group”.
- Click “OK” to create the group.
- Enter user group just created.
- Choose “Authorize” to assign the custom policies.
- Select both “mofis-project” and “mofis-global”.
- Review the selected “All resources” scope, then click “OK”.
- Review the authorization notice, then enter “YES” to confirm.
- Both policies are assigned. Click “Finish”.
- Open “Users” to create the account.
- Choose “Create User”.
- Enter the username “mofis-reader”.
- Enable “Programmatic access” for API based access.
- Add the user to “mofis-group” to inherit its permissions.
- Click “Create” to proceed to verification.
- You may need verify with SMS verification.
- Download access key file and save it securely.
2. Huawei Cloud Account Setup For Mofis
Section titled “2. Huawei Cloud Account Setup For Mofis”Connect a Huawei Cloud account, check its bill synchronization progress, and view its cost brief in Smart Bills. Then open Cost explorer to explore account costs.
Steps (12)
- Choose “Huawei Cloud” to connect an account.
- Name the account “hw” so you can identify it later.
- Open “Region” to choose where this account is registered.
- Select “China” for this account.
- Enter the account’s “Access Key”.
- Enter the matching “Secret Key”.
- Click “Create” to add the Huawei Cloud account.
- Open “Data Sync” to check the new account’s bill-sync task.
- Select the “hw” task to inspect its synchronization progress.
- Sync is complete. Open “Smart Bills” to review account costs.
- Open the account selector to switch from AWS.
- Choose Huawei Cloud account to view its cost brief.