CmdID / aws / aws autoscaling
aws autoscaling put-scaling-policy
Creates or updates a scaling policy for an Auto Scaling group. AWS CLI reference
14 options Its page in the AWS CLI reference
Options
--adjustment-typeSpecifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage).--auto-scaling-group-nameThe name of the Auto Scaling group.--cooldownA cooldown period, in seconds, that applies to a specific simple scaling policy.--enabledIndicates whether the scaling policy is enabled or disabled.--estimated-instance-warmupNot needed if the default instance warmup is defined for the group.--metric-aggregation-typeThe aggregation type for the CloudWatch metrics.--min-adjustment-magnitudeThe minimum value to scale by when the adjustment type is PercentChangeInCapacity.--min-adjustment-stepAvailable for backward compatibility.--policy-nameThe name of the policy.--policy-typeOne of the following policy types: TargetTrackingScaling StepScaling SimpleScaling (default) PredictiveScaling--predictive-scaling-configurationA predictive scaling policy.--scaling-adjustmentThe amount by which to scale, based on the specified adjustment type.--step-adjustmentsA set of adjustments that enable you to scale based on the size of the alarm breach.--target-tracking-configurationA target tracking scaling policy.