Data Source: aws_autoscaling_group#
Provides information about an Auto Scaling group.
Example Usage#
data "aws_autoscaling_group" "example" {
name = "example-asg"
}
Argument Reference#
name- Specify the exact name of the desired Auto Scaling group.
Attribute Reference#
Supported attributes#
In addition to all arguments above, the following attributes are exported:
arn- The Amazon Resource Name (ARN) of the Auto Scaling group.availability_zones- One or more availability zones for the group.default_cool_down- The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.desired_capacity- The desired size of the group.health_check_grace_period- The amount of time, in seconds, after which Auto Scaling group can perform a health check on its instances.id- Name of the Auto Scaling group.max_size- The maximum size of the group.min_size- The minimum size of the group.name- Name of the Auto Scaling group.new_instances_protected_from_scale_in- Indicates whether new instances are protected from deletion when Auto Scaling group is scaled in.status- The status of the Auto Scaling group when it is deleted.vpc_zone_identifier- The IDs of the subnets in which instances are created.
Unsupported attributes#
~> Note These attributes may be present in the terraform.tfstate file, but they have preset values and cannot be specified in configuration files.
The following attributes are not currently supported:
enabled_metrics, health_check_type, launch_configuration, load_balancers, placement_group, service_linked_role_arn, target_group_arns, termination_policies.