【发布时间】:2019-09-23 19:21:44
【问题描述】:
我正在关注 Auto Scaling Groups with Multiple Instance Types and Purchase Options - Amazon EC2 Auto Scaling 创建一个具有不同 ec2 类型(队列)的自动缩放组,但得到一个错误回报。
这在region=eu-west-1 中还没有激活吗?
即使使用文章中的相同示例,返回相同:
/usr/local/aws/bin/aws autoscaling create-auto-scaling-group --auto-scaling-group-name tmp-eli --cli-input-json
'{"AutoScalingGroupName":"tmp-eli","MixedInstancesPolicy":{"LaunchTemplate":{
"LaunchTemplateSpecification":{"LaunchTemplateName":"lt-10349","Version":"v1"},"
Overrides":[{"InstanceType":"c4.2xlarge"},{"InstanceType":"c5.2xlarge"},{"InstanceType":"c5d.2xlarge"}]},"InstancesDistribution":{"OnDemandBaseCapacity":0,"OnDemandPercentageAboveBaseCapacity":50,"SpotInstancePools":2}},"MinSize":2,"MaxSize":100,"DesiredCapacity":4,"VPCZoneIdentifier":"subnet-ae6a6ed8,subnet-aa2c6ef2,s
ubnet-07c8ce63","Tags":[]}' --output json
错误:
参数验证失败:
输入中的未知参数:“MixedInstancesPolicy”,必须是以下之一:AutoScalingGroupName、LaunchConfigurationName、LaunchTemplate、InstanceId、MinSize、MaxSize、DesiredCapacity、DefaultCooldown、AvailabilityZones、LoadBalancerNames、TargetGroupARNs、HealthCheckType、HealthCheckGracePeriod、PlacementGroup、VPCZoneIdentifier、TerminationPolicies、NewInstancesProtectedFromScaleIn , LifecycleHookSpecificationList, 标签
有什么想法吗?
【问题讨论】:
-
您是否使用 UI 创建了启动配置?
-
不,使用 cli
标签: amazon-web-services aws-cli fleet