404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**Example 1: To describe the scaling policies of a specified group**

This example describes the scaling policies for the specified Auto Scaling group. ::

    aws autoscaling describe-policies \
        --auto-scaling-group-name my-asg

Output::

    {
        "ScalingPolicies": [
            {
                "AutoScalingGroupName": "my-asg",
                "PolicyName": "alb1000-target-tracking-scaling-policy",
                "PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:3065d9c8-9969-4bec-bb6a-3fbe5550fde6:autoScalingGroupName/my-asg:policyName/alb1000-target-tracking-scaling-policy",
                "PolicyType": "TargetTrackingScaling",
                "StepAdjustments": [],
                "Alarms": [
                    {
                        "AlarmName": "TargetTracking-my-asg-AlarmHigh-924887a9-12d7-4e01-8686-6f844d13a196",
                        "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-924887a9-12d7-4e01-8686-6f844d13a196"
                    },
                    {
                        "AlarmName": "TargetTracking-my-asg-AlarmLow-f96f899d-b8e7-4d09-a010-c1aaa35da296",
                        "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-f96f899d-b8e7-4d09-a010-c1aaa35da296"
                    }
                ],
                "TargetTrackingConfiguration": {
                    "PredefinedMetricSpecification": {
                        "PredefinedMetricType": "ALBRequestCountPerTarget",
                        "ResourceLabel": "app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff"
                    },
                    "TargetValue": 1000.0,
                    "DisableScaleIn": false
                },
                "Enabled": true
            },
            {
                "AutoScalingGroupName": "my-asg",
                "PolicyName": "cpu40-target-tracking-scaling-policy",
                "PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:5fd26f71-39d4-4690-82a9-b8515c45cdde:autoScalingGroupName/my-asg:policyName/cpu40-target-tracking-scaling-policy",
                "PolicyType": "TargetTrackingScaling",
                "StepAdjustments": [],
                "Alarms": [
                    {
                        "AlarmName": "TargetTracking-my-asg-AlarmHigh-139f9789-37b9-42ad-bea5-b5b147d7f473",
                        "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-139f9789-37b9-42ad-bea5-b5b147d7f473"
                    },
                    {
                        "AlarmName": "TargetTracking-my-asg-AlarmLow-bd681c67-fc18-4c56-8468-fb8e413009c9",
                        "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-bd681c67-fc18-4c56-8468-fb8e413009c9"
                    }
                ],
                "TargetTrackingConfiguration": {
                    "PredefinedMetricSpecification": {
                        "PredefinedMetricType": "ASGAverageCPUUtilization"
                    },
                    "TargetValue": 40.0,
                    "DisableScaleIn": false
                },
                "Enabled": true
            }
        ]
    }

For more information, see `Dynamic scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.

**Example 2: To describe the scaling policies of a specified name**

To return specific scaling policies, use the ``--policy-names`` option. ::

    aws autoscaling describe-policies \
        --auto-scaling-group-name my-asg \
        --policy-names cpu40-target-tracking-scaling-policy

See example 1 for sample output.

For more information, see `Dynamic scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.

**Example 3: To describe a number of scaling policies**

To return a specific number of policies, use the ``--max-items`` option. ::

    aws autoscaling describe-policies \
        --auto-scaling-group-name my-asg \
        --max-items 1

See example 1 for sample output.

If the output includes a ``NextToken`` field, use the value of this field with the ``--starting-token`` option in a subsequent call to get the additional policies. ::

    aws autoscaling describe-policies --auto-scaling-group-name my-asg --starting-token Z3M3LMPEXAMPLE

For more information, see `Dynamic scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html>`__ in the *Amazon EC2 Auto Scaling User Guide*.

Filemanager

Name Type Size Permission Actions
attach-instances.rst File 306 B 0644
attach-load-balancer-target-groups.rst File 622 B 0755
attach-load-balancers.rst File 554 B 0644
cancel-instance-refresh.rst File 545 B 0644
complete-lifecycle-action.rst File 690 B 0644
create-auto-scaling-group.rst File 8.71 KB 0644
create-launch-configuration.rst File 7.03 KB 0644
create-or-update-tags.rst File 619 B 0644
delete-auto-scaling-group.rst File 1006 B 0644
delete-launch-configuration.rst File 445 B 0644
delete-lifecycle-hook.rst File 263 B 0644
delete-notification-configuration.rst File 573 B 0644
delete-policy.rst File 270 B 0644
delete-scheduled-action.rst File 338 B 0644
delete-tags.rst File 496 B 0644
delete-warm-pool.rst File 961 B 0644
describe-account-limits.rst File 596 B 0644
describe-adjustment-types.rst File 700 B 0644
describe-auto-scaling-groups.rst File 3.61 KB 0644
describe-auto-scaling-instances.rst File 2.01 KB 0644
describe-auto-scaling-notification-types.rst File 745 B 0644
describe-instance-refreshes.rst File 2.21 KB 0644
describe-launch-configurations.rst File 2.46 KB 0644
describe-lifecycle-hook-types.rst File 345 B 0644
describe-lifecycle-hooks.rst File 972 B 0644
describe-load-balancer-target-groups.rst File 570 B 0755
describe-load-balancers.rst File 443 B 0644
describe-metric-collection-types.rst File 1.57 KB 0644
describe-notification-configurations.rst File 2.49 KB 0644
describe-policies.rst File 4.7 KB 0644
describe-scaling-activities.rst File 4.95 KB 0644
describe-scaling-process-types.rst File 1.11 KB 0644
describe-scheduled-actions.rst File 6.92 KB 0644
describe-tags.rst File 1.96 KB 0644
describe-termination-policy-types.rst File 727 B 0644
describe-warm-pool.rst File 1.56 KB 0644
detach-instances.rst File 1015 B 0644
detach-load-balancer-target-groups.rst File 654 B 0755
detach-load-balancers.rst File 559 B 0644
disable-metrics-collection.rst File 581 B 0644
enable-metrics-collection.rst File 1.11 KB 0644
enter-standby.rst File 1.25 KB 0644
execute-policy.rst File 578 B 0644
exit-standby.rst File 1.15 KB 0644
put-lifecycle-hook.rst File 2.5 KB 0644
put-notification-configuration.rst File 637 B 0644
put-scaling-policy.rst File 1.94 KB 0644
put-scheduled-update-group-action.rst File 1.54 KB 0644
put-warm-pool.rst File 509 B 0644
record-lifecycle-action-heartbeat.rst File 596 B 0644
resume-processes.rst File 518 B 0644
rollback-instance-refresh.rst File 559 B 0644
set-desired-capacity.rst File 341 B 0644
set-instance-health.rst File 290 B 0644
set-instance-protection.rst File 714 B 0644
start-instance-refresh.rst File 1.96 KB 0644
suspend-processes.rst File 514 B 0644
terminate-instance-in-auto-scaling-group.rst File 1005 B 0644
update-auto-scaling-group.rst File 4.9 KB 0644