create-auto-scaling-group with MixedInstancesPolicy

0

i am following this guide https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html

to create auto-scale group with different type of ec2 types , (fleet) but getting error in return.
is this not active yet in region=eu-west-1 ?

even using there example return same error:
/usr/local/aws/bin/aws autosc
aling create-auto-scaling-group --auto-scaling-group-name tmp-eli --cli-input-js
on '{"AutoScalingGroupName":"tmp-eli","MixedInstancesPolicy":{"LaunchTemplate":{
"LaunchTemplateSpecification":{"LaunchTemplateName":"lt-10349","Version":"v1"},"
Overrides":[{"InstanceType":"c4.2xlarge"},{"InstanceType":"c5.2xlarge"},{"Instan
ceType":"c5d.2xlarge"}]},"InstancesDistribution":{"OnDemandBaseCapacity":0,"OnDe
mandPercentageAboveBaseCapacity":50,"SpotInstancePools":2}},"MinSize":2,"MaxSize
":100,"DesiredCapacity":4,"VPCZoneIdentifier":"subnet-ae6a6ed8,subnet-aa2c6ef2,s
ubnet-07c8ce63","Tags":[]}' --output json

Parameter validation failed:
Unknown parameter in input: "MixedInstancesPolicy", must be one of: AutoScalingGroupName, LaunchConfigurationName, LaunchTemplate, InstanceId, MinSize, MaxSize, DesiredCapacity, DefaultCooldown, AvailabilityZones, LoadBalancerNames, TargetGroupARNs, HealthCheckType, HealthCheckGracePeriod, PlacementGroup, VPCZoneIdentifier, TerminationPolicies, NewInstancesProtectedFromScaleIn, LifecycleHookSpecificationList, Tags

any idea?

eli

질문됨 5년 전440회 조회
1개 답변
0

it's turned out the version of the awscli should be newer , 1.16 at least

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠