Example: Granting IAM Users the Permission to Create CSS Clusters
To implement fine-grained permission management for CSS, you can use Identity and Access Management (IAM) to create independent IAM users and assign policies or roles to IAM user groups. The policies and roles can be used to control access to CSS resources.
This section describes how to create an IAM user and add the IAM user to a user group, so that the IAM user has the permission to create CSS clusters.
- Creating a User Group: The staff of company A is divided into an admin group and a developer group. The default group admin is generated after company A's administrator registers an account. The administrator needs to create another group in IAM for the developer team.
- Assigning Permissions to a User Group: Developers in the company need to use cloud services CSS and OBS, so the administrator needs to assign the required permissions to the developer group to enable access to these services. After permissions are assigned, users in the two groups can access the corresponding resources.
- Creating IAM Users: Create IAM users for your staff and add them to different groups. The users have their own credentials and can perform operations on cloud resources based on the permissions inherited from their respective groups.
- Logging In Using an IAM User and Verifying Permissions: After using the account of company A (A-Company) to create users James, Alice, Charlie, Jackson, and Emily, the administrator needs to send the account name, IAM user names, and IAM users' initial passwords to the corresponding employees, who can then use their own usernames and passwords to access the cloud platform. Then, they can create clusters on the CSS console and by doing so verify their permissions.
Creating a User Group
- (Company A administrator) Log in to the Huawei Cloud management console.
- On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
- On the IAM console, choose User Groups and click Create User Group.
- Enter Developers for Name, and click OK.
Assigning Permissions to a User Group
- In the user group list, click AuthorizeManage Permissions in the row that contains the developer user group.
- In the Select Policy/Role step, search for CSS FullAccess and OBS Administrator in the search box, select them, and click Next.
- Both the CSS FullAccess and Elasticsearch Administrator permissions enable users to create CSS clusters.
- If users in the group need to view resource usage, attach the BSS Administrator role to the group for the same project.
- Select a scope. Set Scope to Region-specific projects, and select the region where your resources are.
Take the AP-Singapore region as an example. Set Scope to Region-specific projects and select ap-southeast-3 [AP-Singapore].
- Click OK.
Creating IAM Users
- In the navigation pane of the IAM console, choose Users. Then click Create User.
- Specify the user details and access type. To create more users, click Add User. A maximum of 10 users can be created at a time.
Figure 1 Configuring user information
- Users can log in to Huawei Cloud using the username, email address, or mobile number.
- If users forget their password, they can reset it through email address or mobile number verification. If no email addresses or mobile numbers have been bound to users, users need to contact the administrator to reset their passwords.
Table 1 User information Parameter
Description
Username
Username that will be used to log in to Huawei Cloud, for example, James and Alice. This field is required.
Email Address
Email address of the IAM user that can be used as a login credential. IAM users can bind an email address after they are created. This field is required if you have specified Set by user as the credential type.
Mobile Number
Mobile phone number of the IAM user that can be used as a login credential. IAM users can bind a mobile number after they are created. This field is optional.
Description
Additional information about the IAM user. This field is optional.
Figure 2 Setting the access type
- Programmatic access: Select this option to allow the user to access Huawei Cloud services using development tools, such as APIs, CLI, and SDKs. You can generate an access key or set a password for the user.
- Management console access: Select this option to allow the user to access Huawei Cloud services using the management console. You can set or generate a password for the user or request the user to set a password at first login.
- If the user accesses cloud services only by using the management console, select Management console access for Access Type and Password for Credential Type.
- If the user accesses cloud services only through programmatic calls, select Programmatic access for Access Type and Access key for Credential Type
- If the user needs to use a password as the credential for programmatic access to certain APIs, select Programmatic access for Access Type and Password for Credential Type
- If the user needs to perform access key verification when using certain services in the console, select Programmatic access and Management console access for Access Type and Access key and Password for Credential Type. For example, the user needs to perform access key verification when creating a data migration job in the Cloud Data Migration (CDM) console.
Table 2 Setting the credential type and login protection Credential Type and Login Protection
Description
Access key
After users are created, you can download the access keys (AK/SK) generated for these users.
Each user can have a maximum of two access keys.
Password
Set now
Set a password for the user and determine whether to require the user to reset the password at first login.
If you are the user, select this option and set a password for login. You do not need to select Require password reset at first login.
Automatically generated
The system automatically generates a login password for the user. After the user is created, download the EXCEL password file and provide the password to the user. The user can then use this password for login.
This option is available only when you create a single user.
Set by user
A one-time login URL will be emailed to the user. The user can click on the link to log in to the console and set a password.
If you do not use the IAM user, select this option and enter the email address and mobile number of the IAM user. The user can then set a password by clicking on the one-time login URL sent over email. The login URL is valid for seven days.
Login Protection
Enable (Recommended)
If login protection is enabled, the IAM user needs to enter a verification code in addition to the username and password during login. Enable this function for account security.
You can select SMS, email, or virtual MFA device for verification during login.
Disable
If login protection is disabled, you can enable it later by following the instructions provided in Viewing or Modifying IAM User Information.
- (Optional) Click Next to add the users to user groups.
- The user will inherit the permissions assigned to the user groups to which the user belongs.
- You can also create new groups as required.
- If the user will be an administrator, add the user to the default group admin.
- Each user can be added to multiple user groups.
- Click Next. If you have specified the access type as Programmatic access in Step 2, download the access key on the Finish page.
Figure 3 Users created successfully
Logging In Using an IAM User and Verifying Permissions
- Click IAM UserIAM User LoginIAM User Login on the login page, and then enter your Tenant name or Huawei Cloud account name, IAM user name or email address, and IAM user passwordAccount name, IAM user name or email, and PasswordAccount name, IAM user name or email, and Password.
Figure 4 Logging in as an IAM user
Table 3 Login parameters Parameter
Example
Description
Tenant name or Huawei Cloud account name
Company-A
Account used to create the IAM user, for example, Company-A.
IAM username or email address
Alice
IAM username or email address entered during the user creation. You can obtain the IAM username and IAM user's initial password from the administrator.
IAM user password
********
Password of the IAM user, rather than the account. Enter the downloaded password.
- Click Log In.
- Choose Service List, search for CSS, and click the service name to go to the CSS console.
- In the upper right corner of the Dashboard page, click Create Cluster. Create a cluster by following the steps provided in Creating a Cluster. If the cluster can be created, the permissions have taken effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot