diff --git a/inspector/inspector.py b/inspector/inspector.py index 73b8871..1e9bde3 100644 --- a/inspector/inspector.py +++ b/inspector/inspector.py @@ -16,151 +16,151 @@ logging.basicConfig(stream=sys.stdout, level=logging.INFO) -EXCLUDE_INSTANCES: list[list[str]] = [ - ["aws", "a1.metal"], - ["aws", "c7i-flex.4xlarge"], - ["aws", "c7i-flex.8xlarge"], - ["aws", "dl1.24xlarge"], - ["aws", "f1.16xlarge"], - ["aws", "f1.4xlarge"], - ["aws", "g3.16xlarge"], - ["aws", "g3.4xlarge"], - ["aws", "g3.8xlarge"], - ["aws", "g3s.xlarge"], - ["aws", "g4ad.16xlarge"], - ["aws", "g4ad.2xlarge"], - ["aws", "g4ad.4xlarge"], - ["aws", "g4ad.8xlarge"], - ["aws", "g4ad.xlarge"], - ["aws", "g4dn.12xlarge"], - ["aws", "g4dn.16xlarge"], - ["aws", "g4dn.2xlarge"], - ["aws", "g4dn.4xlarge"], - ["aws", "g4dn.8xlarge"], - ["aws", "g4dn.metal"], - ["aws", "g4dn.xlarge"], - ["aws", "g5.12xlarge"], - ["aws", "g5.16xlarge"], - ["aws", "g5.24xlarge"], - ["aws", "g5.2xlarge"], - ["aws", "g5.48xlarge"], - ["aws", "g5.4xlarge"], - ["aws", "g5.8xlarge"], - ["aws", "g5g.16xlarge"], - ["aws", "g5g.4xlarge"], - ["aws", "g5g.8xlarge"], - ["aws", "g5g.metal"], - ["aws", "g6.12xlarge"], - ["aws", "g6.16xlarge"], - ["aws", "g6.24xlarge"], - ["aws", "g6.2xlarge"], - ["aws", "g6.48xlarge"], - ["aws", "g6.4xlarge"], - ["aws", "g6.8xlarge"], - ["aws", "g6.xlarge"], - ["aws", "gr6.4xlarge"], - ["aws", "gr6.8xlarge"], - ["aws", "h1.16xlarge"], - ["aws", "h1.4xlarge"], - ["aws", "h1.8xlarge"], - ["aws", "hpc6a.48xlarge"], - ["aws", "hpc6id.32xlarge"], - ["aws", "hpc7a.12xlarge"], - ["aws", "hpc7a.24xlarge"], - ["aws", "hpc7a.48xlarge"], - ["aws", "hpc7a.96xlarge"], - ["aws", "hpc7g.16xlarge"], - ["aws", "hpc7g.4xlarge"], - ["aws", "hpc7g.8xlarge"], - ["aws", "i4i.32xlarge"], - ["aws", "inf1.24xlarge"], - ["aws", "inf1.2xlarge"], - ["aws", "inf1.6xlarge"], - ["aws", "inf1.xlarge"], - ["aws", "inf2.24xlarge"], - ["aws", "inf2.48xlarge"], - ["aws", "inf2.8xlarge"], - ["aws", "inf2.xlarge"], - ["aws", "p2.16xlarge"], - ["aws", "p2.8xlarge"], - ["aws", "p2.xlarge"], - ["aws", "p3.16xlarge"], - ["aws", "p3.2xlarge"], - ["aws", "p3.8xlarge"], - ["aws", "p3dn.24xlarge"], - ["aws", "p4d.24xlarge"], - ["aws", "p4de.24xlarge"], - ["aws", "p5.48xlarge"], - ["aws", "r5a.24xlarge"], - ["aws", "r6a.2xlarge"], - ["aws", "r6a.32xlarge"], - ["aws", "r6a.48xlarge"], - ["aws", "r7a.24xlarge"], - ["aws", "r7a.48xlarge"], - ["aws", "r7a.medium"], - ["aws", "r7a.metal-48xl"], - ["aws", "r7iz.32xlarge"], - ["aws", "r7iz.4xlarge"], - ["aws", "r7iz.xlarge"], - ["aws", "t1.micro"], - ["aws", "t2.micro"], - ["aws", "t2.nano"], - ["aws", "t3a.micro"], - ["aws", "t3a.nano"], - ["aws", "t3.nano"], - ["aws", "t4g.nano"], - ["aws", "trn1.2xlarge"], - ["aws", "trn1.32xlarge"], - ["aws", "trn1n.32xlarge"], - ["aws", "u-12tb1.112xlarge"], - ["aws", "u-18tb1.112xlarge"], - ["aws", "u-24tb1.112xlarge"], - ["aws", "u-3tb1.56xlarge"], - ["aws", "u-6tb1.112xlarge"], - ["aws", "u-6tb1.56xlarge"], - ["aws", "u7i-12tb.224xlarge"], - ["aws", "u7in-16tb.224xlarge"], - ["aws", "u7in-24tb.224xlarge"], - ["aws", "u7in-32tb.224xlarge"], - ["aws", "u-9tb1.112xlarge"], - ["aws", "vt1.24xlarge"], - ["aws", "vt1.3xlarge"], - ["aws", "vt1.6xlarge"], - ["aws", "x1.16xlarge"], - ["aws", "x1.32xlarge"], - ["aws", "x1e.16xlarge"], - ["aws", "x1e.2xlarge"], - ["aws", "x1e.32xlarge"], - ["aws", "x1e.4xlarge"], - ["aws", "x1e.8xlarge"], - ["aws", "x1e.xlarge"], - ["aws", "x2gd.12xlarge"], - ["aws", "x2gd.16xlarge"], - ["aws", "x2gd.2xlarge"], - ["aws", "x2gd.4xlarge"], - ["aws", "x2gd.8xlarge"], - ["aws", "x2gd.large"], - ["aws", "x2gd.medium"], - ["aws", "x2gd.metal"], - ["aws", "x2gd.xlarge"], - ["aws", "x2idn.16xlarge"], - ["aws", "x2idn.24xlarge"], - ["aws", "x2idn.32xlarge"], - ["aws", "x2idn.metal"], - ["aws", "x2iedn.16xlarge"], - ["aws", "x2iedn.24xlarge"], - ["aws", "x2iedn.2xlarge"], - ["aws", "x2iedn.32xlarge"], - ["aws", "x2iedn.4xlarge"], - ["aws", "x2iedn.8xlarge"], - ["aws", "x2iedn.metal"], - ["aws", "x2iedn.xlarge"], - ["aws", "x2iezn.12xlarge"], - ["aws", "x2iezn.2xlarge"], - ["aws", "x2iezn.4xlarge"], - ["aws", "x2iezn.6xlarge"], - ["aws", "x2iezn.8xlarge"], - ["aws", "x2iezn.metal"], +EXCLUDE_INSTANCES: list[tuple[str, str]] = [ + ("aws", "a1.metal"), + ("aws", "c7i-flex.4xlarge"), + ("aws", "c7i-flex.8xlarge"), + ("aws", "dl1.24xlarge"), + ("aws", "f1.16xlarge"), + ("aws", "f1.4xlarge"), + ("aws", "g3.16xlarge"), + ("aws", "g3.4xlarge"), + ("aws", "g3.8xlarge"), + ("aws", "g3s.xlarge"), + ("aws", "g4ad.16xlarge"), + ("aws", "g4ad.2xlarge"), + ("aws", "g4ad.4xlarge"), + ("aws", "g4ad.8xlarge"), + ("aws", "g4ad.xlarge"), + ("aws", "g4dn.12xlarge"), + ("aws", "g4dn.16xlarge"), + ("aws", "g4dn.2xlarge"), + ("aws", "g4dn.4xlarge"), + ("aws", "g4dn.8xlarge"), + ("aws", "g4dn.metal"), + ("aws", "g4dn.xlarge"), + ("aws", "g5.12xlarge"), + ("aws", "g5.16xlarge"), + ("aws", "g5.24xlarge"), + ("aws", "g5.2xlarge"), + ("aws", "g5.48xlarge"), + ("aws", "g5.4xlarge"), + ("aws", "g5.8xlarge"), + ("aws", "g5g.16xlarge"), + ("aws", "g5g.4xlarge"), + ("aws", "g5g.8xlarge"), + ("aws", "g5g.metal"), + ("aws", "g6.12xlarge"), + ("aws", "g6.16xlarge"), + ("aws", "g6.24xlarge"), + ("aws", "g6.2xlarge"), + ("aws", "g6.48xlarge"), + ("aws", "g6.4xlarge"), + ("aws", "g6.8xlarge"), + ("aws", "g6.xlarge"), + ("aws", "gr6.4xlarge"), + ("aws", "gr6.8xlarge"), + ("aws", "h1.16xlarge"), + ("aws", "h1.4xlarge"), + ("aws", "h1.8xlarge"), + ("aws", "hpc6a.48xlarge"), + ("aws", "hpc6id.32xlarge"), + ("aws", "hpc7a.12xlarge"), + ("aws", "hpc7a.24xlarge"), + ("aws", "hpc7a.48xlarge"), + ("aws", "hpc7a.96xlarge"), + ("aws", "hpc7g.16xlarge"), + ("aws", "hpc7g.4xlarge"), + ("aws", "hpc7g.8xlarge"), + ("aws", "i4i.32xlarge"), + ("aws", "inf1.24xlarge"), + ("aws", "inf1.2xlarge"), + ("aws", "inf1.6xlarge"), + ("aws", "inf1.xlarge"), + ("aws", "inf2.24xlarge"), + ("aws", "inf2.48xlarge"), + ("aws", "inf2.8xlarge"), + ("aws", "inf2.xlarge"), + ("aws", "p2.16xlarge"), + ("aws", "p2.8xlarge"), + ("aws", "p2.xlarge"), + ("aws", "p3.16xlarge"), + ("aws", "p3.2xlarge"), + ("aws", "p3.8xlarge"), + ("aws", "p3dn.24xlarge"), + ("aws", "p4d.24xlarge"), + ("aws", "p4de.24xlarge"), + ("aws", "p5.48xlarge"), + ("aws", "r5a.24xlarge"), + ("aws", "r6a.2xlarge"), + ("aws", "r6a.32xlarge"), + ("aws", "r6a.48xlarge"), + ("aws", "r7a.24xlarge"), + ("aws", "r7a.48xlarge"), + ("aws", "r7a.medium"), + ("aws", "r7a.metal-48xl"), + ("aws", "r7iz.32xlarge"), + ("aws", "r7iz.4xlarge"), + ("aws", "r7iz.xlarge"), + ("aws", "t1.micro"), + ("aws", "t2.micro"), + ("aws", "t2.nano"), + ("aws", "t3a.micro"), + ("aws", "t3a.nano"), + ("aws", "t3.nano"), + ("aws", "t4g.nano"), + ("aws", "trn1.2xlarge"), + ("aws", "trn1.32xlarge"), + ("aws", "trn1n.32xlarge"), + ("aws", "u-12tb1.112xlarge"), + ("aws", "u-18tb1.112xlarge"), + ("aws", "u-24tb1.112xlarge"), + ("aws", "u-3tb1.56xlarge"), + ("aws", "u-6tb1.112xlarge"), + ("aws", "u-6tb1.56xlarge"), + ("aws", "u7i-12tb.224xlarge"), + ("aws", "u7in-16tb.224xlarge"), + ("aws", "u7in-24tb.224xlarge"), + ("aws", "u7in-32tb.224xlarge"), + ("aws", "u-9tb1.112xlarge"), + ("aws", "vt1.24xlarge"), + ("aws", "vt1.3xlarge"), + ("aws", "vt1.6xlarge"), + ("aws", "x1.16xlarge"), + ("aws", "x1.32xlarge"), + ("aws", "x1e.16xlarge"), + ("aws", "x1e.2xlarge"), + ("aws", "x1e.32xlarge"), + ("aws", "x1e.4xlarge"), + ("aws", "x1e.8xlarge"), + ("aws", "x1e.xlarge"), + ("aws", "x2gd.12xlarge"), + ("aws", "x2gd.16xlarge"), + ("aws", "x2gd.2xlarge"), + ("aws", "x2gd.4xlarge"), + ("aws", "x2gd.8xlarge"), + ("aws", "x2gd.large"), + ("aws", "x2gd.medium"), + ("aws", "x2gd.metal"), + ("aws", "x2gd.xlarge"), + ("aws", "x2idn.16xlarge"), + ("aws", "x2idn.24xlarge"), + ("aws", "x2idn.32xlarge"), + ("aws", "x2idn.metal"), + ("aws", "x2iedn.16xlarge"), + ("aws", "x2iedn.24xlarge"), + ("aws", "x2iedn.2xlarge"), + ("aws", "x2iedn.32xlarge"), + ("aws", "x2iedn.4xlarge"), + ("aws", "x2iedn.8xlarge"), + ("aws", "x2iedn.metal"), + ("aws", "x2iedn.xlarge"), + ("aws", "x2iezn.12xlarge"), + ("aws", "x2iezn.2xlarge"), + ("aws", "x2iezn.4xlarge"), + ("aws", "x2iezn.6xlarge"), + ("aws", "x2iezn.8xlarge"), + ("aws", "x2iezn.metal"), ] RESOURCE_OPTS = {