amazon-pricing 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -51,6 +51,9 @@ module AwsPricing
|
|
51
51
|
protected
|
52
52
|
# Returns [api_name, name]
|
53
53
|
def self.get_name(instance_type, api_name, is_reserved = false)
|
54
|
+
# Temporary hack: Amazon has released r3 instances but pricing has api_name with asterisk (e.g. "r3.large *")
|
55
|
+
api_name.sub!(" *", "")
|
56
|
+
|
54
57
|
# Let's handle new instances more gracefully
|
55
58
|
unless @@Name_Lookup.has_key? api_name
|
56
59
|
raise UnknownTypeError, "Unknown instance type #{instance_type} #{api_name}", caller
|
@@ -171,8 +171,7 @@ module AwsPricing
|
|
171
171
|
'g2.2xlarge' => 'Cluster GPU Double Extra Large',
|
172
172
|
'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',
|
173
173
|
'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',
|
174
|
-
|
175
|
-
#'r3.large *' => 'Memory Optimized Large', 'r3.xlarge *' => 'Memory Optimized Extra Large', 'r3.2xlarge *' => 'Memory Optimized Double Extra Large', 'r3.4xlarge *' => 'Memory Optimized Quadruple Extra Large', 'r3.8xlarge *' => 'Memory Optimized Eight Extra Large',
|
174
|
+
'r3.large' => 'Memory Optimized Large', 'r3.xlarge' => 'Memory Optimized Extra Large', 'r3.2xlarge' => 'Memory Optimized Double Extra Large', 'r3.4xlarge' => 'Memory Optimized Quadruple Extra Large', 'r3.8xlarge' => 'Memory Optimized Eight Extra Large',
|
176
175
|
}
|
177
176
|
@@Disk_Lookup = {
|
178
177
|
'm1.small' => 160, 'm1.medium' => 410, 'm1.large' =>850, 'm1.xlarge' => 1690,
|
@@ -191,8 +190,7 @@ module AwsPricing
|
|
191
190
|
'db.t1.micro' => 160,
|
192
191
|
'c3.large' => 32, 'c3.xlarge' => 80, 'c3.2xlarge' => 160, 'c3.4xlarge' => 320, 'c3.8xlarge' => 640,
|
193
192
|
'i2.large' => 360, 'i2.xlarge' => 720, 'i2.2xlarge' => 1440, 'i2.4xlarge' => 2880, 'i2.8xlarge' => 5760,
|
194
|
-
|
195
|
-
#'r3.large *' => 0, 'r3.xlarge *' => 0, 'r3.2xlarge *' => 0, 'r3.4xlarge *' => 0, 'r3.8xlarge *' => 0,
|
193
|
+
'r3.large' => 32, 'r3.xlarge' => 80, 'r3.2xlarge' => 160, 'r3.4xlarge' => 320, 'r3.8xlarge' => 640,
|
196
194
|
}
|
197
195
|
@@Platform_Lookup = {
|
198
196
|
'm1.small' => 32, 'm1.medium' => 32, 'm1.large' => 64, 'm1.xlarge' => 64,
|
@@ -211,8 +209,7 @@ module AwsPricing
|
|
211
209
|
'db.t1.micro' => 64,
|
212
210
|
'c3.large' => 64, 'c3.xlarge' => 64, 'c3.2xlarge' => 64, 'c3.4xlarge' => 64, 'c3.8xlarge' => 64,
|
213
211
|
'i2.large' => 64, 'i2.xlarge' => 64, 'i2.2xlarge' => 64, 'i2.4xlarge' => 64, 'i2.8xlarge' => 64,
|
214
|
-
|
215
|
-
#'r3.large *' => 64, 'r3.xlarge *' => 64, 'r3.2xlarge *' => 64, 'r3.4xlarge *' => 64, 'r3.8xlarge *' => 64,
|
212
|
+
'r3.large' => 64, 'r3.xlarge' => 64, 'r3.2xlarge' => 64, 'r3.4xlarge' => 64, 'r3.8xlarge' => 64,
|
216
213
|
}
|
217
214
|
@@Disk_Type_Lookup = {
|
218
215
|
'm1.small' => :ephemeral, 'm1.medium' => :ephemeral, 'm1.large' => :ephemeral, 'm1.xlarge' => :ephemeral,
|
@@ -78,6 +78,9 @@ module AwsPricing
|
|
78
78
|
# Returns [api_name, name]
|
79
79
|
# e.g. memDBCurrentGen, db.m3.medium
|
80
80
|
def self.get_name(instance_type, api_name, is_reserved = false)
|
81
|
+
# Temporary hack: Amazon has released r3 instances but pricing has api_name with asterisk (e.g. "r3.large *")
|
82
|
+
api_name.sub!(" *", "")
|
83
|
+
|
81
84
|
|
82
85
|
# Note: These api names are specific to RDS, not sure why Amazon has given them different API names (note: they have leading "db.")
|
83
86
|
#'cr1.8xl' => 'High-Memory Cluster Eight Extra Large',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
15
15
|
email:
|
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
segments:
|
66
66
|
- 0
|
67
|
-
hash: -
|
67
|
+
hash: -4159457538558354118
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash: -
|
76
|
+
hash: -4159457538558354118
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project: amazon-pricing
|
79
79
|
rubygems_version: 1.8.25
|