This topic describes how to activate Auto Scaling and grant access permissions on Alibaba Cloud resources to Auto Scaling.

Background information

If this is the first time that you use Auto Scaling, you must activate Auto Scaling and grant permissions to Auto Scaling. If you have used Auto Scaling before, skip this topic to create a scaling group and a scaling configuration. For more information, see Create a scaling group and a scaling configuration.

The Auto Scaling service linked role (AliyunServiceRoleForAutoScaling) is a RAM role that enables Auto Scaling to access other Alibaba Cloud services. You can use the service linked role to enable Auto Scaling to access Elastic Compute Service (ECS), Virtual Private Cloud (VPC), ApsaraDB for RDS (RDS), Server Load Balancer (SLB), Message Service (MNS), and CloudMonitor. For more information about service linked roles, see Service linked roles.

When the Auto Scaling service is activated, a service linked role named AliyunServiceRoleForAutoScaling is automatically created. The AliyunServiceRolePolicyForAutoScaling system policy is attached to the role.
Note You cannot modify or delete the system policy of a service linked role.

You can view the latest information about the AliyunServiceRolePolicyForAutoScaling policy in the RAM console. For more information, see View the basic information about a policy.

You can delete the Auto Scaling service linked role in the RAM console. For more information, see Delete a RAM role.
Note Before you delete the Auto Scaling service linked role, you must release all cloud resources related to the role, such as scaling groups, scheduled tasks, and event-triggered tasks.

Step 1. Activate Auto Scaling

  1. Log on to the Auto Scaling console.
  2. Click Enable Auto Scaling.
  3. Select I agree with Auto Scaling Agreement of Service and click Enable Now.
    Activate Auto Scaling - International site
  4. On the Auto Scaling Activated page, click ESS Console to go back to the homepage.

Step 2. Grant permissions to Auto Scaling

In the preceding step, the system attempts to create the service linked role AliyunServiceRoleForAutoScaling for Auto Scaling.

If the role is created, the Auto Scaling service is activated and granted permissions, and you can skip this step.

If the role fails to be created, you are prompted to manually grant access permissions on other Alibaba Cloud resources to Auto Scaling when you go back to the homepage. Perform the following operations:

  1. Click Go to Authorize.
  2. On the page that appears, select AliyunESSDefaultRole and click Confirm Authorization Policy.
    AliyunESSDefaultRole is a normal service role. By default, the service role is attached with the system policy AliyunESSRolePolicy and can be assumed by Auto Scaling to access other Alibaba Cloud resources. You can modify or delete the system policy of a normal service role. We recommend that you use the default policy to make sure that Auto Scaling has the permissions to access other cloud resources.

What to do next

After you activate and grant permissions to Auto Scaling, you can create a scaling group and a scaling configuration. For more information, see Create a scaling group and a scaling configuration.