Skip to content

Commit

Permalink
Support m6g and newer c5 types (#76)
Browse files Browse the repository at this point in the history
AWS added some more instance types, we should make sure to support
them in the driver lookup.
  • Loading branch information
theatrus authored Dec 16, 2019
1 parent cfc3841 commit b64dc4a
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions aws/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func init() {
"a1.xlarge": {4, 15, 15},
"a1.2xlarge": {4, 15, 15},
"a1.4xlarge": {8, 30, 30},
"a1.metal": {8, 30, 30},
"c1.medium": {2, 6, 0},
"c1.xlarge": {4, 15, 0},
"c3.large": {3, 10, 10},
Expand All @@ -40,13 +41,18 @@ func init() {
"c5.2xlarge": {4, 15, 15},
"c5.4xlarge": {8, 30, 30},
"c5.9xlarge": {8, 30, 30},
"c5.12xlarge": {8, 30, 30},
"c5.18xlarge": {15, 50, 50},
"c5.24xlarge": {15, 50, 50},
"c5.metal": {15, 50, 50},
"c5d.large": {3, 10, 10},
"c5d.xlarge": {4, 15, 15},
"c5d.2xlarge": {4, 15, 15},
"c5d.4xlarge": {8, 30, 30},
"c5d.9xlarge": {8, 30, 30},
"c5d.12xlarge": {8, 30, 30},
"c5d.18xlarge": {15, 50, 50},
"c5d.24xlarge": {15, 50, 50},
"c5n.large": {4, 15, 15},
"c5n.xlarge": {4, 15, 15},
"c5n.2xlarge": {4, 15, 15},
Expand Down Expand Up @@ -134,6 +140,33 @@ func init() {
"m5d.12xlarge": {8, 30, 30},
"m5d.24xlarge": {15, 50, 50},
"m5d.metal": {15, 50, 50},
"m5dn.large": {3, 10, 10},
"m5dn.xlarge": {4, 15, 15},
"m5dn.2xlarge": {4, 15, 15},
"m5dn.4xlarge": {8, 30, 30},
"m5dn.8xlarge": {8, 30, 30},
"m5dn.12xlarge": {8, 30, 30},
"m5dn.16xlarge": {8, 30, 30},
"m5dn.24xlarge": {15, 50, 50},
"m5n.large": {3, 10, 10},
"m5n.xlarge": {4, 15, 15},
"m5n.2xlarge": {4, 15, 15},
"m5n.4xlarge": {8, 30, 30},
"m5n.8xlarge": {8, 30, 30},
"m5n.12xlarge": {8, 30, 30},
"m5n.16xlarge": {8, 30, 30},
"m5n.24xlarge": {15, 50, 50},
// NOTE: m6g family are educated guesses based on a1,
// as there is no official guidance from AWS on ENI
// limits.
"m6g.medium": {2, 4, 4},
"m6g.large": {3, 10, 10},
"m6g.xlarge": {4, 15, 15},
"m6g.2xlarge": {4, 15, 15},
"m6g.4xlarge": {8, 30, 30},
"m6g.8xlarge": {8, 30, 30},
"m6g.12xlarge": {8, 30, 30},
"m6g.16xlarge": {8, 30, 30},
"p2.xlarge": {4, 15, 15},
"p2.8xlarge": {8, 30, 30},
"p2.16xlarge": {8, 30, 30},
Expand Down Expand Up @@ -178,6 +211,22 @@ func init() {
"r5d.12xlarge": {8, 30, 30},
"r5d.24xlarge": {15, 50, 50},
"r5d.metal": {15, 50, 50},
"r5dn.large": {3, 10, 10},
"r5dn.xlarge": {4, 15, 15},
"r5dn.2xlarge": {4, 15, 15},
"r5dn.4xlarge": {8, 30, 30},
"r5dn.8xlarge": {8, 30, 30},
"r5dn.12xlarge": {8, 30, 30},
"r5dn.16xlarge": {8, 30, 30},
"r5dn.24xlarge": {15, 50, 50},
"r5n.large": {3, 10, 10},
"r5n.xlarge": {4, 15, 15},
"r5n.2xlarge": {4, 15, 15},
"r5n.4xlarge": {8, 30, 30},
"r5n.8xlarge": {8, 30, 30},
"r5n.12xlarge": {8, 30, 30},
"r5n.16xlarge": {8, 30, 30},
"r5n.24xlarge": {15, 50, 50},
"t1.micro": {2, 2, 0},
"t2.nano": {2, 2, 2},
"t2.micro": {2, 2, 2},
Expand All @@ -203,6 +252,8 @@ func init() {
"u-6tb1.metal": {5, 30, 30},
"u-9tb1.metal": {5, 30, 30},
"u-12tb1.metal": {5, 30, 30},
"u-18tb1.metal": {15, 50, 50},
"u-24tb1.metal": {15, 50, 50},
"x1.16xlarge": {8, 30, 30},
"x1.32xlarge": {8, 30, 30},
"x1e.xlarge": {3, 10, 10},
Expand Down

0 comments on commit b64dc4a

Please sign in to comment.