Key |
Returned |
Description |
auto_scaling_group_arn
string
|
success |
The Amazon Resource Name of the ASG
Sample:
arn:aws:autoscaling:us-west-2:1234567890:autoScalingGroup:10787c52-0bcb-427d-82ba-c8e4b008ed2e:autoScalingGroupName/public-webapp-production-1
|
auto_scaling_group_name
str
|
success |
Name of autoscaling group
Sample:
public-webapp-production-1
|
availability_zones
list
|
success |
List of Availability Zones that are enabled for this ASG.
Sample:
['us-west-2a', 'us-west-2b', 'us-west-2a']
|
created_time
string
|
success |
The date and time this ASG was created, in ISO 8601 format.
Sample:
2015-11-25T00:05:36.309Z
|
default_cooldown
int
|
success |
The default cooldown time in seconds.
Sample:
300
|
desired_capacity
int
|
success |
The number of EC2 instances that should be running in this group.
Sample:
3
|
health_check_period
int
|
success |
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
Sample:
30
|
health_check_type
str
|
success |
The service you want the health status from, one of "EC2" or "ELB".
Sample:
ELB
|
instances
list
|
success |
List of EC2 instances and their status as it relates to the ASG.
Sample:
[{'instance_id': 'i-es22ad25', 'lifecycle_state': 'InService', 'health_status': 'Healthy', 'protected_from_scale_in': 'false', 'availability_zone': 'us-west-2a', 'launch_configuration_name': 'public-webapp-production-1'}]
|
launch_config_name
str
|
success |
Name of launch configuration associated with the ASG. Same as launch_configuration_name, provided for compatibility with ec2_asg module.
Sample:
public-webapp-production-1
|
launch_configuration_name
str
|
success |
Name of launch configuration associated with the ASG.
Sample:
public-webapp-production-1
|
load_balancer_names
list
|
success |
List of load balancers names attached to the ASG.
Sample:
['elb-webapp-prod']
|
max_size
int
|
success |
Maximum size of group
Sample:
3
|
min_size
int
|
success |
Minimum size of group
Sample:
1
|
new_instances_protected_from_scale_in
boolean
|
success |
Whether or not new instances a protected from automatic scaling in.
Sample:
false
|
placement_group
str
|
success |
Placement group into which instances are launched, if any.
Sample:
None
|
status
str
|
success |
The current state of the group when DeleteAutoScalingGroup is in progress.
Sample:
None
|
tags
list
|
success |
List of tags for the ASG, and whether or not each tag propagates to instances at launch.
Sample:
[{'propagate_at_launch': 'true', 'key': 'Name', 'value': 'public-webapp-production-1', 'resource_type': 'auto-scaling-group', 'resource_id': 'public-webapp-production-1'}, {'propagate_at_launch': 'true', 'key': 'env', 'value': 'production', 'resource_type': 'auto-scaling-group', 'resource_id': 'public-webapp-production-1'}]
|
target_group_arns
list
|
success |
List of ARNs of the target groups that the ASG populates
Sample:
['arn:aws:elasticloadbalancing:ap-southeast-2:123456789012:targetgroup/target-group-host-hello/1a2b3c4d5e6f1a2b', 'arn:aws:elasticloadbalancing:ap-southeast-2:123456789012:targetgroup/target-group-path-world/abcd1234abcd1234']
|
target_group_names
list
|
success |
List of names of the target groups that the ASG populates
Sample:
['target-group-host-hello', 'target-group-path-world']
|
termination_policies
str
|
success |
A list of termination policies for the group.
Sample:
['Default']
|