Skip to main content

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"
]
}
]
}
tip

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

  1. Log in to the Huawei Cloud IAM Console.

  2. Go to Permissions > Policies/Roles.

  3. Click Create Custom Policy.

  4. Enter a Policy Name.

    tip

    The policy name supports 1 to 64 characters and can contain English letters, Chinese characters, numbers, spaces, and these special characters: -_.,.

  5. In Policy View, select JSON.

  6. Copy the policy in Permission Policy, paste it into Policy Content, and click OK.

Step 2: Add an AccessKey Credential

  1. Log in to the Huawei Cloud IAM Console.

  2. Authorize the user group, and add the target user to this user group.

    tip

    Use the IAM user whose access key will be added to NineData.

  3. 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.

  4. Log in to the NineData Console.

    Go to **Datasource** > **Access Credentials**, and click **Create Credentials**.
  5. Configure the credential, and click Create Credential.

    Parameter
    Description
    NameEnter a credential name that is easy to identify later.
    Cloud VendorSelect Huawei Cloud.
    TypeSelect AccessKey.
    Access KeyEnter the Access Key ID.
    Access Key SecretEnter 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.