Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ ModelArts/ Best Practices/ Permissions Management/ Configuration Practices in Typical Scenarios/ Granting SFS Turbo Folder Access Permissions to IAM Users

Granting SFS Turbo Folder Access Permissions to IAM Users

Updated on 2024-01-09 GMT+08:00

Scenarios

Grant access permission of specific SFS Turbo folders to IAM users.

Constraints

  • Ensure that you have enabled strict authorization. Log in to the ModelArts console and choose Settings from the navigation pane on the left. On the Global Configuration page, click Enable strict authorization.
  • If ModelArts permissions have not been granted to IAM users, the IAM users may fail to use ModelArts after the strict authorization is enabled. Grant the permission to IAM users by referring to Assigning Permissions to Individual Users for Using ModelArts.

Procedure

  1. Log in to the management console using the main account, hover the cursor over your username in the upper right corner, and choose Identity and Access Management from the drop-down list to switch to the IAM management console.
  2. On the IAM console, choose Permissions > Policies/Roles from the navigation pane on the left, click Create Custom Policy in the upper right corner, and configure the policy as follows:

    • Policy Name: Enter a policy name, for example, ma_sfs_turbo.
    • Policy View: Select JSON.
    • Policy Content: Enter the following information:
      {
          "Version": "1.1",
          "Statement": [
              {
                  "Effect": "Allow",
                  "Action": [
                      "<modelarts_action>"
                  ],
                  "Condition": {
                      "StringEquals": {
                          "modelarts:sfsId": [
                              "<your_ssf_id>"
                          ],
                          "modelarts:sfsPath": [
                              "<sfs_path>"
                          ],
                          "modelarts:sfsOption": [
                              "<sfs_option>"
                          ]
                      }
                  }
              }
          ]
      }

    Replace <modelarts_action>, <your_ssf_id>, <sfs_path>, and <sfs_option> with actual parameters as you need. The following table describes the parameters.

    Table 1 Parameter description

    Parameter

    Description

    Action

    Scenario in which the SFS Turbo folder access permission is granted.

    • modelarts:trainJob:create indicates that the permission is granted during development environment instance creation.
    • modelarts:notebook:create indicates that the permission is granted during training job creation.

    Multiple actions are supported, the following shows an example:

    "Action": [
       "modelarts:trainJob:create",
       "modelarts:notebook:create"
    ],

    modelarts:sfsId

    SFS Turbo ID, which can be obtained on the SFS Turbo details page. You can enter multiple IDs, the following shows an example:

    "modelarts:sfsId": [
       "0e51c7d5-d90e-475a-b5d0-ecf896da3b0d",
       "2a70da1e-ea87-4ee4-ae1e-55df846e7f41"
    ],

    modelarts:sfsPath

    Path of the SFS Turbo folder whose permissions need to be configured. You can enter multiple paths, the following shows an example:

    "modelarts:sfsPath": [
      "/path1",
      "/path2/path2-1"
    ],

    If there are multiple SFS IDs, the SFS paths will apply to all SFS IDs. As shown in the following example, permission to access /path1 and /path2/path2-1 of both 0e51c7d5-d90e-475a-b5d0-ecf896da3b0d and 2a70da1e-ea87-4ee4-ae1e-55df846e7f41 are configured.

    "modelarts:sfsId": [
       "0e51c7d5-d90e-475a-b5d0-ecf896da3b0d",
       "2a70da1e-ea87-4ee4-ae1e-55df846e7f41"
    ],
    "modelarts:sfsPath": [
      "/path1",
      "/path2/path2-1"
    ],

    modelarts:sfsOption

    Type of the access permission. The following parameters are supported:

    • readonly: Read-only permission
    • readwrite: Read and write permission

    To add multiple SFS options to a custom policy, add a JSON structure to Statement, the following shows an example:

    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "modelarts:notebook:create"
                ],
                "Condition": {
                    "StringEquals": {
                        "modelarts:sfsId": [
                            "0e51c7d5-d90e-475a-b5d0-ecf896da3b0d"
                        ],
                        "modelarts:sfsPath": [
                            "/path1"
                        ],
                        "modelarts:sfsOption": [
                            "readonly"
                        ]
                    }
                }
            },
            {
                "Effect": "Allow",
                "Action": [
                    "modelarts:notebook:create"
                ],
                "Condition": {
                    "StringEquals": {
                        "modelarts:sfsId": [
                            "0e51c7d5-d90e-475a-b5d0-ecf896da3b0d"
                        ],
                        "modelarts:sfsPath": [
                            "/path2"
                        ],
                        "modelarts:sfsOption": [
                            "readwrite"
                        ]
                    }
                }
            }
        ]
    }

  3. Create a user group and add the user to the user group. For details, see Step 1 Create a User Group and Add Users to the User Group.
  4. Grant a policy to the user group. On the user group list page of IAM, click Authorize of the target user group. The Authorize User Group page is displayed. Select the ma_sfs_turbo policy created in Step 2. Click Next and then OK.
  5. Add the IAM ReadOnlyAccess permission to an existing ModelArts agency.

    1. On the ModelArts management console, choose Settings from the navigation pane on the left. On the displayed page, locate the target agency, choose View Permissions in the Operation column, and click Modify permission in IAM.
      Figure 1 Modifying permissions in IAM
    2. On the IAM console, choose Agencies from the navigation pane on the left, and choose Permissions > Authorize. Search for IAM ReadOnlyAccess, enable it, and click Next and OK.
      Figure 2 IAM ReadOnlyAccess

  6. Verify that the permission is granted.

    Log in to ModelArts as the IAM user, only the configured SFS Turbo folders are displayed during training job creation and notebook creation.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback