Use this data source to get information on an existing autoscaling group.
data "aws_autoscaling_group" "foo" {
name = "foo"
}
name
- Specify the exact name of the desired autoscaling group.arn
- ARN of the Auto Scaling group.availability_zones
- One or more Availability Zones for the group.default_cool_down
- Amount of time, in seconds, after a scaling activity completes before another scaling activity can start.desired_capacity
- Desired size of the group.desired_capacity_type
- The unit of measurement for the value returned for desired_capacity
.enabled_metrics
- List of metrics enabled for collection.health_check_grace_period
- The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service.health_check_type
- Service to use for the health checks. The valid values are EC2 and ELB.id
- Name of the Auto Scaling Group.instance_maintenance_policy
- Instance maintenance policy for the group.
min_healthy_percentage
- Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.max_healthy_percentage
- Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.launch_configuration
- The name of the associated launch configuration.launch_template
- List of launch templates for the group.
id
- ID of the launch template.name
- Name of the launch template.version
- Template version.load_balancers
- One or more load balancers associated with the group.max_instance_lifetime
- Maximum amount of time, in seconds, that an instance can be in service.max_size
- Maximum size of the group.min_size
- Minimum size of the group.mixed_instances_policy
- List of mixed instances policy objects for the group.
instances_distribution
- List of instances distribution objects.
on_demand_allocation_strategy
- Strategy used when launching on-demand instances.on_demand_base_capacity
- Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances.spot_allocation_strategy
- Strategy used when launching Spot instances.spot_instance_pools
- Number of Spot pools per availability zone to allocate capacity.spot_max_price
- Maximum price per unit hour that the user is willing to pay for the Spot instances.launch_template
- List of launch templates along with the overrides.
launch_template_specification
- List of launch template specification objects.
launch_template_id
- ID of the launch template.launch_template_name
- Name of the launch template.version
- Template version.override
- List of properties overriding the same properties in the launch template.
instance_requirements
- List of instance requirements objects.
min
- Minimum.max
- Maximum.accelerator_manufacturers
- List of accelerator manufacturer names.accelerator_names
- List of accelerator names.accelerator_total_memory_mib
- List of objects describing the minimum and maximum total memory of the accelerators.accelerator_types
- List of accelerator types.allowed_instance_types
- List of instance types to apply the specified attributes against.bare_metal
- Indicates whether bare metal instances are included, excluded, or required.baseline_ebs_bandwidth_mbps
- List of objects describing the minimum and maximum baseline EBS bandwidth (Mbps).
min
- Minimum.max
- Maximum.burstable_performance
- Indicates whether burstable performance instance types are included, excluded, or required.cpu_manufacturers
- List of CPU manufacturer names.excluded_instance_types
- List of excluded instance types.instance_generations
- List of instance generation names.local_storage
- Indicates whether instance types with instance store volumes are included, excluded, or required.local_storage_types
- List of local storage type names.memory_gib_per_vcpu
- List of objects describing the minimum and maximum amount of memory (GiB) per vCPU.
min
- Minimum.max
- Maximum.memory_mib
- List of objects describing the minimum and maximum amount of memory (MiB).
min
- Minimum.max
- Maximum.network_bandwidth_gbps
- List of objects describing the minimum and maximum amount of network bandwidth (Gbps).
min
- Minimum.max
- Maximum.network_interface_count
- List of objects describing the minimum and maximum amount of network interfaces.
min
- Minimum.max
- Maximum.on_demand_max_price_percentage_over_lowest_price
- Price protection threshold for On-Demand Instances.require_hibernate_support
- Indicates whether instance types must support On-Demand Instance Hibernation.spot_max_price_percentage_over_lowest_price
- Price protection threshold for Spot Instances.total_local_storage_gb
- List of objects describing the minimum and maximum total storage (GB).
min
- Minimum.max
- Maximum.vcpu_count
- List of objects describing the minimum and maximum number of vCPUs.
min
- Minimum.max
- Maximum.instance_type
- Overriding instance type.launch_template_specification
- List of overriding launch template specification objects.
launch_template_id
- ID of the launch template.launch_template_name
- Name of the launch template.version
- Template version.weighted_capacity
- Number of capacity units, which gives the instance type a proportional weight to other instance types.name
- Name of the Auto Scaling Group.placement_group
- Name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.predicted_capacity
- Predicted capacity of the group.service_linked_role_arn
- ARN of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.status
- Current state of the group when DeleteAutoScalingGroup is in progress.suspended_processes
- List of processes suspended processes for the Auto Scaling Group.tag
- List of tags for the group.
key
- Key.value
- Value.propagate_at_launch
- Whether the tag is propagated to Amazon EC2 instances launched via this ASG.target_group_arns
- ARNs of the target groups for your load balancer.termination_policies
- The termination policies for the group.traffic_source
-Traffic sources.
identifier
- Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region.type
- Traffic source type.vpc_zone_identifier
- VPC ID for the group.warm_pool
- List of warm pool configuration objects.
instance_reuse_policy
- List of instance reuse policy objects.
reuse_on_scale_in
- Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.max_group_prepared_policy
- Total maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group.min_size
- Minimum number of instances to maintain in the warm pool.pool_state
- Instance state to transition to after the lifecycle actions are complete.warm_pool_size
- Current size of the warm pool.