Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(batch): remove default optimal for arm based instance types and a…
…dd error checks (#31510) ### Issue # (if applicable) Closes #31148 ### Reason for this change When adding an arm-based instance, optimal instance is set by default which consists of an x86-based instance. This causes errors since arm and x86 instances can't be mixed together. ### Description of changes - useOptimalInstanceClasses is set to false for all arm-based instances - Throws error when trying to mix x86 and arm instances - Case 1: Instantiating the class - Case 2: addInstanceClass and addInstanceType functions - Warning useOptimalInstanceClasses is being set to false for arm-based instances ### Description of how you validated changes - Unit test where optimal doesn't get added for arm-based instances - Unit tests to display errors when instantiating the class - Unit tests to display errors when addInstanceClass and addInstanceType is adding mixed instances - Unit tests to display warning for arm based instances ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https:/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https:/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information