HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/application-autoscaling/describe-scaling-policies.rst
**To describe scaling policies**

This example command describes the scaling policies for the `ecs` service namespace.

Command::

  aws application-autoscaling describe-scaling-policies --service-namespace ecs

Output::

  {
      "ScalingPolicies": [
          {
              "PolicyName": "web-app-cpu-gt-75",
              "ScalableDimension": "ecs:service:DesiredCount",
              "ResourceId": "service/default/web-app",
              "CreationTime": 1462561899.23,
              "StepScalingPolicyConfiguration": {
                  "Cooldown": 60,
                  "StepAdjustments": [
                      {
                          "ScalingAdjustment": 200,
                          "MetricIntervalLowerBound": 0.0
                      }
                  ],
                  "AdjustmentType": "PercentChangeInCapacity"
              },
              "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
              "PolicyType": "StepScaling",
              "Alarms": [
                  {
                      "AlarmName": "web-app-cpu-gt-75",
                      "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:web-app-cpu-gt-75"
                  }
              ],
              "ServiceNamespace": "ecs"
          },
          {
              "PolicyName": "web-app-cpu-lt-25",
              "ScalableDimension": "ecs:service:DesiredCount",
              "ResourceId": "service/default/web-app",
              "CreationTime": 1462562575.099,
              "StepScalingPolicyConfiguration": {
                  "Cooldown": 1,
                  "StepAdjustments": [
                      {
                          "ScalingAdjustment": -50,
                          "MetricIntervalUpperBound": 0.0
                      }
                  ],
                  "AdjustmentType": "PercentChangeInCapacity"
              },
              "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-lt-25",
              "PolicyType": "StepScaling",
              "Alarms": [
                  {
                      "AlarmName": "web-app-cpu-lt-25",
                      "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:web-app-cpu-lt-25"
                  }
              ],
              "ServiceNamespace": "ecs"
          }
      ]
  }