Performance Testing Service (PTS) needs access to your Virtual Private Cloud (VPC), ApsaraDB RDS, Elastic Compute Service (ECS), and Server Load Balancer (SLB) resources to query data and generate performance testing reports. You grant this access by authorizing a service-linked role that allows PTS to query these resources on your behalf.
How it works
The first time you use PTS, the system prompts you to authorize a service-linked role named AliyunServiceRoleForPts. This role is bound to a policy (AliyunServiceRolePolicyForPts) that allows PTS to access your VPC, ApsaraDB RDS, ECS, and SLB resources. PTS uses this access to query resource data for performance testing reports.
| Property | Value |
|---|---|
| Role name | AliyunServiceRoleForPts |
| Role policy | AliyunServiceRolePolicyForPts |
| Permissions | Access to VPC, ApsaraDB RDS, ECS, and SLB resources for generating performance testing reports |
Prerequisites
Before you begin, make sure that you have:
An activated PTS instance. For more information, see Activate PTS
An Alibaba Cloud account or a RAM user with administrative rights to create service-linked roles
Create the service-linked role
Log on to the RAM console.
If PTS does not already have the required permissions, an authorization prompt appears. Authorize PTS to create the
AliyunServiceRoleForPtsservice-linked role.
After authorization is complete, click Try PTS Now.
Delete the service-linked role
If you no longer need PTS to access your Alibaba Cloud resources, delete the AliyunServiceRoleForPts role from the RAM console.

Deleting this role prevents PTS from running performance tests in VPCs and from querying data from ApsaraDB RDS, ECS, and SLB. If you later use VPC-based testing or CloudMonitor features, PTS prompts you to re-create the role.
For more information, see Service-linked role of PTS.