This topic describes how to grant permissions on related Alibaba Cloud resources to Auto Scaling.

Background information

If this is the first time that you use Auto Scaling, you must grant permissions on related Alibaba Cloud resources to Auto Scaling. If you have used Auto Scaling before, skip this topic.

You can use one of the following methods to grant permissions to Auto Scaling:
  • Auto Scaling service linked role (AliyunServiceRoleForAutoScaling): AliyunServiceRoleForAutoScaling is a RAM role that enables Auto Scaling to access other Alibaba Cloud resources. You cannot add, modify, or delete the permissions of service linked roles. AliyunServiceRoleForAutoScaling is automatically created when you use Auto Scaling. For more information, see Manage the Auto Scaling service linked role.
  • Normal service role (AliyunESSDefaultRole): By default, AliyunESSDefaultRole is attached with the AliyunESSRolePolicy system policy and can be assumed by Auto Scaling to access other Alibaba Cloud resources. You can add, modify, or delete the permissions of normal service roles. We recommend that you use the default policy to make sure that Auto Scaling has the permissions to access other Alibaba Cloud resources.

Procedure

When you use Auto Scaling, AliyunServiceRoleForAutoScaling is automatically created for Auto Scaling.

If AliyunServiceRoleForAutoScaling is created, Auto Scaling is granted permissions on related Alibaba Cloud resources, and you can skip the following steps.

If AliyunServiceRoleForAutoScaling fails to be created, you are prompted to manually grant permissions on related Alibaba Cloud resources to Auto Scaling after you log on to the Auto Scaling console. Perform the following steps to grant permissions:

  1. Log on to the Auto Scaling console.
  2. Click Go to Authorize.
  3. On the page that appears, select AliyunESSDefaultRole and click Confirm Authorization Policy.

What to do next

After you 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.