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
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
Help Center/ Migration Center/ Best Practices/ Configuring Permissions Required for Server Migration

Configuring Permissions Required for Server Migration

Updated on 2025-01-06 GMT+08:00

Overview

  1. Create a user group named migration_users and assign the permissions required to use MgC and SMS to the user group. The IAM user to be created will inherit the permissions from the user group.
  2. For a user in the local admin group, create an IAM user who is named mgc-user, belongs to the migration_users user group, and has only programmatic access to Huawei Cloud. The IAM user is not allowed to access the Huawei Cloud console using a password.
  3. Provide the MgC Agent (formerly Edge) with the AK/SK pair generated when mgc-user is created. The AK/SK pair is used to register the MgC Agent with MgC and authenticate API calling during the migration.

Step 1: Create a User Group

  1. Log in to the IAM console.
  2. On the IAM console, choose User Groups from the left navigation pane, and click Create User Group in the upper right corner.

    Figure 1 Creating a user group

Step 2: Create a Permissions Policy

  1. On the IAM console, in the navigation pane, choose Permissions > Policies/Roles and click Create Custom Policy in the upper right corner.

    Figure 2 Creating a custom policy

  2. Create a policy for using SMS, a global cloud service. Enter a policy name, set Policy View to JSON, and copy the following content to the Policy Content box.

    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                     "sms:server:registerServer",
                     "sms:server:migrationServer",
                     "sms:server:queryServer"
                ]
            },
            {
                "Action": [
                    "mgc:*:*",
                    "iam:agencies:listAgencies",
                    "iam:roles:listRoles",
                    "iam:quotas:listQuotas",
                    "iam:permissions:listRolesForAgency"
                ],
                "Effect": "Allow"
            }
        ]
    }
    Figure 3 Creating a policy that defines the permissions required for using SMS

  3. Create a policy for using regional cloud services that SMS depends on. Enter a policy name, set Policy View to JSON, and copy the following content to the Policy Content box.

    {
     "Version": "1.1",
     "Statement": [
     {
     "Action": [
     "vpc:securityGroups:create",
     "vpc:securityGroupRules:create",
     "vpc:vpcs:create",
     "vpc:publicIps:create",
     "vpc:subnets:create",
     "ecs:cloudServers:create",
     "ecs:cloudServers:attach",
     "ecs:cloudServers:detachVolume",
     "ecs:cloudServers:start",
     "ecs:cloudServers:stop",
     "ecs:cloudServers:delete",
     "ecs:cloudServers:reboot",
     "ecs:cloudServers:updateMetadata",
     "ecs:serverPasswords:manage",
     "ecs:serverKeypairs:delete",
     "ecs:diskConfigs:use",
     "ecs:CloudServers:create",
     "ecs:servers:setMetadata",
     "ecs:serverVolumes:use",
     "ecs:serverKeypairs:create",
     "ecs:serverInterfaces:use",
     "ecs:serverGroups:manage",
     "ecs:securityGroups:use",
     "ecs:servers:unlock",
     "ecs:servers:rebuild",
     "ecs:servers:lock",
     "ecs:servers:reboot",
     "evs:volumes:use",
     "evs:volumes:create",
     "evs:volumes:update",
     "evs:volumes:delete",
     "evs:volumes:attach",
     "evs:volumes:detach",
     "evs:snapshots:create",
     "evs:snapshots:delete",
     "evs:snapshots:rollback",
     "ecs:*:get*",
     "ecs:*:list*",
     "evs:*:get*",
     "evs:*:list*",
     "vpc:*:list*",
     "vpc:*:get*",
     "ims:*:get*",
     "ims:*:list*"
     ],
     "Effect": "Allow"
     }
     ]
     }
    Figure 4 Creating a policy for using the regional cloud services that SMS depends on

Step 3: Assign Permissions

  1. On the IAM console, choose User Groups from the navigation pane.
  2. In the user group list, locate the user group created in step 1 and click Authorize in the Operation column.

    Figure 5 Assigning permissions to the user group

  3. Search for and select the two custom policies created in step 2 and click Next.

    Figure 6 Selecting the created custom policies

  4. Select Region-specific projects for Scope and select a region-specific project. Then the IAM users in the group can use resources in the region-specific project based on their permissions.

    Figure 7 Selecting a region-specific project

  5. Click OK.

Step 4: Create a User

  1. On the IAM console, choose Users from the left navigation pane, and click Create User in the upper right corner.

    Figure 8 Creating a user

  2. Enter a username, deselect Management console access, and click Next.

    Figure 9 Configuring basic information

  3. Select the user group created in step 1 and click Create.

    Figure 10 Selecting a user group

  4. After the user is created, the Download Access Key dialog box is displayed. Click OK to download an AK/SK pair for the IAM user.

    Figure 11 Downloading an access key

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