Skip to content

Commit

Permalink
shore up m6a and c6a support in AWS (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroecco authored Feb 16, 2022
1 parent 97c906b commit 8558acf
Showing 1 changed file with 83 additions and 1 deletion.
84 changes: 83 additions & 1 deletion aws/aws_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ var (
"m5dn": true,
"m5n": true,
"m5zn": true,
"m6a": true,
"m6g": true,
"m6gd": true,
"p3dn": true,
Expand All @@ -387,7 +388,88 @@ var (
}

// Architectures define architecture from instance family
Architectures = map[string]string{"a1": "arm64", "c1": "x86_64", "c3": "x86_64", "c4": "x86_64", "c5": "x86_64", "c5a": "x86_64", "c5ad": "x86_64", "c5d": "x86_64", "c5n": "x86_64", "c6g": "arm64", "c6gd": "arm64", "c6gn": "arm64", "c6i": "x86_64", "c7g": "arm64", "cc2": "x86_64", "d3": "x86_64", "d3en": "x86_64", "dl1": "x86_64", "f1": "x86_64", "g2": "x86_64", "g3": "x86_64", "g3s": "x86_64", "g4ad": "x86_64", "g4dn": "x86_64", "g5": "x86_64", "g5g": "arm64", "h1": "x86_64", "i2": "x86_64", "i3": "x86_64", "i3en": "x86_64", "im4gn": "arm64", "inf1": "x86_64", "is4gen": "arm64", "m1": "x86_64", "m2": "x86_64", "m3": "x86_64", "m4": "x86_64", "m5": "x86_64", "m5a": "x86_64", "m5ad": "x86_64", "m5d": "x86_64", "m5dn": "x86_64", "m5n": "x86_64", "m5zn": "x86_64", "m6a": "x86_64", "m6g": "arm64", "m6gd": "arm64", "m6i": "x86_64", "mac1": "x86_64_mac", "p2": "x86_64", "p3": "x86_64", "p3dn": "x86_64", "p4d": "x86_64", "r3": "x86_64", "r4": "x86_64", "r5": "x86_64", "r5a": "x86_64", "r5ad": "x86_64", "r5b": "x86_64", "r5d": "x86_64", "r5dn": "x86_64", "r5n": "x86_64", "r6g": "arm64", "r6gd": "arm64", "r6i": "x86_64", "t1": "i386,", "t2": "x86_64", "t3": "x86_64", "t3a": "x86_64", "t4g": "arm64", "u-12tb1": "x86_64", "u-6tb1": "x86_64", "u-9tb1": "x86_64", "vt1": "x86_64", "x1": "x86_64", "x1e": "x86_64", "x2gd": "arm64", "x2iezn": "x86_64", "z1d": "x86_64"}
Architectures = map[string]string{
"a1": "arm64",
"c1": "x86_64",
"c3": "x86_64",
"c4": "x86_64",
"c5": "x86_64",
"c5a": "x86_64",
"c5ad": "x86_64",
"c5d": "x86_64",
"c5n": "x86_64",
"c6a": "x86_64",
"c6g": "arm64",
"c6gd": "arm64",
"c6gn": "arm64",
"c6i": "x86_64",
"c7g": "arm64",
"cc2": "x86_64",
"d3": "x86_64",
"d3en": "x86_64",
"dl1": "x86_64",
"f1": "x86_64",
"g2": "x86_64",
"g3": "x86_64",
"g3s": "x86_64",
"g4ad": "x86_64",
"g4dn": "x86_64",
"g5": "x86_64",
"g5g": "arm64",
"h1": "x86_64",
"i2": "x86_64",
"i3": "x86_64",
"i3en": "x86_64",
"im4gn": "arm64",
"inf1": "x86_64",
"is4gen": "arm64",
"m1": "x86_64",
"m2": "x86_64",
"m3": "x86_64",
"m4": "x86_64",
"m5": "x86_64",
"m5a": "x86_64",
"m5ad": "x86_64",
"m5d": "x86_64",
"m5dn": "x86_64",
"m5n": "x86_64",
"m5zn": "x86_64",
"m6a": "x86_64",
"m6g": "arm64",
"m6gd": "arm64",
"m6i": "x86_64",
"mac1": "x86_64_mac",
"p2": "x86_64",
"p3": "x86_64",
"p3dn": "x86_64",
"p4d": "x86_64",
"r3": "x86_64",
"r4": "x86_64",
"r5": "x86_64",
"r5a": "x86_64",
"r5ad": "x86_64",
"r5b": "x86_64",
"r5d": "x86_64",
"r5dn": "x86_64",
"r5n": "x86_64",
"r6g": "arm64",
"r6gd": "arm64",
"r6i": "x86_64",
"t1": "i386,",
"t2": "x86_64",
"t3": "x86_64",
"t3a": "x86_64",
"t4g": "arm64",
"u-12tb1": "x86_64",
"u-6tb1": "x86_64",
"u-9tb1": "x86_64",
"vt1": "x86_64",
"x1": "x86_64",
"x1e": "x86_64",
"x2gd": "arm64",
"x2iezn": "x86_64",
"z1d": "x86_64",
}

// GravitonProcessors are designed by AWS to deliver the best price performance for your cloud workloads running in Amazon EC2
GravitonProcessors = map[string]bool{"a1": true, "c6g": true, "c6gd": true, "c6gn": true, "c7g": true, "g5g": true, "im4gn": true, "is4gen": true, "m6g": true, "m6gd": true, "r6g": true, "r6gd": true, "t4g": true, "x2gd": true}
Expand Down

0 comments on commit 8558acf

Please sign in to comment.