55 "strings"
66)
77
8- /// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
8+ // / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
99const (
1010 highMemoryMetalInstancesMaxVolumes = 19
1111 highMemoryVirtualInstancesMaxVolumes = 27
@@ -14,14 +14,14 @@ const (
1414 nitroMaxAttachments = 28
1515)
1616
17- /// It is possible to have an instance family where the virtualized instances are Nitro
18- /// and metal instances are not
17+ // / It is possible to have an instance family where the virtualized instances are Nitro
18+ // / and metal instances are not
1919var nonNitroInstances = map [string ]struct {}{
2020 "c6i.metal" : {},
2121 "g5g.metal" : {},
2222}
2323
24- /// List of nitro instance types can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
24+ // / List of nitro instance types can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
2525var nonNitroInstanceFamilies = map [string ]struct {}{
2626 "t2" : {},
2727 "c7g" : {},
@@ -63,8 +63,8 @@ func GetMaxAttachments(nitro bool) int {
6363 return nonNitroMaxAttachments
6464}
6565
66- /// Some instance types have a maximum limit of EBS volumes
67- /// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
66+ // / Some instance types have a maximum limit of EBS volumes
67+ // / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
6868var maxVolumeLimits = map [string ]int {
6969 "d3.8xlarge" : 3 ,
7070 "d3.12xlarge" : 3 ,
@@ -111,9 +111,9 @@ func GetNVMeInstanceStoreVolumesForInstanceType(it string) int {
111111 return 0
112112}
113113
114- /// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes
115- /// IMDS does not provide NVMe instance store data; we'll just list all instances here
116- /// TODO: See if we can get these values from DescribeInstanceTypes API
114+ // / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes
115+ // / IMDS does not provide NVMe instance store data; we'll just list all instances here
116+ // / TODO: See if we can get these values from DescribeInstanceTypes API
117117var nvmeInstanceStoreVolumes = map [string ]int {
118118 "c5ad.large" : 1 ,
119119 "c5ad.xlarge" : 1 ,
0 commit comments