Posted On: Mar 23, 2018
Today, Amazon EC2 Auto Scaling is introducing support for using Amazon Identity and Access Management (IAM) service-linked roles, a new type of role that allows you to easily delegate permissions to Amazon Web Services services.
EC2 Auto Scaling service-linked roles are predefined by EC2 Auto Scaling and include all the permissions that the service requires to call other Amazon Web Services services on your behalf. Some of the actions that EC2 Auto Scaling performs on your behalf include launching and terminating EC2 instances or creating Amazon CloudWatch alarms when you create a target tracking scaling policy. EC2 Auto Scaling will automatically create a default EC2 Auto Scaling service-linked role in your account if one does not already exist when you create an EC2 Auto Scaling group. Alternatively, you can create a service-linked role other than the default through IAM and then pass it to the EC2 Auto Scaling group. Unlike a normal IAM role, you cannot delete the service-linked role if it is still in use by one or more EC2 Auto Scaling groups. This protects you from inadvertently revoking permissions required by EC2 Auto Scaling. The addition of service-linked roles to EC2 Auto Scaling also helps with monitoring and auditing requirements in Amazon CloudTrail by logging actions performed by EC2 Auto Scaling against the respective service-linked role.
Service-linked roles for EC2 Auto Scaling will be enabled in all public Amazon Web Services regions, including Amazon Web Services China (Beijing) region, operated by Sinnet, Amazon Web Services China (Ningxia) region, operated by NWCD and in the Amazon Web Services GovCloud (US) region over the next few weeks. There is no action required from any EC2 Auto Scaling customers and you can continue using the service the way you do today. For existing EC2 Auto Scaling customers, EC2 Auto Scaling will add a default EC2 Auto Scaling service-linked role in your account and your existing Auto Scaling groups will be updated to use this role over the next few weeks. You can learn more about how EC2 Auto Scaling uses service-linked roles by referring to our documentation.