You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic instance requirements produce invalid EC2 Fleet overrides #5315
Dynamic EC2 labels can populate InstanceRequirements so a workflow can request a CPU and memory shape while EC2 Fleet chooses among multiple eligible instance families.
generateFleetOverrides currently iterates the statically configured instance types and adds an InstanceType to every override before spreading the dynamic override configuration. When dynamic labels provide InstanceRequirements, each resulting Fleet override contains both fields.
AWS requires InstanceType and InstanceRequirements to be mutually exclusive within an override, so CreateFleet rejects the request. The labels parse successfully, but no runner launches.
Expected behavior
Fixed instance selection should continue to produce one override per subnet and configured instance type.
Attribute-based selection should produce one InstanceRequirements-only override per subnet, allowing Fleet to choose an eligible type.
A request that explicitly contains both selection modes should fail before calling AWS.
Reproduction
Enable dynamic labels and submit a job with valid vCPU and memory requirement labels, for example:
The generated Fleet override combines a static InstanceType with the parsed InstanceRequirements, resulting in an invalid request.
Additional validation
A requirements-only Spot Fleet request using the same launch-template boundary was accepted by AWS and selected an eligible instance family, confirming that omitting the static InstanceType is the required request shape.
Activity
fix(runners): support instance requirements in EC2 Fleet overrides (g…