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:
Sanne Raymaekers 2024-02-14 15:01:43 +01:00
parent f03dac5834
commit 8a1d66a0bd

View file

@ -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{