Configure Tencent Cloud Access Credentials
NineData uses Tencent Cloud access credentials to create private network endpoints, query required Tencent Cloud resources such as PrivateLink, CVM, CDB, and VPC, and establish private connectivity between NineData and your database.
Permission Policy
Tencent Cloud credentials must include the permissions in the policy below.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cdb:DescribeDBInstances"
],
"resource": [
"*"
],
"condition": []
},
{
"effect": "allow",
"action": [
"cvm:DescribeInstances"
],
"resource": [
"*"
],
"condition": []
},
{
"effect": "allow",
"action": [
"cynosdb:DescribeClusters"
],
"resource": [
"*"
],
"condition": []
}
]
}
If you use a sub-account, ask a Tencent Cloud administrator to grant the required policy to that sub-account.
Step 1: Create a Custom Policy
Log in to the Tencent Cloud CAM Policy page.
Click New Custom Policy, and select Create by Policy Syntax.
In Select Template Type, select Blank Template, and click Next.
Enter a Policy Name.
tipThe policy name supports 1 to 128 characters and can contain English letters, numbers, and these special characters:
+=,.@-_.Copy the policy in Permission Policy, paste it into Policy Content, and click Finish.
Step 2: Add an AccessKey Credential
Log in to the Tencent Cloud CAM User List page.
Find the user to authorize, and select Authorization in the Operation column.
tipUse the user whose access key will be added to NineData.
On the Associated Policies page, select the custom policy created in Step 1, and click OK.
tipUse the search box to find the policy by name.
Go to Access Key > API Key Management, or open the API Key Management page, to obtain the SecretId and SecretKey. For more information, see View Current User Access Key.
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 Tencent Cloud. Type Select AccessKey. Access Key Enter the SecretId. Access Key Secret Enter the SecretKey.
Result
The Tencent Cloud credential is available in NineData and can be selected when you configure Tencent Cloud data sources or private connectivity.