Using Identity Policies to Assign Custom Permissions to IAM Users (New Version)
With IAM, you can configure permission policies to grant IAM users in your account fine-grained MgC permissions, enabling effective permission isolation.
This section describes the custom permission policies that you need to configure for IAM users to use different MgC functions. For details about how to customize permissions for IAM users, see Creating a Custom Identity Policy.
You can add actions required for various scenarios to a single custom policy, instead of creating a new policy for every function.
Agency Authorization Permissions Required for IAM Users
When an IAM user first uses certain MgC functions, they must authorize MgC to create custom identity policies through an agency. Table 1 lists the custom identity policies and permissions required for the agency authorization.
| Scenario | Function | Description | Mandatory | Action |
|---|---|---|---|---|
| IAM agency permissions | Performing Agency Authorization | Agency authorization is required to use certain MgC functions. | Yes | Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:agencies:list",
"iam:agencies:create",
"iam:roles:list",
"iam:roles:update",
"iam:roles:create",
"iam:quotas:list",
"iam:agencies:listRoles",
"iam:agencies:grantRole",
"iam:agencies:revokeRole",
"iam:agencies:grantRoleOnProject",
"iam:agencies:checkRoleOnProject"
]
}
]
} |
Migrating Servers in Batches
Table 2 lists the functions and permissions required for batch server migration.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Migrating Servers in Batches | Managing Migration Projects | Creating an application migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCMigrationPlanAccessPolicy, MGCAssessmentAccessPolicy, MGCWorkflowAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined identity policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"tms:predefineTags:list",
"kms:cmk:list",
"deh:dedicatedHostTypes:list",
"deh:dedicatedHosts:list",
"obs:bucket:listAllMyBuckets",
"obs:bucket:listBucket",
"eps:enterpriseProjects:list",
"kms:cmk:get",
"kms:dek:decrypt",
"sms:server:migrationServer",
"sms:server:queryServer",
"sms:server:register",
"smn:topic:listTopic",
"smn:topic:get",
"vpc:securityGroups:create",
"vpc:securityGroupRules:create",
"vpc:vpcs:create",
"vpc:publicIps:create",
"vpc:subnets: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:CloudServers:create",
"ecs:servers:setMetadata",
"ecs:serverVolumes:use",
"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:snapshots:create",
"evs:snapshots:delete",
"evs:snapshots:rollback",
"ecs:*:get*",
"ecs:*:list*",
"evs:*:get*",
"evs:*:list*",
"vpc:*:list*",
"vpc:*:get*",
"ims:*:get*",
"ims:*:list*"
]
}
]
} |
| Collecting Server Resources | Collecting information about the servers to be migrated | ||
| Adding Source Servers | Accessing the resource list and selecting the servers to be migrated | ||
| Associating Existing Target Servers | Associating a source server with a Huawei Cloud target server | ||
| Getting Target Recommendations | The system can recommend right-sized Huawei Cloud servers based on source server specifications. | ||
| Creating a Batch Server Migration Task | Creating and executing a batch server migration task | ||
| Checking Resource Quotas | Checking whether the resource quota of the migration account in the target region meets the requirements | Through agency authorization, the system automatically creates custom policies when the IAM user uses specific functions, eliminating the need for manual setup. However, the IAM user must have the required agency authorization permissions listed in Table 1. For details about the actions included in the custom policies created by the system, see Agency Permissions. | |
| Adding a Post-migration Stage and Script | Adding a stage or step to a migration task |
Migrating Servers Across AZs
Table 3 lists the functions and permissions required for batch server migration across AZs.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Migrating Servers Across AZs | Managing Migration Projects | Creating an application migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCMigrationPlanAccessPolicy, MGCAssessmentAccessPolicy, MGCWorkflowAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined identity policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:cloudServers:listServersDetails",
"ecs:availabilityZones:list",
"evs:volumes:list",
"ecs:cloudServerFlavors:get",
"evs:types:get",
"smn:topic:listTopic"
]
}
]
} |
| Collecting Server Resources | Collecting information about the servers to be migrated | ||
| Creating a Cross-AZ Batch Server Migration Plan | Creating a server migration plan, planning server migration batches, and configuring migration parameters | ||
| Selecting Source AZ | Selecting the region and AZ where the servers to be migrated are located | ||
| Configuring Target Servers | By default, the system recommends target servers that match the source servers. | ||
| Getting Notifications | Enabling notifications in migration parameters requires SMN permissions. | ||
| Creating a Cross-AZ Batch Server Migration Task | Creating and executing a cross-AZ batch server migration task | Through agency authorization, the system automatically creates custom policies when the IAM user uses specific functions, eliminating the need for manual setup. However, the IAM user must have the required agency authorization permissions listed in Table 1. For details about the actions included in the custom policies created by the system, see Agency Permissions. | |
| Adding a Post-migration Stage and Script | Adding a stage or step to a migration task |
Migrating Servers Across Regions
Table 4 lists the functions and permissions required for batch server migration across regions.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Migrating Servers Across Regions | Managing Migration Projects | Creating an application migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCMigrationPlanAccessPolicy, MGCAssessmentAccessPolicy, MGCWorkflowAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined identity policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"evs:volumes:list",
"ecs:cloudServers:listServersDetails",
"ecs:availabilityZones:list",
"vpc:vpcs:list",
"vpc:subnets:get",
"vpc:securityGroups:get",
"vpc:securityGroups:list",
"smn:topic:listTopic"
]
}
]
} |
| Collecting Server Resources | Collecting information about the servers to be migrated | ||
| Creating a Cross-Region Server Migration Plan | Creating a server migration plan, planning server migration batches, and configuring migration parameters | ||
| Selecting Source Servers | Selecting the source region and source servers | ||
| Configuring Target Servers | Selecting the target region and AZ, automatically or manually configuring the target network, and customizing the target specifications | ||
| Getting Notifications | Enabling notifications in migration parameters requires SMN permissions. | ||
| Creating a Cross-Region Server Migration Task | Creating and executing a cross-region batch server migration task | Through agency authorization, the system automatically creates custom policies when the IAM user uses specific functions, eliminating the need for manual setup. However, the IAM user must have the required agency authorization permissions listed in Table 1. For details about the actions included in the custom policies created by the system, see Agency Permissions. | |
| Adding a Post-migration Stage and Script | Adding a stage or step to a migration task |
Migrating Storage Data
Table 5 lists the functions and permissions required for storage resource migration.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Migrating Storage Data | Managing Migration Projects | Creating an application migration project |
|
| Collecting Storage Resource Information | Collecting information about the storage resources to be migrated | ||
| Creating a batch migration plan for object storage and file storage, planning migration batches, and configuring migration parameters | ||
| Creating Target Storage Systems | MgC supports migrations from object storage to file storage and from file storage to object storage (OBS buckets). Target object buckets or file systems must be prepared on Huawei Cloud in advance. | ||
| Configuring Target Buckets | Configuring target buckets for receiving data from source buckets | ||
| Managing Migration Clusters | A migration cluster is a core component for storage migration tasks. It allows you to create and manage migration nodes and list nodes, and deploy and upgrade migration plugins, ensuring smooth operations of storage tasks. | ||
| Creating a General Storage Migration Plan | Creating a general storage migration plan. Enabling notifications requires SMN permissions. | ||
| Getting Notifications | Enabling notifications requires SMN permissions. | ||
| Key Encryption | Using KMS keys for encryption during the creation of migration plans requires certain permissions. | ||
| Importing File Storage Migration Plans in Batches | Importing source file storage resources in batches using a template | ||
| Creating a Storage Migration Task | Creating a storage migration task based on a migration plan | Through agency authorization, the system automatically creates custom policies when the IAM user uses specific functions, eliminating the need for manual setup. However, the IAM user must have the required agency authorization permissions listed in Table 1. For details about the actions included in the custom policies created by the system, see Agency Permissions. | |
| Adding a Post-migration Stage and Script | Adding a stage or step to a migration task |
Big Data Migration
Table 6 lists the functions and permissions required for big data migration.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Big Data Migration | Managing Migration Projects | Creating big data migration projects | Assign the system-defined identity policy MGCBigdataAccessPolicy to the IAM user. For details about the system-defined identity policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dli:queue:list",
"mrs:cluster:listHosts"
]
}
]
} |
| Managing Connections | Creating source and target connections NOTE: Using the resource collection function requires the MRSReadOnlyAccessPolicy and DLIReadOnlyPolicy permissions. | ||
| Migrating Data | Creating and executing a big data migration task |
Big Data Verification
Table 7 lists the functions and permissions required for big data verification.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Big Data Verification | Managing Migration Projects | Creating big data migration projects | Assign the system-defined identity policies MGCBigdataAccessPolicy and SMN FullAccess to the IAM user. For details about the system-defined identity policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dli:queue:list",
"mrs:cluster:listHosts",
"smn:topic:listTopic",
"obs:object:GetObject",
"obs:object:PutObject"
]
}
]
} |
| Managing Connections | Creating source and target connections NOTE: Using the resource collection function requires the MRSReadOnlyAccessPolicy and DLIReadOnlyPolicy permissions. | ||
| Managing Tasks | Creating and executing verification tasks for the source and target. Enabling notifications requires SMN permissions. Creating a custom verification task requires OBS upload and download permissions. | ||
| Managing Instances | Checking the task execution progress, exporting error lists, and uploading error logs. Uploading logs requires OBS upload and download permissions. |
Resource Collection
Table 8 lists the functions and permissions required for resource collection.
| Scenario | Function | Description | Action |
|---|---|---|---|
| Cloud Discovery | Managing Migration Projects | Creating an application migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCAssessmentAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. Through agency authorization, the system automatically creates custom policies when the IAM user uses specific functions, eliminating the need for manual setup. However, the IAM user must have the required agency authorization permissions listed in Table 1. For details about the actions included in the custom policies created by the system, see Agency Permissions. |
| Online Discovery – Cloud Platform Discovery | Collecting cloud resource information | ||
| Collection Method – Credentials | Collecting resource information using credentials | ||
| Huawei Cloud Discovery – Agency | Collecting resource information using an agency | ||
| SMS Server Synchronization | Online Discovery – SMS Server Synchronization | Synchronizing server information collected by SMS to MgC | |
| Intranet Discovery | IDC Discovery | Discovering IDC servers via network segment scanning | |
| VMware Discovery | Discovering VMs in VMware vCenter | ||
| Import | RVTools Data Import | Importing RVTools data to MgC to obtain a server resource list | |
| Cloud Inventory Import |
| ||
| Collection Result Import | Importing local resource information collected by MgC Agent collectors | ||
| Template Import | Importing resources in batches using a template and associating credentials with them | ||
| Resource List | Resource Management | Querying resources (such as server, container, database, middleware, big data, network, and storage resources) in a specified migration project and managing these resources | |
| Questionnaires | Managing Migration Projects | Creating an application migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCAssessmentAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"obs:object:GetObject",
"obs:bucket:ListAllMyBuckets",
"obs:bucket:ListBucket"
]
}
]
} |
| Importing Responses to the Architecture Survey | Importing architecture survey responses using a file | ||
| Architecture Survey – Selecting a Response File from an OBS Bucket | Selecting the file used to import architecture survey responses | ||
| Maturity Assessments | Maturity assessments | ||
| Application List | Associating Resources with Applications to Implement Resource Grouping | Querying applications in a specified migration project | Assign the following system policies to the IAM user: MGCCollectionAccessPolicy, MGCAssessmentAccessPolicy, and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:availabilityZones:list"
]
}
]
} |
| Creating or Modifying an Application |
|
Assessment
Table 9 lists the functions and permissions required for assessment.
| Scenario | Function | Description | Action |
|---|---|---|---|
| TCO Analysis for On-Prem to Cloud Migration | Creating a Task | With the provided on-premises infrastructure details and assumptions, the system automatically matches source resources with equivalent Huawei Cloud products and usage, providing a cost comparison. | Assign the following system policies to the IAM user: MGCAssessmentAccessPolicy and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. |
| Saving, Downloading, or Deleting a Report | Saving, downloading, or deleting a cost comparison report | ||
| TCO Analysis for Cross-Cloud Migration with Credentials | Creating or Deleting an Analysis Task | With the provided source cloud credentials, the system matches source resources with target alternatives and performs cost analysis, providing a comprehensive migration cost report. |
|
| Downloading Bills | By analyzing the source bills for a specified period, the system identifies product billing items and gathers details like product specifications, monthly average usage, and monthly average consumption. | ||
| Viewing Analysis Results | In terms of usage costs, the system compares the costs of the source cloud vendor and Huawei Cloud within a specified period. | ||
| Viewing Product Mappings | Viewing, adding, modifying, or deleting product mappings, and adjusting the predefined resource mapping logic to ensure the resulting resource specifications meet requirements | ||
| TCO Analysis for Cross-Cloud Migration with Bills | Creating an Analysis Task | By analyzing uploaded source bills, the system identifies what and how many source resources are used on the source cloud, matches the source resources with Huawei Cloud alternatives, and then compares the costs of source environment with the costs on Huawei Cloud. |
|
| Exporting or Deleting Analysis Results | Exporting or deleting analysis results | ||
| Migration Journeys (Old) | Creating or Deleting a Migration Journey | There are ready-to-use migration framework templates for complex scenarios, including database and LLM migrations. | Assign the following system policies to the IAM user: MGCAssessmentAccessPolicy and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. Create the custom identity policy below and assign it to the IAM user. {
"Version": "5.0",
"Statement": [
{
"Effect": "Allow",
"Action": [
"mgc:journey:*"
]
}
]
} |
| Cloud Migration Planning – Importing a Migration Plan | Importing a Migration Plan | Uploading migration assessment reports through the console. The uploaded files will be stored for 15 days. | Assign the following system policies to the IAM user: MGCAssessmentAccessPolicy and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. |
| Cloud Migration Planning – Generating Target Recommendations | Creating or Deleting a Target Recommendation Task | The system can recommend right-sized Huawei Cloud resources based on the source resource specifications. |
|
| Exporting Assessment Results | Exporting assessment results | ||
| Cross-Region and Cross-AZ Assessment | When applications configured for cross-AZ or cross-region migration are assessed using the intra-cloud migration assessment policy, target resources inherit the source specifications by default. If an exact match is unavailable, the system automatically identifies and selects the closest possible specifications for the target. | ||
| Configuring Preferences – Servers | During target recommendation, the system gives priority to servers matching the configured preferences. | ||
| Reassessing Source Resources | Modifying the assessment policy to generate target recommendations again | ||
| Modifying Resource Assessment Results | Changing the billing mode, product, and migration policy, and configuring specifications for a target server on the Custom page | ||
| Viewing Resource Details | Viewing resource details in the assessment report | ||
| Cloud Migration Planning – Migration Risk Assessment | Creating, Exporting, and Deleting a Migration Risk Assessment | Creating a risk assessment to check for potential risks that may affect the migration in advance | Assign the following system policies to the IAM user: MGCAssessmentAccessPolicy and MGCManagementAccessPolicy. For details about the system-defined policies supported by MgC, see Table 1. |
| Cloud Migration Planning – Storage Migration Assessment | Creating, Exporting, and Deleting a Storage Migration Assessment | Creating a storage migration assessment to automatically calculate the migration cluster specifications, network bandwidth, and migration costs required for the migration and generate different migration solutions | |
| Cloud Migration Planning – Big Data Migration Assessment | Creating, Exporting, and Deleting a Big Data Migration Assessment | Assessing how much cluster queue resources are required based on the number of tables and partition changes to be processed |
Migration Journeys (New)
Configure the required permissions based on the migration journey functions you need.
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