Creating a User and Granting Permissions
This chapter describes how to use Identity and Access Management (IAM) for fine-grained permissions management for your RDS resources. With IAM, you can:
- Create IAM users for employees based on your enterprise's organizational structure. Each IAM user will have their own security credentials for accessing RDS resources.
- Grant only the permissions required for users to perform a specific task.
- Entrust a Huawei Cloud account or cloud service to perform efficient O&M on your RDS resources.
If your Huawei Cloud account does not require individual IAM users, skip this chapter.
This section describes the procedure for granting permissions (see Figure 1).
Prerequisites
Before assigning permissions to user groups, you should learn about system-defined policies supported by RDS and select the policies based on service requirements. For details about the system-defined policies supported by RDS, see System-defined permissions for RDS. To grant permissions for other services, see System-defined Permissions.
Process Flow
- Create a user group and assign permissions to it.
Create a user group on the IAM console, and attach the RDS ReadOnlyAccess policy to the group.
To use some interconnected services, you also need to configure permissions of such services.
For example, to connect to your DB instance through the console, configure the DAS FullAccess permission of Data Admin Service (DAS) besides RDS ReadOnlyAccess.
- Create an IAM user and add it to the user group.
Create a user on the IAM console and add the user to the group created in 1.
- Log in and verify permissions.
Log in to the console as the created user, switch to the region where it is authorized, and verify the permissions.
- Choose Relational Database Service from the service list and click Buy DB Instance. If a message appears indicating that you have insufficient permissions to perform the operation, the RDS ReadOnlyAccess policy has already been applied.
- Choose any other service from the service list. If a message appears indicating that you have insufficient permissions to access the service, the RDS ReadOnlyAccess policy has already 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