Collecting Details of AWS Container Resources
This section describes the basic principles, preparations, account permission requirements, and specific operations for using MgC to collect AWS container resource details efficiently and accurately.
Principle of Collection over the Internet
- MgC invokes Amazon EKS APIs to obtain information about resources such as containers and VMs.
- MgC receives API call responses, which typically contain extensive resource data.
- MgC parses the returned data and extracts key information, such as the number of nodes and number of VM cores. Then, the key information is saved to the database for subsequent analysis and migration.
Principle of Deep Collection
The process is as follows:
- MgC sends commands to Edge to collect container resource information.
- Edge access the container cluster using the credentials you provide.
- Edge interacts with the container clusters through Kubernetes APIs to collect cluster details, including container specifications, node configurations, persistent volume configurations, and network policies.
- Edge reports the collected information to MgC.
- After receiving the reported information, MgC parses the information, extracts useful information, and saves the information to the database.
Preparations
- Preparing a Huawei account
Before using MgC, you need to prepare a HUAWEI ID or an IAM user that can access MgC. For details about how to register a HUAWEI ID and create an IAM user, see Preparations.
- Creating a migration project
Create a migration project (a simple project is recommended) on the MgC console. For details, see Managing Migration Projects.
- Preparing AWS account credentials
Obtain an AK/SK pair for the AWS account that owns the resources to be collected. For details, see Obtaining AWS Access Keys.
- Providing the source credentials
Add the AWS authentication information to the MgC console as the collection credential. For details, see Managing Credentials.
- Obtaining the login configuration files of the AWS container clusters
The configuration files are used for deep collection. Edge uses them to access the AWS container clusters and invoke the Kubernetes APIs to collect details about the container clusters.
Required Permissions
Before collecting details of Amazon EKS resources, ensure that the AWS account has the following permissions:
- eks:DescribeCluster
- eks:ListClusters
- ec2:DescribeInstances
- ec2:DescribeSubnets
- cloudwatch:GetMetricStatistics
Creating an Internet-based Discovery Task
Performing a Deep Collection
After obtaining the list of AWS containers through the Internet-based discovery task, you can perform a deep collection for container resources to obtain their details, including container specifications, node configurations, persistent volume configurations, and network policies. For details, see Performing a Deep Collection for Containers.
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