Created
September 2, 2020 14:15
-
-
Save mand2/856f5c7ea44b838011bff118b5ec3367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This example describes the specified Auto Scaling group. */ | |
var params = { | |
AutoScalingGroupNames: [ | |
"my-auto-scaling-group" | |
] | |
}; | |
autoscaling.describeAutoScalingGroups(params, function(err, data) { | |
if (err) console.log(err, err.stack); // an error occurred | |
else console.log(data); // successful response | |
/* | |
data = { | |
AutoScalingGroups: [ | |
{ | |
AutoScalingGroupARN: "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:930d940e-891e-4781-a11a-7b0acd480f03:autoScalingGroupName/my-auto-scaling-group", | |
AutoScalingGroupName: "my-auto-scaling-group", | |
AvailabilityZones: [ | |
"us-west-2c" | |
], | |
CreatedTime: <Date Representation>, | |
DefaultCooldown: 300, | |
DesiredCapacity: 1, | |
EnabledMetrics: [ | |
], | |
HealthCheckGracePeriod: 300, | |
HealthCheckType: "EC2", | |
Instances: [ | |
{ | |
AvailabilityZone: "us-west-2c", | |
HealthStatus: "Healthy", | |
InstanceId: "i-4ba0837f", | |
LaunchConfigurationName: "my-launch-config", | |
LifecycleState: "InService", | |
ProtectedFromScaleIn: false | |
} | |
], | |
LaunchConfigurationName: "my-launch-config", | |
LoadBalancerNames: [ | |
], | |
MaxSize: 1, | |
MinSize: 0, | |
NewInstancesProtectedFromScaleIn: false, | |
SuspendedProcesses: [ | |
], | |
Tags: [ | |
], | |
TerminationPolicies: [ | |
"Default" | |
], | |
VPCZoneIdentifier: "subnet-12345678" | |
} | |
] | |
} | |
*/ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment