amazon-pricing 0.1.102 → 0.1.103
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/amazon-pricing/definitions/ec2-instance-type.rb +6 -1
- data/lib/amazon-pricing/definitions/instance-type.rb +89 -74
- data/lib/amazon-pricing/ec2-dhi-price-list.rb +1 -1
- data/lib/amazon-pricing/helpers/instance-type.rb +1 -1
- data/lib/amazon-pricing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjNkYTk3OTQwYTU3ZjRkYzMzOTJhMzU2N2U1OTdkYzhkN2IxMjI3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGMyOWRhOGYxNWViYWE0MDFjMmVlMDIxNDEyOTQ4ODA4OTUzNzhjYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjU4ZDEwYzJmZTgwZGNmNTQ3ZGFmZGM3YTAzMzY0MmM3MDdkZDkxZDg4NDkz
|
10
|
+
YzA3MTdmMzAxMWQwYjc5YTA5NDdlNDA1Nzk3OGUxYTQzYThhMDc4MzViZjMx
|
11
|
+
OWU0NzczYzZjYTdjYTFlNzUyNTNjZGUyZGMwZmM4N2QxNWU4MjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWYxZWQ3ZTA1ZWEwOTQ2NmMxOTBjOGRlOTlhNGRmM2ExMDYwZDZlNWY1ODFi
|
14
|
+
Y2MxYjc4OTIxZDNmNmFmNzEyMTc0YmY3MDU2Yjc3NTkyOGNkNzEwMjVkY2E1
|
15
|
+
MWI3NWRmN2Q5NTE2MDZlMDAzMTY3NzZmYmYyNmJmYjAwOGEyMjE=
|
@@ -324,7 +324,12 @@ module AwsPricing
|
|
324
324
|
't2.2xlarge' => :high, # same as m4.xlarge, cf:https://aws.amazon.com/blogs/aws/new-t2-xlarge-and-t2-2xlarge-instances/
|
325
325
|
'x1.16xlarge' => :ten_gigabit,
|
326
326
|
'x1.32xlarge' => :twenty_gigabit,
|
327
|
-
'x1e.
|
327
|
+
'x1e.16xlarge' => :ten_gigabit,
|
328
|
+
'x1e.2xlarge' => :ten_gigabit, # upto 10G
|
329
|
+
'x1e.32xlarge' => :twentyfive_gigabit,
|
330
|
+
'x1e.4xlarge' => :ten_gigabit, # upto 10G
|
331
|
+
'x1e.8xlarge' => :ten_gigabit, # upto 10G
|
332
|
+
'x1e.xlarge' => :ten_gigabit, # upto 10G
|
328
333
|
}
|
329
334
|
|
330
335
|
end
|
@@ -210,9 +210,14 @@ module AwsPricing
|
|
210
210
|
'c4.8xlarge' => 'Compute Optimized Eight Extra Large',
|
211
211
|
'c5.large' => 'Compute Optimized C5 Large', 'c5.xlarge' => 'Compute Optimized C5 Extra Large', 'c5.2xlarge' => 'Compute Optimized C5 Double Extra Large', 'c5.4xlarge' => 'Compute Optimized C5 Quadruple Extra Large',
|
212
212
|
'c5.9xlarge' => 'Compute Optimized C5 Nine Extra Large', 'c5.18xlarge' => 'Compute Optimized C5 Eighteen Extra Large',
|
213
|
-
'x1.16xlarge'
|
214
|
-
|
215
|
-
'x1e.
|
213
|
+
'x1.16xlarge' => 'Memory Optimized 16 Extra Large Enterprise-class',
|
214
|
+
'x1.32xlarge' => 'Memory Optimized 32 Extra Large Enterprise-class',
|
215
|
+
'x1e.xlarge' => 'Memory Optimized Extended Extra Large Enterprise-class',
|
216
|
+
'x1e.2xlarge' => 'Memory Optimized Extended 2 Extra Large Enterprise-class',
|
217
|
+
'x1e.4xlarge' => 'Memory Optimized Extended 4 Extra Large Enterprise-class',
|
218
|
+
'x1e.8xlarge' => 'Memory Optimized Extended 8 Extra Large Enterprise-class',
|
219
|
+
'x1e.16xlarge' => 'Memory Optimized Extended 16 Extra Large Enterprise-class',
|
220
|
+
'x1e.32xlarge' => 'Memory Optimized Extended 32 Extra Large Enterprise-class',
|
216
221
|
'f1.2xlarge' => 'FPGA Hardware Acceleration Double Extra Large', 'f1.16xlarge' => 'FPGA Hardware Acceleration Hextuple Extra Large'
|
217
222
|
}
|
218
223
|
@@Disk_Lookup = {
|
@@ -241,7 +246,8 @@ module AwsPricing
|
|
241
246
|
't2.nano' => 0, 't2.micro' => 0, 't2.small' => 0, 't2.medium' => 0, 't2.large' => 0, 't2.xlarge' => 0, 't2.2xlarge' => 0,
|
242
247
|
'c4.large' => 0, 'c4.xlarge' => 0, 'c4.2xlarge' => 0, 'c4.4xlarge' => 0, 'c4.8xlarge' => 0,
|
243
248
|
'c5.large' => 0, 'c5.xlarge' => 0, 'c5.2xlarge' => 0, 'c5.4xlarge' => 0, 'c5.9xlarge' => 0, 'c5.18xlarge' => 0, # ebs-optimized
|
244
|
-
'x1.16xlarge' => 1920, 'x1.32xlarge' => 3840,
|
249
|
+
'x1.16xlarge' => 1920, 'x1.32xlarge' => 3840,
|
250
|
+
'x1e.xlarge' => 120, 'x1e.2xlarge' => 240, 'x1e.4xlarge' => 480, 'x1e.8xlarge' => 960, 'x1e.16xlarge' => 1920, 'x1e.32xlarge' => 3840,
|
245
251
|
'p2.xlarge' => 0, 'p2.8xlarge' => 0, 'p2.16xlarge' => 0, # ebs-optimized
|
246
252
|
'p3.2xlarge' => 0, 'p3.8xlarge' => 0, 'p3.16xlarge' => 0, # ebs-optimized
|
247
253
|
'f1.2xlarge' => 470, 'f1.16xlarge' => 3760,
|
@@ -272,7 +278,8 @@ module AwsPricing
|
|
272
278
|
't2.nano' => 64, 't2.micro' => 64, 't2.small' => 64, 't2.medium' => 64, 't2.large' => 64, 't2.xlarge' => 64, 't2.2xlarge' => 64,
|
273
279
|
'c4.large' => 64, 'c4.xlarge' => 64, 'c4.2xlarge' => 64, 'c4.4xlarge' => 64, 'c4.8xlarge' => 64,
|
274
280
|
'c5.large' => 64, 'c5.xlarge' => 64, 'c5.2xlarge' => 64, 'c5.4xlarge' => 64, 'c5.9xlarge' => 64, 'c5.18xlarge' => 64,
|
275
|
-
'x1.16xlarge' => 64, 'x1.32xlarge' => 64,
|
281
|
+
'x1.16xlarge' => 64, 'x1.32xlarge' => 64,
|
282
|
+
'x1e.xlarge' => 64, 'x1e.2xlarge' => 64, 'x1e.4xlarge' => 64, 'x1e.8xlarge' => 64, 'x1e.16xlarge' => 64, 'x1e.32xlarge' => 64,
|
276
283
|
'p2.xlarge' => 64, 'p2.8xlarge' => 64, 'p2.16xlarge' => 64,
|
277
284
|
'p3.2xlarge' => 64, 'p3.8xlarge' => 64, 'p3.16xlarge' => 64,
|
278
285
|
}
|
@@ -303,7 +310,8 @@ module AwsPricing
|
|
303
310
|
't2.nano' => :ebs, 't2.micro' => :ebs, 't2.small' => :ebs, 't2.medium' => :ebs, 't2.large' => :ebs, 't2.xlarge' => :ebs, 't2.2xlarge' => :ebs,
|
304
311
|
'c4.large' => :ebs, 'c4.xlarge' => :ebs, 'c4.2xlarge' => :ebs, 'c4.4xlarge' => :ebs, 'c4.8xlarge' => :ebs,
|
305
312
|
'c5.large' => :ebs, 'c5.xlarge' => :ebs, 'c5.2xlarge' => :ebs, 'c5.4xlarge' => :ebs, 'c5.9xlarge' => :ebs, 'c5.18xlarge' => :ebs,
|
306
|
-
'x1.16xlarge' => :ssd, 'x1.32xlarge' => :ssd,
|
313
|
+
'x1.16xlarge' => :ssd, 'x1.32xlarge' => :ssd,
|
314
|
+
'x1e.xlarge' => :ssd, 'x1e.2xlarge' => :ssd, 'x1e.4xlarge' => :ssd, 'x1e.8xlarge' => :ssd, 'x1e.16xlarge' => :ssd, 'x1e.32xlarge' => :ssd,
|
307
315
|
'p2.xlarge' => :ebs, 'p2.8xlarge' => :ebs, 'p2.16xlarge' => :ebs,
|
308
316
|
'p3.2xlarge' => :ebs, 'p3.8xlarge' => :ebs, 'p3.16xlarge' => :ebs,
|
309
317
|
'f1.2xlarge' => :ssd, 'f1.16xlarge' => :ssd,
|
@@ -337,25 +345,27 @@ module AwsPricing
|
|
337
345
|
private
|
338
346
|
|
339
347
|
# [MB/s capacity, Ops/s capacity]
|
348
|
+
# EBSoptimized published capacities:
|
349
|
+
# - cf: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html
|
350
|
+
# - MB/s (128KB I/O size), IOPS (16KB IO size)
|
340
351
|
PER_SEC_CAPACITIES = {
|
341
352
|
'c1.medium' => [118, 5471],
|
342
|
-
'c1.xlarge' => [
|
343
|
-
'c3.
|
344
|
-
'c3.
|
345
|
-
'c3.
|
346
|
-
'c3.
|
347
|
-
'
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
#
|
353
|
-
#
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
# c5.xlarge is EBS-only Up to 2.25 Gbps
|
353
|
+
'c1.xlarge' => [125, 8000], # EBS
|
354
|
+
'c3.xlarge' => [ 62, 4000], # EBSOptimized
|
355
|
+
'c3.2xlarge' => [125, 8000], # EBSOptimized
|
356
|
+
'c3.4xlarge' => [250, 16000], # EBSOptimized
|
357
|
+
# 'c3.8xlarge' # does NOT have dedicated EBSOptimized
|
358
|
+
'c4.large' => [ 62, 4000], # EBSOptimized
|
359
|
+
'c4.xlarge' => [ 94, 6000], # EBSOptimized
|
360
|
+
'c4.2xlarge' => [125, 8000], # EBSOptimized
|
361
|
+
'c4.4xlarge' => [250, 16000], # EBSOptimized
|
362
|
+
'c4.8xlarge' => [500, 32000], # EBSOptimized
|
363
|
+
'c5.large' => [ 281, 16000], # EBSOptimized peak.30min/24hrs, else [ 66, 4000]
|
364
|
+
'c5.xlarge' => [ 281, 16000], # EBSOptimized peak.30min/24hrs, else [100, 6000]
|
365
|
+
'c5.2xlarge' => [ 281, 16000], # EBSOptimized peak.30min/24hrs, else [141, 8000]
|
366
|
+
'c5.4xlarge' => [ 281, 16000], # EBSOptimized
|
367
|
+
'c5.9xlarge' => [ 563, 32000], # EBSOptimized
|
368
|
+
'c5.18xlarge' => [1125, 64000], # EBSOptimized
|
359
369
|
# cache.c1.xlarge is not picked up by CloudWatch
|
360
370
|
# cache.m1.large is not picked up by CloudWatch
|
361
371
|
# cache.m1.medium is not picked up by CloudWatch
|
@@ -381,10 +391,10 @@ module AwsPricing
|
|
381
391
|
'cc2.8xlarge' => [598, 64607],
|
382
392
|
# cg1.4xlarge is not picked up by CloudWatch
|
383
393
|
'cr1.8xlarge' => [525, 53527],
|
384
|
-
'd2.
|
385
|
-
'd2.
|
386
|
-
'd2.
|
387
|
-
'd2.
|
394
|
+
'd2.xlarge' => [ 94, 6000], # EBSOptimized
|
395
|
+
'd2.2xlarge' => [125, 8000], # EBSOptimized
|
396
|
+
'd2.4xlarge' => [250, 16000], # EBSOptimized
|
397
|
+
'd2.8xlarge' => [500, 32000], # EBSOptimized
|
388
398
|
# db.cr1.8xlarge, like all RDS instances, are EBS-only
|
389
399
|
# db.m1.large, like all RDS instances, are EBS-only
|
390
400
|
# db.m1.medium, like all RDS instances, are EBS-only
|
@@ -412,52 +422,52 @@ module AwsPricing
|
|
412
422
|
# db.t2.medium, like all RDS instances, are EBS-only
|
413
423
|
# db.t2.micro, like all RDS instances, are EBS-only
|
414
424
|
# db.t2.small, like all RDS instances, are EBS-only
|
415
|
-
'
|
416
|
-
'
|
417
|
-
|
418
|
-
|
419
|
-
|
425
|
+
'f1.2xlarge' => [ 212, 12000], # EBSOptimized
|
426
|
+
'f1.16xlarge'=> [1750, 75000], # EBSOptimized
|
427
|
+
'g2.2xlarge' => [125, 8000], # EBSOptimized
|
428
|
+
'g3.4xlarge' => [ 437, 20000], # EBSOptimized
|
429
|
+
'g3,8xlarge' => [ 875, 40000], # EBSOptimized
|
430
|
+
'g3.16xlarge'=> [1750, 80000], # EBSOptimized
|
420
431
|
'hi1.4xlarge' => [1824, 50488],
|
421
432
|
'hs1.8xlarge' => [2257, 126081],
|
422
|
-
'i2.
|
423
|
-
'i2.
|
424
|
-
'i2.
|
425
|
-
'i2.
|
426
|
-
'i3.
|
427
|
-
'i3.
|
428
|
-
'i3.
|
429
|
-
'i3.
|
430
|
-
'i3.
|
431
|
-
'i3.
|
432
|
-
'm1.large'
|
433
|
-
'm1.
|
434
|
-
'
|
435
|
-
'
|
436
|
-
'
|
437
|
-
'
|
438
|
-
'
|
439
|
-
'
|
440
|
-
'
|
441
|
-
'
|
442
|
-
'
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
'r3.
|
451
|
-
'r3.
|
452
|
-
'r3.
|
453
|
-
'r3.
|
454
|
-
'
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
# r4.xlarge is EBS-only
|
433
|
+
'i2.xlarge' => [ 62, 4000], # EBSOptimized
|
434
|
+
'i2.2xlarge' => [125, 8000], # EBSOptimized
|
435
|
+
'i2.4xlarge' => [250, 16000], # EBSOptimized
|
436
|
+
# 'i2.8xlarge' # does NOT have dedicated EBSOptimized
|
437
|
+
'i3.large' => [ 53, 3000], # EBSOptimized
|
438
|
+
'i3.xlarge' => [ 106, 6000], # EBSOptimized
|
439
|
+
'i3.2xlarge' => [ 212, 12000], # EBSOptimized
|
440
|
+
'i3.4xlarge' => [ 437, 16000], # EBSOptimized
|
441
|
+
'i3.8xlarge' => [ 875, 32500], # EBSOptimized
|
442
|
+
'i3.16xlarge' => [1750, 65000], # EBSOptimized
|
443
|
+
'm1.large' => [ 62, 4000], # EBSOptimized
|
444
|
+
'm1.xlarge' => [125, 8000], # EBSOptimized
|
445
|
+
'm2.2xlarge' => [ 62, 4000], # EBSOptimized
|
446
|
+
'm2.4xlarge' => [125, 8000], # EBSOptimized
|
447
|
+
'm3.xlarge' => [ 62, 4000], # EBSOptimized
|
448
|
+
'm3.2xlarge' => [125, 8000], # EBSOptimized
|
449
|
+
'm4.large' => [ 56, 3600], # EBSOptimized
|
450
|
+
'm4.xlarge' => [ 94, 6000], # EBSOptimized
|
451
|
+
'm4.2xlarge' => [ 125, 8000], # EBSOptimized
|
452
|
+
'm4.4xlarge' => [ 250, 16000], # EBSOptimized
|
453
|
+
'm4.10xlarge'=> [ 500, 32000], # EBSOptimized
|
454
|
+
'm4.16xlarge'=> [1250, 65000], # EBSOptimized
|
455
|
+
'p2.xlarge' => [ 94, 6000], # EBSOptimized
|
456
|
+
'p2.8xlarge' => [ 625, 32500], # EBSOptimized
|
457
|
+
'p2.16xlarge'=> [1250, 65000], # EBSOptimized
|
458
|
+
'p3.2xlarge' => [ 218, 10000], # EBSOptimized
|
459
|
+
'p3.8xlarge' => [ 875, 40000], # EBSOptimized
|
460
|
+
'p3.16xlarge'=> [1750, 80000], # EBSOptimized
|
461
|
+
'r3.xlarge' => [ 62, 4000], # EBSOptimized
|
462
|
+
'r3.2xlarge' => [125, 8000], # EBSOptimized
|
463
|
+
'r3.4xlarge' => [250, 16000], # EBSOptimized
|
464
|
+
# 'r3.8xlarge' # does NOT have dedicated EBSOptimized
|
465
|
+
'r4.large' => [ 53, 3000], # EBSOptimized
|
466
|
+
'r4.xlarge' => [ 106, 6000], # EBSOptimized
|
467
|
+
'r4.2xlarge' => [ 212, 12000], # EBSOptimized
|
468
|
+
'r4.4xlarge' => [ 437, 18750], # EBSOptimized
|
469
|
+
'r4.8xlarge' => [ 875, 37500], # EBSOptimized
|
470
|
+
'r4.16xlarge' => [1750, 75000], # EBSOptimized
|
461
471
|
# t1.micro is EBS-only
|
462
472
|
# t2.large is EBS-only
|
463
473
|
# t2.medium is EBS-only
|
@@ -466,9 +476,14 @@ module AwsPricing
|
|
466
476
|
# t2.small is EBS-only
|
467
477
|
# t2.xlarge is EBS-only
|
468
478
|
# t2.2xlarge is EBS-only
|
469
|
-
'x1.16xlarge' => [
|
470
|
-
'x1.32xlarge' => [
|
471
|
-
'x1e.
|
479
|
+
'x1.16xlarge' => [ 875, 40000], # EBSOptimized
|
480
|
+
'x1.32xlarge' => [1750, 80000], # EBSOptimized
|
481
|
+
'x1e.xlarge' => [ 62, 3700], # EBSOptimized
|
482
|
+
'x1e.2xlarge' => [ 125, 7400], # EBSOptimized
|
483
|
+
'x1e.4xlarge' => [ 219, 10000], # EBSOptimized
|
484
|
+
'x1e.8xlarge' => [ 437, 20000], # EBSOptimized
|
485
|
+
'x1e.16xlarge' => [ 875, 40000], # EBSOptimized
|
486
|
+
'x1e.32xlarge' => [1750, 80000], # EBSOptimized
|
472
487
|
}
|
473
488
|
end
|
474
489
|
|
@@ -31,7 +31,7 @@ module AwsPricing
|
|
31
31
|
'i2' => { "xlarge"=>8, "2xlarge"=>4, "4xlarge"=>2, "8xlarge"=>1, "16xlarge"=>1 },
|
32
32
|
'i3' => { "large"=>32, "xlarge"=>16, "2xlarge"=>8, "4xlarge"=>4, "8xlarge"=>2, "16xlarge"=>1 },
|
33
33
|
'x1' => { "16xlarge"=>2, "32xlarge"=>1 },
|
34
|
-
'x1e' =>
|
34
|
+
'x1e' =>{ "xlarge"=>32, "2xlarge"=>16, "4xlarge"=>8, "8xlarge"=>4, "16xlarge"=>2, "32xlarge"=>1 },
|
35
35
|
}
|
36
36
|
|
37
37
|
def get_ec2_dhi_od_pricing
|
@@ -33,7 +33,7 @@ module AwsPricing
|
|
33
33
|
'R3' => ['r3.large', 'r3.xlarge', 'r3.2xlarge', 'r3.4xlarge', 'r3.8xlarge'],
|
34
34
|
'R4' => ['r4.large', 'r4.xlarge', 'r4.2xlarge', 'r4.4xlarge', 'r4.8xlarge', 'r4.16xlarge'],
|
35
35
|
'X1' => ['x1.16xlarge', 'x1.32xlarge'],
|
36
|
-
'X1E' => ['x1e.32xlarge'],
|
36
|
+
'X1E' => ['x1e.xlarge', 'x1e.2xlarge', 'x1e.4xlarge', 'x1e.8xlarge', 'x1e.16xlarge', 'x1e.32xlarge'],
|
37
37
|
},
|
38
38
|
'PreviousGen' => {
|
39
39
|
'M2' => ['m2.xlarge', 'm2.2xlarge', 'm2.4xlarge'],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon-pricing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.103
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Kinsella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|