Autoscaling Group
An Autoscaling Group in AWS is a collection of EC2 instances that allows for automatic scaling of resources, ensuring your application has the right amount of capacity to handle traffic demands. This service integrates with Amazon CloudWatch metrics to dynamically adjust capacity according to predefined rules. An Autoscaling Group also ensures that the correct number of instances are running across multiple available zones. For further details, refer to the official AWS documentation on Autoscaling Groups.
Terraform Mappings:
aws_autoscaling_group.arn
Supported Methods​
GET
: Get an Autoscaling Group by nameLIST
: List Autoscaling GroupsSEARCH
: Search for Autoscaling Groups by ARN
Possible Links​
ec2-launch-template
​
An Autoscaling Group may utilise an EC2 Launch Template to define the instance configuration details, including the AMI ID, instance type, key pair, security groups, and block device mappings that will be used when launching EC2 instances.
elbv2-target-group
​
An Autoscaling Group can be associated with an ELBv2 Target Group, which distributes incoming traffic across its registered instances, enhancing the fault tolerance and availability of applications by ensuring they are redundantly deployed across multiple instances.
ec2-instance
​
The primary function of an Autoscaling Group is to manage EC2 instances. It automatically adjusts the number of EC2 instances in response to changes in demand, ensuring that the number of running instances matches the desired capacity or scaling policies.
iam-role
​
An Autoscaling Group may require an IAM Role to provide the necessary permissions for the instances it launches to interact with other AWS services. These roles manage access control and grant specific privileges to the instances within the Autoscaling Group.
ec2-placement-group
​
An Autoscaling Group can optionally utilise an EC2 Placement Group to control how instances are placed on underlying hardware. This is useful for applications that benefit from low network latency and/or high network throughput among instances within the group.