Skip to content

Commit

Permalink
Add tested min values for capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
abuabraham-ttd committed Dec 11, 2024
1 parent e669887 commit 85fc3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aws/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __get_current_region(self) -> str:
def __validate_aws_specific_config(self, secret):
if "enclave_memory_mb" in secret or "enclave_cpu_count" in secret:
max_capacity = self.__get_max_capacity()
min_capacity = {"enclave_memory_mb": 10000, "enclave_cpu_count" : 4 }
min_capacity = {"enclave_memory_mb": 11000, "enclave_cpu_count" : 2 }
for key in ["enclave_memory_mb", "enclave_cpu_count"]:
if int(secret.get(key, 0)) > max_capacity.get(key):
raise ValueError(f"{key} value ({secret.get(key, 0)}) exceeds the maximum allowed ({max_capacity.get(key)}).")
Expand Down

0 comments on commit 85fc3e7

Please sign in to comment.