- After the agent is deployed to the public cloud, the whitelist size can be reduced.
- Set IP whitelist based on agent deployment location in Apsara Stack.
Create a Permission Policy
- Visit the Tengxun CAM console: https://console.cloud.tencent.com/cam/overview
- In the left menu bar, select Policy > New Custom Policy
- Click Create by Policy Syntax
- Select Blank Template
- Copy the code below and paste it into the input box, modify the value in
qcs:ipto be the export IP of the collector deployment server, and click Confirm
json
{
"statement": [
{
"action": "*",
"condition": {
"numeric_equal": {
"qcs:read_only_action": 1
},
"ip_equal": {
"qcs:ip": [
"some ip/cidr here"
]
}
},
"effect": "allow",
"resource": "*"
}
],
"version": "2.0"
}- Input Policy Name:
CloudRec; Description:Using for CloudRec Collector - Click Confirm, complete permission policy creation
Create and authorize user groups
- In the left menu bar, select User Group
- Click New User Group
- Input user group name:
cloudrec, comment:use for cloudrec collector - Choose policy by searching
cloudrec - Click Next
- Click Done
Create user and add to user group
- In the left menu bar, select User > User List
- Click New User > Quick Create
- Username:
cloudrec, access method:API, user permission:cloudrec - Click Create User
- Download CSV file, save AK/SK
- In the left menu bar, select User Group >
cloudrec - Add user to group
- Click OK
Enter the cloud account to the CloudRec platform
- Login Platform
- Select Cloud Account Management in the left-side menu bar
- Click on the right Add a Cloud Account
- In turn:
- Input Account ID
- Input Account Alias
- Select Tenant
- Select Platform, here is Tencent Cloud
- Input AK which is the option obtained above (SecretId)
- Input SK which is the option obtained above (SecretKey)
- Select Cloud Services (this option limits the range of cloud resources accessed by the cloud account. If this option is not specified, all resources are accessed.)
- Input Site, the option is the proprietary cloud site
- Click OK, verify the validity of the cloud account voucher and complete the Tencent cloud account entry