- 1▶
Search for IAM in the Huawei Cloud console.
- 2▶
Open “Identity and Access Management”.
- 3▶
Open “Policies/Roles” to add the custom policies.
- 4▶
Choose “Create Custom Policy”.
- 5▶
Name the first policy “mofis-global”.
- 6▶
Switch to Mofis to get the Huawei Cloud policy JSON.
- 7▶
Choose “Huawei Cloud”.
- 8▶
Select “JSON policies”.
- 9▶
Copy the global policy JSON.
- 10▶
Return to the Huawei Cloud policy editor.
- 11▶
Switch “Policy View” to “JSON”.
- 12▶
Replace the starter JSON with the copied global policy.
- 13▶
Click “OK” to save the global policy.
- 14▶
Create a second custom policy for project permissions.
- 15▶
Name this policy “mofis-project”.
- 16▶
Switch to Mofis APP and copy project level permissions.
- 17▶
In Mofis, copy the project policy JSON.
- 18▶
Return to Huawei Cloud to enter the project policy.
- 19▶
Switch this policy to “JSON” view.
- 20▶
Replace the starter JSON with the copied project policy.
- 21▶
Click “OK” to save the project policy.
- 22▶
Open “User Groups” to organize these permissions.
- 23▶
Choose “Create User Group”.
- 24▶
Name the user group “mofis-group”.
- 25▶
Click “OK” to create the group.
- 26▶
Enter user group just created.
- 27▶
Choose “Authorize” to assign the custom policies.
- 28▶
Select both “mofis-project” and “mofis-global”.
- 29▶
Review the selected “All resources” scope, then click “OK”.
- 30▶
Review the authorization notice, then enter “YES” to confirm.
- 31▶
Both policies are assigned. Click “Finish”.
- 32▶
Open “Users” to create the account.
- 33▶
Choose “Create User”.
- 34▶
Enter the username “mofis-reader”.
- 35▶
Enable “Programmatic access” for API based access.
- 36▶
Add the user to “mofis-group” to inherit its permissions.
- 37▶
Click “Create” to proceed to verification.
- 38▶
You may need verify with SMS verification.
- 39▶
Download access key file and save it securely.