- Determine the network ACL after deploying collector.
- Set IP whitelist based on agent deployment location in Apsara stack.
Create Policy
- Access the Alibaba Cloud RAM console: RAM Console
- In the left menu bar, select Permission Management > Permission Policy
- Click Create a Permission Policy
- Select Script Editing
- Copy the code below and paste it into the input box, change the value of
Condition.IpAddress["acs:SourceIp"]
to the Public IP of the collector, and click Confirm
json
{
"Version": "1",
"Statement": [
{
"Action": [
"*:Describe*",
"*:List*",
"*:Get*",
"*:BatchGet*",
"*:Query*",
"*:BatchQuery*",
"actiontrail:LookupEvents",
"actiontrail:Check*",
"dm:Desc*",
"dm:SenderStatistics*",
"ram:GenerateCredentialReport"
],
"Resource": "*",
"Effect": "Allow",
"Condition": {
"IpAddress": {
"acs:SourceIp": [
"some ip/cidr here"
]
}
}
}
]
}
- Input Name: "CloudRec"; Remarks: "Using for CloudRec Collector"
- Click Confirm, complete permission policy creation
Create and Authorize User Groups
- In the left menu bar, select Identity Management > User Groups
- Click Create a User Group
- Input:
- User group name: "CloudRec"
- Display name: "CloudRec"
- Remarks: "Use for CloudRec Collector"
- Click Confirm, complete the user group creation
- Find the user group you just created, in the far right Operation column, click Add Permissions
- Configure:
- Resource Scope: Account level
- Authorized Subject: The default is the user group selected in the previous step
- Permission Policy: Search for the permissions policy you just created "CloudRec"
- Click Confirm New Authorization, complete authorization
Create a User and Add to a User Group
- In the left menu bar, select Identity Management > Users
- Click Create User
- Configure:
- Login Name: "cloudrec"
- Display Name: "cloudrec"
- Access mode: Use permanent AccessKey access
- Click Determine
- Console pop-up Security Verification window, select the available Verification Method
- After authentication is completed, the user is successfully created
- Download CSV file, copy and save:
- AccessKey ID
- AccessKey Secret
- Select the user, click below Add to User Group
- Configure:
- User selection: The default is the user selected in the previous step
- User Group Selection: Search for the user group name you just created "CloudRec"
- Click Determine
- Console pop-up Security Verification window, select the available Verification Method
- Successfully added to user group after authentication
- Click Complete, complete the user group addition
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
- Configure:
- Input Account ID
- Input Account Alias
- Select Tenant
- Select Platform, here is Alibaba Cloud
- Input AK, the option is obtained above (AccessKey ID)
- Input SK, the option is obtained above (AccessKey Secret)
- 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 Determine, verify the validity of the cloud account voucher, and complete the Alibaba Cloud account entry