All Products
Search
Document Center

Performance Testing:Grant PTS access to Alibaba Cloud resources

Last Updated:Mar 11, 2026

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.

PropertyValue
Role nameAliyunServiceRoleForPts
Role policyAliyunServiceRolePolicyForPts
PermissionsAccess 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

  1. Log on to the RAM console.

  2. If PTS does not already have the required permissions, an authorization prompt appears. Authorize PTS to create the AliyunServiceRoleForPts service-linked role.

    Authorization prompt

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

RAM console - delete role
Note

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.