This topic describes how to activate Auto Scaling and grant access permissions on Alibaba Cloud resources to Auto Scaling.
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.
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.
Step 1. Activate Auto Scaling
- Log on to the Auto Scaling console.
- Click Enable Auto Scaling.
- Select I agree with Auto Scaling Agreement of Service and click Enable Now.
- 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:
- Click Go to Authorize.
- 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.