amazon-pricing 0.1.99 → 0.1.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/amazon-pricing/definitions/database-type.rb +10 -0
- data/lib/amazon-pricing/definitions/ec2-instance-type.rb +7 -3
- data/lib/amazon-pricing/definitions/instance-type.rb +7 -1
- data/lib/amazon-pricing/ec2-dhi-price-list.rb +1 -0
- data/lib/amazon-pricing/helpers/instance-type.rb +3 -2
- 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
|
+
ODc1ZDRhYTE5ZjIyZDNmNTZhODJjNDljNTE1ZjFhMDQzNWM5MjAwZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGE4MzQ4NjE2NDNhNWZmNTc5NWEyYTc3MDVhZDM1NzE4MWQ4ZTg5Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2ZlNWY5MTVkN2MyZGYyNDRhM2I2ZTM0NzY3OGZhZTg3ZDA2ODg1Zjk5Mzk0
|
10
|
+
Mjk5YzdhZjM5ZGJjNjIzNDE0ZWQzMzZkYWQ3NmEyZWUwMDk0ZmNkYjZiODFi
|
11
|
+
ZThhNTU0YWY2NjkyMzVhOWY5NjJjNjJmZmMzMzhlZGVhZjA4ZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTgzZDljNTVmYWFhMjJkYWZiOWM4MGIyZmQwZjkxY2FlMzk5NjhiNzY2YWY4
|
14
|
+
NzBkNjJjMTVkYmZjNTBhOWRiMzBhYmFlYjRiMjhiZDA5YzQyOGYzNTQ4Nzcw
|
15
|
+
NTA1OGZiMmU0YmQzNzNmMmYyMzExMmI2YjRhYjExYzBkMDljZGU=
|
@@ -251,6 +251,16 @@ module AwsPricing
|
|
251
251
|
return false unless display_name # unknown operation is presumed non sf
|
252
252
|
self.database_sf?(display_name)
|
253
253
|
end
|
254
|
+
# example: databases_sf() returns [MYSQL_STANDARD, ... ]
|
255
|
+
# Returns BOOL if operation string is RDS SF
|
256
|
+
# params: none
|
257
|
+
def self.databases_sf
|
258
|
+
dbs = []
|
259
|
+
@@DB_ENGINE_MAP.each do |key,value|
|
260
|
+
dbs << key if value[:sizeflex]
|
261
|
+
end
|
262
|
+
dbs
|
263
|
+
end
|
254
264
|
|
255
265
|
# example: database_multiaz?('MySQL Community Edition (Multi-AZ)') returns true
|
256
266
|
# Returns BOOL if database string is RDS SF
|
@@ -171,6 +171,7 @@ module AwsPricing
|
|
171
171
|
:high => 1000,
|
172
172
|
:ten_gigabit => 10000,
|
173
173
|
:twenty_gigabit => 20000,
|
174
|
+
:twentyfive_gigabit => 25000,
|
174
175
|
}
|
175
176
|
|
176
177
|
# handy summary here: www.ec2instances.info
|
@@ -253,7 +254,7 @@ module AwsPricing
|
|
253
254
|
'db.x1.16xlarge' => :ten_gigabit,
|
254
255
|
'db.x1.32xlarge' => :ten_gigabit,
|
255
256
|
'f1.2xlarge' => :high,
|
256
|
-
'f1.16xlarge' => :
|
257
|
+
'f1.16xlarge' => :twentyfive_gigabit,
|
257
258
|
'g2.2xlarge' => :high,
|
258
259
|
'g2.8xlarge' => :ten_gigabit,
|
259
260
|
'g3.4xlarge' => :twenty_gigabit,
|
@@ -265,7 +266,7 @@ module AwsPricing
|
|
265
266
|
'i2.4xlarge' => :high,
|
266
267
|
'i2.8xlarge' => :ten_gigabit,
|
267
268
|
'i2.xlarge' => :moderate,
|
268
|
-
'i3.16xlarge' => :
|
269
|
+
'i3.16xlarge' => :twentyfive_gigabit,
|
269
270
|
'i3.2xlarge' => :ten_gigabit,
|
270
271
|
'i3.4xlarge' => :ten_gigabit,
|
271
272
|
'i3.8xlarge' => :ten_gigabit,
|
@@ -291,12 +292,15 @@ module AwsPricing
|
|
291
292
|
'p2.xlarge' => :high,
|
292
293
|
'p2.8xlarge' => :ten_gigabit,
|
293
294
|
'p2.16xlarge' => :twenty_gigabit,
|
295
|
+
'p3.2xlarge' => :high,
|
296
|
+
'p3.8xlarge' => :ten_gigabit,
|
297
|
+
'p3.16xlarge' => :twentyfive_gigabit,
|
294
298
|
'r3.2xlarge' => :high,
|
295
299
|
'r3.4xlarge' => :high,
|
296
300
|
'r3.8xlarge' => :ten_gigabit,
|
297
301
|
'r3.large' => :moderate,
|
298
302
|
'r3.xlarge' => :moderate,
|
299
|
-
'r4.16xlarge' => :
|
303
|
+
'r4.16xlarge' => :twentyfive_gigabit,
|
300
304
|
'r4.2xlarge' => :ten_gigabit,
|
301
305
|
'r4.4xlarge' => :ten_gigabit,
|
302
306
|
'r4.8xlarge' => :ten_gigabit,
|
@@ -193,6 +193,7 @@ module AwsPricing
|
|
193
193
|
'g2.2xlarge' => 'Cluster GPU Double Extra Large', 'g2.8xlarge' => 'Cluster GPU Eight Extra Large',
|
194
194
|
'g3.4xlarge' => 'Cluster GPU-3 Quadruple Extra Large', 'g3.8xlarge' => 'Cluster GPU-3 Eight Extra Large', 'g3.16xlarge' => 'Cluster GPU-3 Hextuple Extra Large',
|
195
195
|
'p2.xlarge' => 'GPU Compute Extra Large', 'p2.8xlarge' => 'GPU Compute Eight Extra Large', 'p2.16xlarge' => 'GPU Compute Hextuple Extra Large',
|
196
|
+
'p3.2xlarge' => 'GPU-3 Compute Double Extra Large', 'p3.8xlarge' => 'GPU-3 Compute Eight Extra Large', 'p3.16xlarge' => 'GPU-3 Compute Hextuple Extra Large',
|
196
197
|
'c3.large' => 'High-Compute Large', 'c3.xlarge' => 'High-Compute Extra Large', 'c3.2xlarge' => 'High-Compute Double Extra Large', 'c3.4xlarge' => 'High-Compute Quadruple Extra Large', 'c3.8xlarge' => 'High-Compute Eight Extra Large',
|
197
198
|
'i2.xlarge' => 'High I/O Extra Large', 'i2.2xlarge' => 'High I/O Double Extra Large', 'i2.4xlarge' => 'High I/O Quadruple Extra Large', 'i2.8xlarge' => 'High I/O Eight Extra Large',
|
198
199
|
'i3.large' => 'Storage Optimized High I/O Large',
|
@@ -237,7 +238,8 @@ module AwsPricing
|
|
237
238
|
't2.nano' => 0, 't2.micro' => 0, 't2.small' => 0, 't2.medium' => 0, 't2.large' => 0, 't2.xlarge' => 0, 't2.2xlarge' => 0,
|
238
239
|
'c4.large' => 0, 'c4.xlarge' => 0, 'c4.2xlarge' => 0, 'c4.4xlarge' => 0, 'c4.8xlarge' => 0,
|
239
240
|
'x1.16xlarge' => 1920, 'x1.32xlarge' => 3840, 'x1e.32xlarge' => 3840,
|
240
|
-
'p2.xlarge' => 0, 'p2.8xlarge' => 0, 'p2.16xlarge' => 0,
|
241
|
+
'p2.xlarge' => 0, 'p2.8xlarge' => 0, 'p2.16xlarge' => 0, # ebs-optimized
|
242
|
+
'p3.2xlarge' => 0, 'p3.8xlarge' => 0, 'p3.16xlarge' => 0, # ebs-optimized
|
241
243
|
'f1.2xlarge' => 470, 'f1.16xlarge' => 3760,
|
242
244
|
}
|
243
245
|
@@Platform_Lookup = {
|
@@ -267,6 +269,7 @@ module AwsPricing
|
|
267
269
|
'c4.large' => 64, 'c4.xlarge' => 64, 'c4.2xlarge' => 64, 'c4.4xlarge' => 64, 'c4.8xlarge' => 64,
|
268
270
|
'x1.16xlarge' => 64, 'x1.32xlarge' => 64, 'x1e.32xlarge' => 64,
|
269
271
|
'p2.xlarge' => 64, 'p2.8xlarge' => 64, 'p2.16xlarge' => 64,
|
272
|
+
'p3.2xlarge' => 64, 'p3.8xlarge' => 64, 'p3.16xlarge' => 64,
|
270
273
|
}
|
271
274
|
@@Disk_Type_Lookup = {
|
272
275
|
'm1.small' => :ephemeral, 'm1.medium' => :ephemeral, 'm1.large' => :ephemeral, 'm1.xlarge' => :ephemeral,
|
@@ -296,6 +299,7 @@ module AwsPricing
|
|
296
299
|
'c4.large' => :ebs, 'c4.xlarge' => :ebs, 'c4.2xlarge' => :ebs, 'c4.4xlarge' => :ebs, 'c4.8xlarge' => :ebs,
|
297
300
|
'x1.16xlarge' => :ssd, 'x1.32xlarge' => :ssd, 'x1e.32xlarge' => :ssd,
|
298
301
|
'p2.xlarge' => :ebs, 'p2.8xlarge' => :ebs, 'p2.16xlarge' => :ebs,
|
302
|
+
'p3.2xlarge' => :ebs, 'p3.8xlarge' => :ebs, 'p3.16xlarge' => :ebs,
|
299
303
|
'f1.2xlarge' => :ssd, 'f1.16xlarge' => :ssd,
|
300
304
|
}
|
301
305
|
|
@@ -429,6 +433,8 @@ module AwsPricing
|
|
429
433
|
# m4.4xlarge is EBS-only
|
430
434
|
# m4.large is EBS-only
|
431
435
|
# m4.xlarge is EBS-only
|
436
|
+
# p2 is EBS-only
|
437
|
+
# p3 is EBS-only
|
432
438
|
'r3.2xlarge' => [238, 34564],
|
433
439
|
'r3.4xlarge' => [473, 50525],
|
434
440
|
'r3.8xlarge' => [471, 51666],
|
@@ -20,6 +20,7 @@ module AwsPricing
|
|
20
20
|
'c3' => { "large"=>16, "xlarge"=>8, "2xlarge"=>4, "4xlarge"=>2, "8xlarge"=>1 },
|
21
21
|
'c4' => { "large"=>16, "xlarge"=>8, "2xlarge"=>4, "4xlarge"=>2, "8xlarge"=>1 },
|
22
22
|
'p2' => { "xlarge"=>16, "8xlarge"=>2, "16xlarge"=>1 },
|
23
|
+
'p3' => { "2xlarge"=>8, "8xlarge"=>2, "16xlarge"=>1 },
|
23
24
|
'g2' => { "2xlarge"=>4, "8xlarge"=>1 },
|
24
25
|
'g3' => { "4xlarge"=>4, "8xlarge"=>2, "16xlarge"=>1 },
|
25
26
|
'm3' => { "medium"=>32, "large"=>16, "xlarge"=>8, "2xlarge"=>4 },
|
@@ -50,11 +50,12 @@ module AwsPricing
|
|
50
50
|
'HI1' => ['hi1.4xlarge']
|
51
51
|
}
|
52
52
|
},
|
53
|
-
'GPUInstances' => {
|
54
|
-
'CurrentGen' => { # G2=GPU Graphics, G3=
|
53
|
+
'GPUInstances' => { # NB: noted as of 2017-10, AWS now categorizes as "AcceleratedComputing"
|
54
|
+
'CurrentGen' => { # G2=GPU Graphics, G3=GPU-3 Graphics, P2=GPU Computes, P3=GPU-3 Computes, F1=FPGA Accelerated
|
55
55
|
'G2' => ['g2.2xlarge', 'g2.8xlarge'],
|
56
56
|
'G3' => ['g3.4xlarge', 'g3.8xlarge', 'g3.16xlarge'],
|
57
57
|
'P2' => ['p2.xlarge', 'p2.8xlarge', 'p2.16xlarge'],
|
58
|
+
'P3' => ['p3.2xlarge', 'p3.8xlarge', 'p3.16xlarge'],
|
58
59
|
'F1' => ['f1.2xlarge', 'f1.16xlarge'],
|
59
60
|
},
|
60
61
|
'PreviousGen' => {
|
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.100
|
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
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|