Difference between revisions of "Aws autoscaling describe-auto-scaling-groups"
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/describe-auto-scaling-groups.html | https://awscli.amazonaws.com/v2/documentation/api/latest/reference/autoscaling/describe-auto-scaling-groups.html | ||
− | <code>[[aws autoscaling]] describe-auto-scaling-groups</code> | + | * <code>[[aws autoscaling]] describe-auto-scaling-groups</code> |
+ | aws autoscaling describe-auto-scaling-groups | grep [[AutoScalingGroupName]] | ||
+ | aws autoscaling describe-auto-scaling-groups | egrep "AutoScalingGroupName|MinSize|MaxSize" | ||
+ | aws autoscaling describe-auto-scaling-groups --auto-scaling-group-name my-asg | grep [[AutoScalingGroupName]] | ||
+ | == Examples == | ||
+ | |||
+ | <pre> | ||
+ | { | ||
+ | "AutoScalingGroups": [ | ||
+ | { | ||
+ | "AutoScalingGroupName": "my-asg", | ||
+ | "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:930d940e-891e-4781-a11a-7b0acd480f03:autoScalingGroupName/my-asg", | ||
+ | "LaunchTemplate": { | ||
+ | "LaunchTemplateName": "my-launch-template", | ||
+ | "Version": "1", | ||
+ | "LaunchTemplateId": "lt-1234567890abcde12" | ||
+ | }, | ||
+ | "MinSize": 0, | ||
+ | "MaxSize": 1, | ||
+ | "DesiredCapacity": 1, | ||
+ | "DefaultCooldown": 300, | ||
+ | "AvailabilityZones": [ | ||
+ | "us-west-2a", | ||
+ | "us-west-2b", | ||
+ | "us-west-2c" | ||
+ | ], | ||
+ | "LoadBalancerNames": [], | ||
+ | "TargetGroupARNs": [], | ||
+ | "HealthCheckType": "EC2", | ||
+ | "HealthCheckGracePeriod": 0, | ||
+ | "Instances": [ | ||
+ | { | ||
+ | "InstanceId": "i-06905f55584de02da", | ||
+ | "InstanceType": "t2.micro", | ||
+ | "AvailabilityZone": "us-west-2a", | ||
+ | "HealthStatus": "Healthy", | ||
+ | "LifecycleState": "InService", | ||
+ | "ProtectedFromScaleIn": false, | ||
+ | "LaunchTemplate": { | ||
+ | "LaunchTemplateName": "my-launch-template", | ||
+ | "Version": "1", | ||
+ | "LaunchTemplateId": "lt-1234567890abcde12" | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | "CreatedTime": "2020-10-28T02:39:22.152Z", | ||
+ | "VPCZoneIdentifier": "subnet-5ea0c127,subnet-6194ea3b,subnet-c934b782", | ||
+ | "SuspendedProcesses": [], | ||
+ | "EnabledMetrics": [], | ||
+ | "Tags": [], | ||
+ | "TerminationPolicies": [ | ||
+ | "Default" | ||
+ | ], | ||
+ | "NewInstancesProtectedFromScaleIn": false, | ||
+ | "ServiceLinkedRoleARN":"arn" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </pre> | ||
== See also == | == See also == |
Latest revision as of 14:11, 16 January 2023
aws autoscaling describe-auto-scaling-groups
aws autoscaling describe-auto-scaling-groups | grep AutoScalingGroupName aws autoscaling describe-auto-scaling-groups | egrep "AutoScalingGroupName|MinSize|MaxSize" aws autoscaling describe-auto-scaling-groups --auto-scaling-group-name my-asg | grep AutoScalingGroupName
Examples[edit]
{ "AutoScalingGroups": [ { "AutoScalingGroupName": "my-asg", "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:930d940e-891e-4781-a11a-7b0acd480f03:autoScalingGroupName/my-asg", "LaunchTemplate": { "LaunchTemplateName": "my-launch-template", "Version": "1", "LaunchTemplateId": "lt-1234567890abcde12" }, "MinSize": 0, "MaxSize": 1, "DesiredCapacity": 1, "DefaultCooldown": 300, "AvailabilityZones": [ "us-west-2a", "us-west-2b", "us-west-2c" ], "LoadBalancerNames": [], "TargetGroupARNs": [], "HealthCheckType": "EC2", "HealthCheckGracePeriod": 0, "Instances": [ { "InstanceId": "i-06905f55584de02da", "InstanceType": "t2.micro", "AvailabilityZone": "us-west-2a", "HealthStatus": "Healthy", "LifecycleState": "InService", "ProtectedFromScaleIn": false, "LaunchTemplate": { "LaunchTemplateName": "my-launch-template", "Version": "1", "LaunchTemplateId": "lt-1234567890abcde12" } } ], "CreatedTime": "2020-10-28T02:39:22.152Z", "VPCZoneIdentifier": "subnet-5ea0c127,subnet-6194ea3b,subnet-c934b782", "SuspendedProcesses": [], "EnabledMetrics": [], "Tags": [], "TerminationPolicies": [ "Default" ], "NewInstancesProtectedFromScaleIn": false, "ServiceLinkedRoleARN":"arn" } ] }
See also[edit]
aws autoscaling
[enable-metrics-collection
|create-launch-configuration
|describe-metric-collection-types | describe-auto-scaling-groups | create-auto-scaling-group | update-auto-scaling-group | attach-instances
]AWS::ApplicationAutoScaling::ScalingPolicy
- IAM: AWS IAM Identity Center, AWS Identity and Access Management, Google Cloud IAM, Azure IAM, SailPoint, CyberArk, CIAM, ForgeRock,
iam:ChangePassword
,aws iam
,AdministratorAccess
, Context keys, IAM Access Analyzer, AWS policy, AWS managed policies,IAMUserChangePassword
, AWS Roles, List of AWS policies, Resource-based policy,aws-iam-authenticator
, IRSA, RDS Authentication,AccessDenied
, AWS Authentication, AWS IAM external access analyzer
Advertising: