Configure Huawei Cloud Access Credentials
NineData uses Huawei Cloud access credentials to create VPC endpoints, query required Huawei Cloud resources such as ECS, RDS, and VPC, and establish private connectivity between NineData and your database.
Permission Policy
Huawei Cloud credentials must include the permissions in the policy below.
{
"Version": "1.1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"vpc:vpcs:list",
"vpc:subnets:create",
"vpc:subnets:get"
]
},
{
"Effect": "Allow",
"Action": [
"vpcep:pubEpservices:list",
"vpcep:epserviceDesc:get",
"vpcep:endpoints:create",
"vpcep:endpoints:list"
]
},
{
"Effect": "Allow",
"Action": [
"ecs:cloudServers:showServer",
"ecs:servers:list",
"ecs:cloudServers:list"
]
},
{
"Effect": "Allow",
"Action": [
"rds:instance:list"
]
}
]
}
If you use an IAM account, ask a Huawei Cloud administrator to grant the required policy to that IAM account.
Step 1: Create a Custom Policy
Log in to the Huawei Cloud IAM Console.
Go to Permissions > Policies/Roles.
Click Create Custom Policy.
Enter a Policy Name.
tipThe policy name supports 1 to 64 characters and can contain English letters, Chinese characters, numbers, spaces, and these special characters:
-_.,.In Policy View, select JSON.
Copy the policy in Permission Policy, paste it into Policy Content, and click OK.
Step 2: Add an AccessKey Credential
Log in to the Huawei Cloud IAM Console.
Authorize the user group, and add the target user to this user group.
tipUse the IAM user whose access key will be added to NineData.
Open the Huawei Cloud Access Key page and obtain the Access Key ID and Secret Access Key. For more information, see Managing IAM User Access Keys.
Log in to the NineData Console.
Go to **Datasource** > **Access Credentials**, and click **Create Credentials**.Configure the credential, and click Create Credential.
Parameter Description Name Enter a credential name that is easy to identify later. Cloud Vendor Select Huawei Cloud. Type Select AccessKey. Access Key Enter the Access Key ID. Access Key Secret Enter the Secret Access Key.
Result
The Huawei Cloud credential is available in NineData and can be selected when you configure Huawei Cloud data sources or private connectivity.