Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ def test_function_with_capacity_provider_default_role(self):
instance_requirements.get("Architectures", []),
"AdvancedCapacityProvider should have x86_64 architecture",
)
allowed_types = instance_requirements.get("AllowedInstanceTypes", [])
self.assertIn("m5.large", allowed_types, "AdvancedCapacityProvider should allow m5.large")
self.assertIn("m5.xlarge", allowed_types, "AdvancedCapacityProvider should allow m5.xlarge")
self.assertIn("m5.2xlarge", allowed_types, "AdvancedCapacityProvider should allow m5.2xlarge")
excluded_types = instance_requirements.get("ExcludedInstanceTypes", [])
self.assertIn("m6g.xlarge", excluded_types, "AdvancedCapacityProvider should exclude m6g.xlarge")
self.assertIn("m7a.2xlarge", excluded_types, "AdvancedCapacityProvider should exclude m7a.2xlarge")

scaling_config = advanced_cp_config.get("CapacityProviderScalingConfig")
self.assertIsNotNone(scaling_config, "AdvancedCapacityProvider should have scaling configuration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ Resources:
InstanceRequirements:
Architectures:
- x86_64
AllowedTypes:
- m5.large
- m5.xlarge
- m5.2xlarge
ExcludedTypes:
- m6g.xlarge
- m7a.2xlarge
ScalingConfig:
MaxVCpuCount: 64
AverageCPUUtilization: 70
Expand Down