Skip to content
Permalink
Browse files

Update map of EC2 instance types (#647)

  • Loading branch information
tlake authored and diemonster committed Oct 14, 2019
1 parent 36a788e commit 69a0a620354c356ab7468990b6594b87e4832e50
Showing with 226 additions and 41 deletions.
  1. +226 −41 common/aws/ec2/ec2.go
@@ -47,47 +47,232 @@ type EC2Internal interface {

// https://aws.amazon.com/ec2/instance-types/
var InstanceSizes = map[string]bytesize.Bytesize{
"t2.nano": 0.5 * bytesize.GiB,
"t2.micro": 1 * bytesize.GiB,
"t2.small": 2 * bytesize.GiB,
"t2.medium": 4 * bytesize.GiB,
"t2.large": 8 * bytesize.GiB,
"m4.large": 8 * bytesize.GiB,
"m4.xlarge": 16 * bytesize.GiB,
"m4.2xlarge": 32 * bytesize.GiB,
"m4.4xlarge": 64 * bytesize.GiB,
"m4.10xlarge": 160 * bytesize.GiB,
"m3.medium": 3.75 * bytesize.GiB,
"m3.large": 7.5 * bytesize.GiB,
"m3.xlarge": 15 * bytesize.GiB,
"m3.2xlarge": 30 * bytesize.GiB,
"c4.large": 3.75 * bytesize.GiB,
"c4.xlarge": 7.5 * bytesize.GiB,
"c4.2xlarge": 15 * bytesize.GiB,
"c4.4xlarge": 30 * bytesize.GiB,
"c4.8xlarge": 60 * bytesize.GiB,
"c3.large": 3.75 * bytesize.GiB,
"c3.xlarge": 7.5 * bytesize.GiB,
"c3.2xlarge": 15 * bytesize.GiB,
"c3.4xlarge": 30 * bytesize.GiB,
"c3.8xlarge": 60 * bytesize.GiB,
"g2.2xlarge": 15 * bytesize.GiB,
"g2.8xlarge": 60 * bytesize.GiB,
"x1.32xlarge": 1952 * bytesize.GiB,
"r3.large": 15.25 * bytesize.GiB,
"r3.xlarge": 30.5 * bytesize.GiB,
"r3.2xlarge": 61 * bytesize.GiB,
"r3.4xlarge": 122 * bytesize.GiB,
"r3.8xlarge": 244 * bytesize.GiB,
"i3.large": 15.25 * bytesize.GiB,
"i3.xlarge": 30.5 * bytesize.GiB,
"i3.2xlarge": 61 * bytesize.GiB,
"i3.4xlarge": 122 * bytesize.GiB,
"i3.8xlarge": 244 * bytesize.GiB,
"d2.xlarge": 30.5 * bytesize.GiB,
"d2.2xlarge": 61 * bytesize.GiB,
"d2.4xlarge": 122 * bytesize.GiB,
"d2.8xlarge": 244 * bytesize.GiB,
"a1.medium": 2 * bytesize.GiB,
"a1.large": 4 * bytesize.GiB,
"a1.xlarge": 8 * bytesize.GiB,
"a1.2xlarge": 16 * bytesize.GiB,
"a1.4xlarge": 32 * bytesize.GiB,
"c1.medium": 1.7 * bytesize.GiB,
"c1.xlarge": 7 * bytesize.GiB,
"c3.large": 3.75 * bytesize.GiB,
"c3.xlarge": 7.5 * bytesize.GiB,
"c3.2xlarge": 15 * bytesize.GiB,
"c3.4xlarge": 30 * bytesize.GiB,
"c3.8xlarge": 60 * bytesize.GiB,
"c4.large": 3.75 * bytesize.GiB,
"c4.xlarge": 7.5 * bytesize.GiB,
"c4.2xlarge": 15 * bytesize.GiB,
"c4.4xlarge": 30 * bytesize.GiB,
"c4.8xlarge": 60 * bytesize.GiB,
"c5.large": 4 * bytesize.GiB,
"c5.xlarge": 8 * bytesize.GiB,
"c5.2xlarge": 16 * bytesize.GiB,
"c5.4xlarge": 32 * bytesize.GiB,
"c5.9xlarge": 72 * bytesize.GiB,
"c5.12xlarge": 96 * bytesize.GiB,
"c5.18xlarge": 144 * bytesize.GiB,
"c5.24xlarge": 192 * bytesize.GiB,
"c5.metal": 192 * bytesize.GiB,
"c5d.large": 4 * bytesize.GiB,
"c5d.xlarge": 8 * bytesize.GiB,
"c5d.2xlarge": 16 * bytesize.GiB,
"c5d.4xlarge": 32 * bytesize.GiB,
"c5d.9xlarge": 72 * bytesize.GiB,
"c5d.18xlarge": 144 * bytesize.GiB,
"c5n.large": 5.25 * bytesize.GiB,
"c5n.xlarge": 10.5 * bytesize.GiB,
"c5n.2xlarge": 21 * bytesize.GiB,
"c5n.4xlarge": 42 * bytesize.GiB,
"c5n.9xlarge": 96 * bytesize.GiB,
"c5n.18xlarge": 192 * bytesize.GiB,
"c5n.metal": 192 * bytesize.GiB,
"cc2.8xlarge": 60.5 * bytesize.GiB,
"cr1.8xlarge": 244 * bytesize.GiB,
"d2.xlarge": 30.5 * bytesize.GiB,
"d2.2xlarge": 61 * bytesize.GiB,
"d2.4xlarge": 122 * bytesize.GiB,
"d2.8xlarge": 244 * bytesize.GiB,
"f1.2xlarge": 122 * bytesize.GiB,
"f1.4xlarge": 244 * bytesize.GiB,
"f1.16xlarge": 976 * bytesize.GiB,
"g2.2xlarge": 15 * bytesize.GiB,
"g2.8xlarge": 60 * bytesize.GiB,
"g3.4xlarge": 122 * bytesize.GiB,
"g3.8xlarge": 244 * bytesize.GiB,
"g3.16xlarge": 488 * bytesize.GiB,
"g3s.xlarge": 30.5 * bytesize.GiB,
"g4dn.xlarge": 16 * bytesize.GiB,
"g4dn.2xlarge": 32 * bytesize.GiB,
"g4dn.4xlarge": 64 * bytesize.GiB,
"g4dn.8xlarge": 128 * bytesize.GiB,
"g4dn.16xlarge": 256 * bytesize.GiB,
"g4dn.12xlarge": 192 * bytesize.GiB,
"g4dn.metal": 384 * bytesize.GiB, // "coming soon" as of 2019/10/11
"h1.2xlarge": 32 * bytesize.GiB,
"h1.4xlarge": 64 * bytesize.GiB,
"h1.8xlarge": 128 * bytesize.GiB,
"h1.16xlarge": 256 * bytesize.GiB,
"hs1.8xlarge": 117 * bytesize.GiB,
"i2.xlarge": 30.5 * bytesize.GiB,
"i2.2xlarge": 61 * bytesize.GiB,
"i2.4xlarge": 122 * bytesize.GiB,
"i2.8xlarge": 244 * bytesize.GiB,
"i3.large": 15.25 * bytesize.GiB,
"i3.xlarge": 30.5 * bytesize.GiB,
"i3.2xlarge": 61 * bytesize.GiB,
"i3.4xlarge": 122 * bytesize.GiB,
"i3.8xlarge": 244 * bytesize.GiB,
"i3.16xlarge": 488 * bytesize.GiB,
"i3.metal": 512 * bytesize.GiB,
"i3en.large": 16 * bytesize.GiB,
"i3en.xlarge": 32 * bytesize.GiB,
"i3en.2xlarge": 64 * bytesize.GiB,
"i3en.3xlarge": 96 * bytesize.GiB,
"i3en.6xlarge": 192 * bytesize.GiB,
"i3en.12xlarge": 384 * bytesize.GiB,
"i3en.24xlarge": 768 * bytesize.GiB,
"i3en.metal": 768 * bytesize.GiB,
"m1.small": 1.7 * bytesize.GiB,
"m1.medium": 3.75 * bytesize.GiB,
"m1.large": 7.5 * bytesize.GiB,
"m1.xlarge": 15 * bytesize.GiB,
"m2.xlarge": 17.1 * bytesize.GiB,
"m2.2xlarge": 34.2 * bytesize.GiB,
"m2.4xlarge": 68.4 * bytesize.GiB,
"m3.medium": 3.75 * bytesize.GiB,
"m3.large": 7.5 * bytesize.GiB,
"m3.xlarge": 15 * bytesize.GiB,
"m3.2xlarge": 30 * bytesize.GiB,
"m4.large": 8 * bytesize.GiB,
"m4.xlarge": 16 * bytesize.GiB,
"m4.2xlarge": 32 * bytesize.GiB,
"m4.4xlarge": 64 * bytesize.GiB,
"m4.10xlarge": 160 * bytesize.GiB,
"m4.16xlarge": 256 * bytesize.GiB,
"m5.large": 8 * bytesize.GiB,
"m5.xlarge": 16 * bytesize.GiB,
"m5.2xlarge": 32 * bytesize.GiB,
"m5.4xlarge": 64 * bytesize.GiB,
"m5.8xlarge": 128 * bytesize.GiB,
"m5.12xlarge": 192 * bytesize.GiB,
"m5.16xlarge": 256 * bytesize.GiB,
"m5.24xlarge": 384 * bytesize.GiB,
"m5.metal": 384 * bytesize.GiB,
"m5a.large": 8 * bytesize.GiB,
"m5a.xlarge": 16 * bytesize.GiB,
"m5a.2xlarge": 32 * bytesize.GiB,
"m5a.4xlarge": 64 * bytesize.GiB,
"m5a.8xlarge": 128 * bytesize.GiB,
"m5a.12xlarge": 192 * bytesize.GiB,
"m5a.16xlarge": 256 * bytesize.GiB,
"m5a.24xlarge": 384 * bytesize.GiB,
"m5ad.large": 8 * bytesize.GiB,
"m5ad.xlarge": 16 * bytesize.GiB,
"m5ad.2xlarge": 32 * bytesize.GiB,
"m5ad.4xlarge": 64 * bytesize.GiB,
"m5ad.12xlarge": 192 * bytesize.GiB,
"m5ad.24xlarge": 384 * bytesize.GiB,
"m5d.large": 8 * bytesize.GiB,
"m5d.xlarge": 16 * bytesize.GiB,
"m5d.2xlarge": 32 * bytesize.GiB,
"m5d.4xlarge": 64 * bytesize.GiB,
"m5d.8xlarge": 128 * bytesize.GiB,
"m5d.12xlarge": 192 * bytesize.GiB,
"m5d.16xlarge": 256 * bytesize.GiB,
"m5d.24xlarge": 384 * bytesize.GiB,
"m5d.metal": 384 * bytesize.GiB,
"p2.xlarge": 61 * bytesize.GiB,
"p2.8xlarge": 488 * bytesize.GiB,
"p2.16xlarge": 732 * bytesize.GiB,
"p3.2xlarge": 61 * bytesize.GiB,
"p3.8xlarge": 244 * bytesize.GiB,
"p3.16xlarge": 488 * bytesize.GiB,
"p3dn.24xlarge": 768 * bytesize.GiB,
"r3.large": 15.25 * bytesize.GiB,
"r3.xlarge": 30.5 * bytesize.GiB,
"r3.2xlarge": 61 * bytesize.GiB,
"r3.4xlarge": 122 * bytesize.GiB,
"r3.8xlarge": 244 * bytesize.GiB,
"r4.large": 15.25 * bytesize.GiB,
"r4.xlarge": 30.5 * bytesize.GiB,
"r4.2xlarge": 61 * bytesize.GiB,
"r4.4xlarge": 122 * bytesize.GiB,
"r4.8xlarge": 244 * bytesize.GiB,
"r4.16xlarge": 488 * bytesize.GiB,
"r5.large": 16 * bytesize.GiB,
"r5.xlarge": 32 * bytesize.GiB,
"r5.2xlarge": 64 * bytesize.GiB,
"r5.4xlarge": 128 * bytesize.GiB,
"r5.8xlarge": 256 * bytesize.GiB,
"r5.12xlarge": 384 * bytesize.GiB,
"r5.16xlarge": 512 * bytesize.GiB,
"r5.24xlarge": 768 * bytesize.GiB,
"r5.metal": 768 * bytesize.GiB,
"r5a.large": 16 * bytesize.GiB,
"r5a.xlarge": 32 * bytesize.GiB,
"r5a.2xlarge": 64 * bytesize.GiB,
"r5a.4xlarge": 128 * bytesize.GiB,
"r5a.8xlarge": 256 * bytesize.GiB,
"r5a.12xlarge": 384 * bytesize.GiB,
"r5a.16xlarge": 512 * bytesize.GiB,
"r5a.24.xlarge": 768 * bytesize.GiB,
"r5ad.large": 16 * bytesize.GiB,
"r5ad.xlarge": 32 * bytesize.GiB,
"r5ad.2xlarge": 64 * bytesize.GiB,
"r5ad.4xlarge": 128 * bytesize.GiB,
"r5ad.12xlarge": 384 * bytesize.GiB,
"r5ad.24.xlarge": 768 * bytesize.GiB,
"r5d.large": 16 * bytesize.GiB,
"r5d.xlarge": 32 * bytesize.GiB,
"r5d.2xlarge": 64 * bytesize.GiB,
"r5d.4xlarge": 128 * bytesize.GiB,
"r5d.8xlarge": 256 * bytesize.GiB,
"r5d.12xlarge": 384 * bytesize.GiB,
"r5d.16xlarge": 512 * bytesize.GiB,
"r5d.24xlarge": 768 * bytesize.GiB,
"r5d.metal": 768 * bytesize.GiB,
"t1.micro": 0.613 * bytesize.GiB,
"t2.nano": 0.5 * bytesize.GiB,
"t2.micro": 1 * bytesize.GiB,
"t2.small": 2 * bytesize.GiB,
"t2.medium": 4 * bytesize.GiB,
"t2.large": 8 * bytesize.GiB,
"t2.xlarge": 16 * bytesize.GiB,
"t2.2xlarge": 32 * bytesize.GiB,
"t3.nano": 0.5 * bytesize.GiB,
"t3.micro": 1 * bytesize.GiB,
"t3.small": 2 * bytesize.GiB,
"t3.medium": 4 * bytesize.GiB,
"t3.large": 8 * bytesize.GiB,
"t3.xlarge": 16 * bytesize.GiB,
"t3.2xlarge": 32 * bytesize.GiB,
"t3a.nano": 0.5 * bytesize.GiB,
"t3a.micro": 1 * bytesize.GiB,
"t3a.small": 2 * bytesize.GiB,
"t3a.medium": 4 * bytesize.GiB,
"t3a.large": 8 * bytesize.GiB,
"t3a.xlarge": 16 * bytesize.GiB,
"t3a.2xlarge": 32 * bytesize.GiB,
"u-6tb1.metal": 6144 * bytesize.GiB,
"u-9tb1.metal": 9216 * bytesize.GiB,
"u-12tb1.metal": 12288 * bytesize.GiB,
"u-18tb1.metal": 18432 * bytesize.GiB,
"u-24tb1.metal": 24576 * bytesize.GiB,
"x1.16xlarge": 976 * bytesize.GiB,
"x1.32xlarge": 1952 * bytesize.GiB,
"x1e.xlarge": 122 * bytesize.GiB,
"x1e.2xlarge": 244 * bytesize.GiB,
"x1e.4xlarge": 488 * bytesize.GiB,
"x1e.8xlarge": 976 * bytesize.GiB,
"x1e.16xlarge": 1952 * bytesize.GiB,
"x1e.32xlarge": 3904 * bytesize.GiB,
"z1d.large": 16 * bytesize.GiB,
"z1d.xlarge": 32 * bytesize.GiB,
"z1d.2xlarge": 64 * bytesize.GiB,
"z1d.3xlarge": 96 * bytesize.GiB,
"z1d.6xlarge": 192 * bytesize.GiB,
"z1d.12xlarge": 384 * bytesize.GiB,
"z1d.metal": 384 * bytesize.GiB,
}

type SecurityGroup struct {

0 comments on commit 69a0a62

Please sign in to comment.
You can’t perform that action at this time.