Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS自动缩放策略CLI_Amazon Web Services_Autoscaling - Fatal编程技术网

Amazon web services AWS自动缩放策略CLI

Amazon web services AWS自动缩放策略CLI,amazon-web-services,autoscaling,Amazon Web Services,Autoscaling,我提出了一个非常简单的请求,但我一直收到一个验证错误,无法找出哪里出了问题 ~ 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 PutS

我提出了一个非常简单的请求,但我一直收到一个验证错误,无法找出哪里出了问题

~ 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].
我甚至尝试过复制和粘贴“ChangeCapability”,以确保没有错误。请告诉我我做错了什么。谢谢

试试这个:

aws autoscaling put-scaling-policy --auto-scaling-group-name MY_GROUP --policy-name KILL-TWO-SERVERS --adjustment-type ChangeInCapacity --scaling-adjustment -2