cloud/awscloud: max 4 overrides are allowed when creating a fleet
``` InvalidParameterValue: Your request contains more than the maximum allowed number of InstanceRequirements (4) ```
This commit is contained in:
parent
f03dac5834
commit
8a1d66a0bd
1 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ func (a *AWS) RunSecureInstance(iamProfile string) (*SecureInstance, error) {
|
|||
})
|
||||
availZones[az] = struct{}{}
|
||||
}
|
||||
// A maximum of 4 overrides are allowed
|
||||
if len(overrides) == 4 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
createFleetOutput, err := a.ec2.CreateFleet(&ec2.CreateFleetInput{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue