AWS Autoscaling

Describe auto scaling instance

Get information about the auto scaling instances in an account and region.

Inputs

Field

Type

Description

region [required]

enum

default: us-east-1

instanceId [required]

string

The ID of the instance.

Outputs

Expand All

Field

Type

Description

isInAutoScalingGroup [required]

boolean

autoScalingInstance

object

InstanceId [required]

string

The ID of the instance.

InstanceType

string

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

AutoScalingGroupName [required]

string

The name of the Auto Scaling group for the instance.

AvailabilityZone [required]

string

The Availability Zone for the instance.

LifecycleState [required]

string

The lifecycle state for the instance. The Quarantined state is not used. For information about lifecycle states, see Instance lifecycle in the Amazon EC2 Auto Scaling User Guide.
Valid Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby, Warmed:Pending, Warmed:Pending:Wait, Warmed:Pending:Proceed, Warmed:Terminating, Warmed:Terminating:Wait, Warmed:Terminating:Proceed, Warmed:Terminated, Warmed:Stopped, Warmed:Running

HealthStatus [required]

string

The last reported health status of this instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and Amazon EC2 Auto Scaling should terminate and replace it.

LaunchConfigurationName

string

The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.

LaunchTemplate

object

The launch template for the instance.

LaunchTemplateId

string

The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.

LaunchTemplateName

string

The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.

Version

string

The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.

ProtectedFromScaleIn [required]

boolean

Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

WeightedCapacity

string

The number of capacity units contributed by the instance based on its instance type. Valid Range: Minimum value of 1. Maximum value of 999.

amzRequestId [required]

string