我提出了一个非常简单的请求,但我不断收到验证错误,无法弄清楚出了什么问题。
~ aws autoscaling put-scaling-policy --auto-scaling-group-name MY_GROUP --policy-name KILL-TWO-SERVERS --adjustment-type ChangeInCapacity --adjustment=-2
An error occurred (ValidationError) when calling the PutScalingPolicy operation: Valid adjustment types are: [PercentChangeInCapacity, ChangeInCapacity, ExactCapacity].
我什至尝试复制并粘贴“ ChangeInCapacity”以确保没有错误。请告诉我我在做什么错。谢谢!
答案 0 :(得分:1)
尝试一下:
aws autoscaling put-scaling-policy --auto-scaling-group-name MY_GROUP --policy-name KILL-TWO-SERVERS --adjustment-type ChangeInCapacity --scaling-adjustment -2