Using IAM Identity Policies to Grant Access to AI DataLake
Identity and Access Management (IAM) allows you to manage permissions for your identity policies in AI DataLake. With IAM, you can:
- Create IAM users or user groups under your Huawei Cloud account based on your enterprise's organizational structure. Each IAM user will have unique credentials to access AI DataLake resources.
- Grant users only the permissions required to perform their tasks based on their job responsibilities.
- Entrust a Huawei Cloud account or a cloud service to perform professional and efficient O&M on AI DataLake resources on your behalf.
If your Huawei Cloud account already meets all your permission requirements, skip this section.
Figure 1 shows the process flow for policy-based authorization.
Prerequisites
Before granting permissions, learn about system-defined permissions in AI DataLake. For details on supported permissions, see Identity Policy-based Permissions Management. To grant permissions for other services, learn about all system-defined permissions supported by IAM by referring to System-defined Identity Policies.
Process Flow
- Attach an identity policy to a user or user group.
Attach the system policy DataArtsFabricReadOnlyPolicy (AI DataLake read-only permissions) to the user group to which the user belongs.
- Log in as the IAM user and verify permissions.
Log in to the AI DataLake console as an authorized user and verify your permissions.
- Select AI DataLake from the service list. On the AI DataLake homepage, click the workspace drop-down list in the upper left corner and select Create Workspace to create an AI DataLake workspace. If you cannot create the workspace (assuming your current permissions contain only DataArtsFabricReadOnlyPolicy), the DataArtsFabricReadOnlyPolicy policy has successfully taken effect.
- Choose another service from the service list (assuming your current permissions contain only DataArtsFabricReadOnlyPolicy). If a message appears indicating that you have insufficient permissions to access that service, the DataArtsFabricReadOnlyPolicy policy has successfully taken effect.
AI DataLake Custom Policy Examples
You can create custom identity policies to supplement the system-defined identity policies of AI DataLake. For details about the actions supported by custom identity policies, see Identity Policy–based Authorization.
You can create custom identity policies in either of the following ways:
- Visual editor: Select cloud services, actions, resources, and request conditions in the visual editor to automatically generate policies. No prior knowledge of policy syntax is required.
- JSON: Select a policy template to edit its content, or write a policy directly in JSON format.
For details, see Creating a Custom Identity Policy and Attaching It to a Principal.
The following provides examples of common custom identity policies for AI DataLake.
- Example 1: Grant permissions to view, modify, and create workspaces.
{ "Version": "5.0", "Statement": [ { "Effect": "Allow", "Action": [ "DataArtsFabric:workspace:list", "DataArtsFabric:workspace:alter", "DataArtsFabric:workspace:create" ], "Resource": [ "DataArtsFabric:*:*:workspace:*" ] } ] } - Example 2: Create a custom policy containing multiple actions.
A custom policy can contain the actions of one or more services.
Example policy containing multiple actions:
{ "Version": "5.0", "Statement": [ { "Effect": "Allow", "Action": [ "DataArtsFabric:workspace:list", "DataArtsFabric:workspace:alter", "DataArtsFabric:workspace:create" ] }, { "Effect": "Allow", "Action": [ "vpc:vpcs:get" ] } ] }
What is your overall rating for this page?
Thank 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
