amazon-pricing 0.1.121 → 0.1.122

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzUyM2VjNDk5NzU3NTY0MzNkNjdlYTUxOTlkZjcxNWYyMzBkYWQ3OQ==
4
+ ZDUzYzExNjA2ZWQ1NTg2NjMxODkxMzUwOTQ5MWExNGNjMDAwNzU0NQ==
5
5
  data.tar.gz: !binary |-
6
- ZmYwN2EwYzFmZjdkNDBlYTdkODMxN2Q5OWRlMWU1N2ZjMGEzYmUzNQ==
6
+ MjQzNmQ0Nzc4ZjQwMmUzNjllMzIwZWY4NThjYjEzMTM0NzliNGJjMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjgyNDZlZWM5Yzc2MjkxMjU2NDZmYjU1M2U4ZTkwMjQ0MDI0NzkwN2IzYWNm
10
- ZTJhODM3OGUzNTQzYTMwYzBjNThjMzNlOGIyNzA3ZTA5Y2U4NmNjYWIzNWZj
11
- NGQ2NTk5NGYxZDQ2OGZkOGY2OWUwMWQyMzViZTg4YmFiMmM0OTk=
9
+ OGQwYjE0MGE1NDFiNGM4YWRmNzJlMTAzNDA5NTFhN2Y5Yjk0OTI0YmM3ODlm
10
+ Njk3ZDUyY2Y5MTk4ZTRkMWU1YjY3ODVhOGQ2YTk5ZWM4MWQ5MGI5OWZmMzJh
11
+ Zjg4OTE4ODgyNTUzNjM1MjE2ZGFiMzE5NTA2OGM3YzEwMWY3ZmQ=
12
12
  data.tar.gz: !binary |-
13
- MTljZjQ4OTUwZTRhZWI4ZTVmOGMyMGZhM2RlMTljYmY0NjViOTAxYzhjYWM2
14
- NzM5ZmQxNjExYzY5MjRiOTcxNTAwNWVjMTAxZDZkY2ZjNWQyMGI3ZGZiNWRj
15
- NjQ4NmNmNDM5M2Q0ZDQ3ZmRjNGQ0YjhjZGIzYjVhOWJlY2U5NGU=
13
+ YWQzMTg3NWY2Y2Y0MTU1Njc3NmY5NDMzOWNjMzg3M2QxODc0MzdmOGYwZTAw
14
+ YzZlYTg0NTUzNDNhOGRjMWZmZjBkMThmOTcxOGE1YTMzMWM1YjA2ZjE0MmVi
15
+ MmZkYzI5NThlM2I5MzRmMThhNDJmNjk3ZGMwZmVjNGFkYjdlZWM=
@@ -147,25 +147,8 @@ module AwsPricing
147
147
  # Input: String containing network capacity from amazon-pricing-api
148
148
  # Output: network throughput as a string, int containing network mbps
149
149
  def self.get_network_information(network_string)
150
- throughput = nil
151
- case network_string
152
- when 'Very Low'
153
- throughput = :very_low
154
- when 'Low'
155
- throughput = :low
156
- when 'Low to Moderate'
157
- throughput = :low_to_moderate
158
- when 'Moderate'
159
- throughput = :moderate
160
- when 'High'
161
- throughput = :high
162
- when '10 Gigabit','Up to 10 Gigabit'
163
- throughput = :ten_gigabit
164
- when '20 Gigabit'
165
- throughput = :twenty_gigabit
166
- when '25 Gigabit'
167
- throughput = :twentyfive_gigabit
168
- else
150
+ throughput = @Network_String_To_Sym[network_string]
151
+ if throughput.nil?
169
152
  $stderr.puts "[#{__method__}] WARNING: unknown network throughput string:#{network_string}"
170
153
  end
171
154
  network_mbps = @Network_Throughput_MBits_Per_Second[throughput]
@@ -205,6 +188,20 @@ module AwsPricing
205
188
  :twentyfive_gigabit => 25000, # presumes ENA
206
189
  }
207
190
 
191
+ # Use in population of profiles, takes in string value that amazon uses to reflect network capacity
192
+ # Returns symbol we use to map to numeric value
193
+ @Network_String_To_Sym = {
194
+ 'Very Low' => :very_low,
195
+ 'Low' => :low,
196
+ 'Low to Moderate' => :low_to_moderate,
197
+ 'Moderate' => :moderate,
198
+ 'High' => :high,
199
+ '10 Gigabit'=> :ten_gigabit,
200
+ 'Up to 10 Gigabit' => :ten_gigabit,
201
+ '20 Gigabit' => :twenty_gigabit,
202
+ '25 Gigabit' => :twentyfive_gigabit
203
+ }
204
+
208
205
  # handy summary here: www.ec2instances.info
209
206
  @Network_Performance = {
210
207
  'c1.medium' => :moderate,
@@ -319,6 +316,7 @@ module AwsPricing
319
316
  'g3.4xlarge' => :twenty_gigabit,
320
317
  'g3.8xlarge' => :twenty_gigabit,
321
318
  'g3.16xlarge' => :twenty_gigabit,
319
+ 'g3s.xlarge' => :ten_gigabit,
322
320
  'h1.2xlarge' => :ten_gigabit, # upto 10G
323
321
  'h1.4xlarge' => :ten_gigabit, # upto 10G
324
322
  'h1.8xlarge' => :ten_gigabit,
@@ -202,6 +202,7 @@ module AwsPricing
202
202
  'hs1.8xlarge' => 'High-Storage Eight Extra Large',
203
203
  'g2.2xlarge' => 'Cluster GPU Double Extra Large', 'g2.8xlarge' => 'Cluster GPU Eight Extra Large',
204
204
  'g3.4xlarge' => 'Cluster GPU-3 Quadruple Extra Large', 'g3.8xlarge' => 'Cluster GPU-3 Eight Extra Large', 'g3.16xlarge' => 'Cluster GPU-3 Hextuple Extra Large',
205
+ 'g3s.xlarge' => 'Cluster GPU-3S Extra Large',
205
206
  'p2.xlarge' => 'GPU Compute Extra Large', 'p2.8xlarge' => 'GPU Compute Eight Extra Large', 'p2.16xlarge' => 'GPU Compute Hextuple Extra Large',
206
207
  'p3.2xlarge' => 'GPU-3 Compute Double Extra Large', 'p3.8xlarge' => 'GPU-3 Compute Eight Extra Large', 'p3.16xlarge' => 'GPU-3 Compute Hextuple Extra Large',
207
208
  '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',
@@ -258,6 +259,7 @@ module AwsPricing
258
259
  'hs1.8xlarge' => 48000,
259
260
  'g2.2xlarge' => 60, 'g2.8xlarge' => 240,
260
261
  'g3.4xlarge' => 0, 'g3.8xlarge' => 0, 'g3.16xlarge' => 0, # g3 are ebs-only
262
+ 'g3s.xlarge' => 0, # g3s are ebs-only
261
263
  'db.m1.small' => 160, 'db.m1.medium' => 410, 'db.m1.large' =>850, 'db.m1.xlarge' => 1690,
262
264
  'db.m2.xlarge' => 420, 'db.m2.2xlarge' => 850, 'db.m2.4xlarge' => 1690, 'db.cr1.8xlarge' => 1690,
263
265
  'db.t1.micro' => 160,
@@ -298,6 +300,7 @@ module AwsPricing
298
300
  'hs1.8xlarge' => 64,
299
301
  'g2.2xlarge' => 64, 'g2.8xlarge' => 64,
300
302
  'g3.4xlarge' => 64, 'g3.8xlarge' => 64, 'g3.16xlarge' => 64,
303
+ 'g3s.xlarge' => 64,
301
304
  'db.m1.small' => 64, 'db.m1.medium' => 64, 'db.m1.large' => 64, 'db.m1.xlarge' => 64,
302
305
  'db.m2.xlarge' => 64, 'db.m2.2xlarge' => 64, 'db.m2.4xlarge' => 64, 'db.cr1.8xlarge' => 64,
303
306
  'db.t1.micro' => 64,
@@ -337,6 +340,7 @@ module AwsPricing
337
340
  'hs1.8xlarge' => :ephemeral,
338
341
  'g2.2xlarge' => :ssd, 'g2.8xlarge' => :ssd,
339
342
  'g3.4xlarge' => :ebs, 'g3.8xlarge' => :ebs, 'g3.16xlarge' => :ebs,
343
+ 'g3s.xlarge' => :ebs,
340
344
  'unknown' => :ephemeral,
341
345
  'db.m1.small' => :ephemeral, 'db.m1.medium' => :ephemeral, 'db.m1.large' => :ephemeral, 'db.m1.xlarge' => :ephemeral,
342
346
  'db.m2.xlarge' => :ephemeral, 'db.m2.2xlarge' => :ephemeral, 'db.m2.4xlarge' => :ephemeral, 'db.cr1.8xlarge' => :ephemeral,
@@ -486,6 +490,7 @@ module AwsPricing
486
490
  'g3.4xlarge' => [ 437, 20000], # EBSOptimized
487
491
  'g3,8xlarge' => [ 875, 40000], # EBSOptimized
488
492
  'g3.16xlarge'=> [1750, 80000], # EBSOptimized
493
+ 'g3s.xlarge' => [100, 5000], # EBSOptimized
489
494
  'h1.2xlarge' => [ 218, 12000], # EBSOptimized
490
495
  'h1.4xlarge' => [ 437, 20000], # EBSOptimized
491
496
  'h1.8xlarge' => [ 875, 40000], # EBSOptimized
@@ -28,6 +28,7 @@ module AwsPricing
28
28
  'p3' => { "2xlarge"=>8, "8xlarge"=>2, "16xlarge"=>1 },
29
29
  'g2' => { "2xlarge"=>4, "8xlarge"=>1 },
30
30
  'g3' => { "4xlarge"=>4, "8xlarge"=>2, "16xlarge"=>1 },
31
+ 'g3s' => { "xlarge" => 1},
31
32
  'f1' => { "2xlarge"=>8, "4xlarge"=>4, "16xlarge" =>1 },
32
33
  'm3' => { "medium"=>32, "large"=>16, "xlarge"=>8, "2xlarge"=>4 },
33
34
  'd2' => { "xlarge"=>8, "2xlarge"=>4, "4xlarge"=>2, "8xlarge"=>1 },
@@ -65,6 +65,7 @@ module AwsPricing
65
65
  'CurrentGen' => { # G2=GPU Graphics, G3=GPU-3 Graphics, P2=GPU Computes, P3=GPU-3 Computes, F1=FPGA Accelerated
66
66
  'G2' => ['g2.2xlarge', 'g2.8xlarge'],
67
67
  'G3' => ['g3.4xlarge', 'g3.8xlarge', 'g3.16xlarge'],
68
+ 'G3S' => ['g3s.xlarge'],
68
69
  'P2' => ['p2.xlarge', 'p2.8xlarge', 'p2.16xlarge'],
69
70
  'P3' => ['p3.2xlarge', 'p3.8xlarge', 'p3.16xlarge'],
70
71
  'F1' => ['f1.2xlarge', 'f1.4xlarge', 'f1.16xlarge'],
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.121' # [major,minor.fix]: adding support to allow instance profile population
11
+ VERSION = '0.1.122' # [major,minor.fix]: Support for g3s.xlarge instances
12
12
  end
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.121
4
+ version: 0.1.122
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby library for retrieving pricing for Amazon Web Services
14
14
  email:
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project: amazon-pricing
93
- rubygems_version: 2.4.8
93
+ rubygems_version: 2.6.14
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Amazon Web Services Pricing Ruby gem