awscosts 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/fixtures/vcr_cassettes/AWSCosts_EBS.yml +506 -202
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_linux.yml +4588 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_rhel.yml +4588 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_sles.yml +4588 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_windows.yml +4588 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_windows_with_sql.yml +3538 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2OnDemand/EC2_type_of_windows_with_sql_web.yml +4063 -1270
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_linux.yml +5973 -2786
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_rhel.yml +5972 -2785
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_sles.yml +5972 -2785
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_windows.yml +5973 -2786
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_windows_with_sql.yml +5973 -2786
- data/fixtures/vcr_cassettes/AWSCosts_EC2ReservedInstances/Reserved_instances/in_the_us-east-1_region/EC2_type_of_windows_with_sql_web.yml +5972 -2785
- data/fixtures/vcr_cassettes/AWSCosts_ELB.yml +293 -96
- data/fixtures/vcr_cassettes/AWSCosts_EMR.yml +4963 -744
- data/fixtures/vcr_cassettes/AWSCosts_ElasticIPs.yml +386 -135
- data/fixtures/vcr_cassettes/AWSCosts_S3DataTransfer.yml +935 -346
- data/fixtures/vcr_cassettes/AWSCosts_S3Requests.yml +464 -147
- data/fixtures/vcr_cassettes/AWSCosts_S3Storage.yml +1406 -568
- data/lib/awscosts/ec2.rb +1 -1
- data/lib/awscosts/s3.rb +15 -4
- data/lib/awscosts/version.rb +1 -1
- data/spec/awscosts/ec2_ebs_spec.rb +27 -23
- data/spec/awscosts/ec2_elastic_ips_spec.rb +10 -6
- data/spec/awscosts/ec2_elb_spec.rb +2 -2
- data/spec/awscosts/ec2_on_demand_spec.rb +6 -3
- data/spec/awscosts/ec2_reserved_instances_spec.rb +4 -4
- data/spec/awscosts/ec2_spec.rb +6 -2
- data/spec/awscosts/s3_data_transfer_spec.rb +6 -2
- data/spec/awscosts/s3_requests_spec.rb +6 -3
- data/spec/awscosts/s3_storage_spec.rb +8 -3
- metadata +20 -40
@@ -6,71 +6,59 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
|
-
headers:
|
10
|
-
connection:
|
11
|
-
- close
|
9
|
+
headers: {}
|
12
10
|
response:
|
13
11
|
status:
|
14
12
|
code: 301
|
15
13
|
message: Moved Permanently
|
16
14
|
headers:
|
17
15
|
date:
|
18
|
-
-
|
16
|
+
- Wed, 03 Jun 2015 01:57:40 GMT
|
19
17
|
server:
|
20
18
|
- Server
|
21
19
|
x-frame-options:
|
22
20
|
- SAMEORIGIN
|
23
21
|
x-amz-id-1:
|
24
|
-
-
|
25
|
-
x-amz-id-2:
|
26
|
-
- I3OMEZAOHQLTXwCScZ7RpQ7Bp90AZrZdhgi9p+Sp+/NKHnUjuCzRNUs5dL6pOKXLV3zUma/1PC4K
|
27
|
-
rsZUHV+c7SjBaoCFvjab
|
22
|
+
- 0Y0E1T6ZFH91Z0M1QX0Q
|
28
23
|
location:
|
29
|
-
- /ec2/pricing/pricing-elastic-ips.json/
|
24
|
+
- "/ec2/pricing/pricing-elastic-ips.json/"
|
30
25
|
cache-control:
|
31
26
|
- no-store, no-cache, must-revalidate
|
32
27
|
content-length:
|
33
28
|
- '0'
|
34
|
-
content-type:
|
35
|
-
- text/plain
|
36
29
|
vary:
|
37
30
|
- User-Agent
|
31
|
+
content-type:
|
32
|
+
- application/json
|
38
33
|
body:
|
39
|
-
encoding:
|
34
|
+
encoding: UTF-8
|
40
35
|
string: ''
|
41
36
|
http_version: '1.1'
|
42
|
-
recorded_at:
|
37
|
+
recorded_at: Wed, 03 Jun 2015 01:57:51 GMT
|
43
38
|
- request:
|
44
39
|
method: get
|
45
40
|
uri: http://aws.amazon.com/ec2/pricing/pricing-elastic-ips.json/
|
46
41
|
body:
|
47
42
|
encoding: US-ASCII
|
48
43
|
string: ''
|
49
|
-
headers:
|
50
|
-
connection:
|
51
|
-
- close
|
44
|
+
headers: {}
|
52
45
|
response:
|
53
46
|
status:
|
54
47
|
code: 301
|
55
48
|
message: Moved Permanently
|
56
49
|
headers:
|
57
50
|
date:
|
58
|
-
-
|
51
|
+
- Wed, 03 Jun 2015 01:57:40 GMT
|
59
52
|
server:
|
60
53
|
- Server
|
61
54
|
x-frame-options:
|
62
55
|
- SAMEORIGIN
|
63
56
|
x-amz-id-1:
|
64
|
-
-
|
65
|
-
x-amz-id-2:
|
66
|
-
- Y2VF4nAnt893b3ZMEhAaX+ojt8QS9VEKKn2OTgJMPfdcFVnjtklktxl/OXNLukEyxS2QbwoLtu1C
|
67
|
-
XdLP8+7fhugPY/ZBtaWU
|
57
|
+
- 0M8901Q40G9VBQ4GDJSA
|
68
58
|
location:
|
69
59
|
- https://a0.awsstatic.com/pricing/1/deprecated/ec2/pricing-elastic-ips.json
|
70
60
|
content-type:
|
71
61
|
- text/html;charset=UTF-8
|
72
|
-
content-language:
|
73
|
-
- en-US
|
74
62
|
content-length:
|
75
63
|
- '0'
|
76
64
|
set-cookie:
|
@@ -78,10 +66,10 @@ http_interactions:
|
|
78
66
|
vary:
|
79
67
|
- User-Agent
|
80
68
|
body:
|
81
|
-
encoding:
|
69
|
+
encoding: UTF-8
|
82
70
|
string: ''
|
83
71
|
http_version: '1.1'
|
84
|
-
recorded_at:
|
72
|
+
recorded_at: Wed, 03 Jun 2015 01:57:52 GMT
|
85
73
|
- request:
|
86
74
|
method: get
|
87
75
|
uri: https://a0.awsstatic.com/pricing/1/deprecated/ec2/pricing-elastic-ips.json
|
@@ -91,27 +79,25 @@ http_interactions:
|
|
91
79
|
headers:
|
92
80
|
cookie:
|
93
81
|
- aws_lang=en
|
94
|
-
connection:
|
95
|
-
- close
|
96
82
|
response:
|
97
83
|
status:
|
98
84
|
code: 200
|
99
85
|
message: OK
|
100
86
|
headers:
|
101
87
|
content-type:
|
102
|
-
- application/json
|
88
|
+
- application/json
|
103
89
|
content-length:
|
104
|
-
- '
|
90
|
+
- '8362'
|
105
91
|
connection:
|
106
92
|
- close
|
107
93
|
date:
|
108
|
-
-
|
94
|
+
- Wed, 03 Jun 2015 01:57:43 GMT
|
109
95
|
cache-control:
|
110
96
|
- max-age=3600
|
111
97
|
last-modified:
|
112
|
-
-
|
98
|
+
- Tue, 02 Jun 2015 18:19:19 GMT
|
113
99
|
etag:
|
114
|
-
-
|
100
|
+
- '"b57b66396a64a77a81313ce3b69fd124"'
|
115
101
|
accept-ranges:
|
116
102
|
- bytes
|
117
103
|
server:
|
@@ -119,109 +105,374 @@ http_interactions:
|
|
119
105
|
x-cache:
|
120
106
|
- Miss from cloudfront
|
121
107
|
via:
|
122
|
-
- 1.1
|
108
|
+
- 1.1 93b5788f362379a4094dc028226a4a36.cloudfront.net (CloudFront)
|
123
109
|
x-amz-cf-id:
|
124
|
-
-
|
110
|
+
- chXVQs7fu9H16jEEZfzEqLnq1fzPCwGFl1BkdjVXf3XKFfo-GY7qQQ==
|
125
111
|
body:
|
126
|
-
encoding:
|
127
|
-
string:
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
112
|
+
encoding: UTF-8
|
113
|
+
string: |
|
114
|
+
{
|
115
|
+
"vers": 0.01,
|
116
|
+
"config": {
|
117
|
+
"currencies": [
|
118
|
+
"USD"
|
119
|
+
],
|
120
|
+
"rate": "perGB",
|
121
|
+
"regions": [
|
122
|
+
{
|
123
|
+
"region": "us-east",
|
124
|
+
"types": [
|
125
|
+
{
|
126
|
+
"values": [
|
127
|
+
{
|
128
|
+
"prices": {
|
129
|
+
"USD": "0.00"
|
130
|
+
},
|
131
|
+
"rate": "oneEIP"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"prices": {
|
135
|
+
"USD": "0.005"
|
136
|
+
},
|
137
|
+
"rate": "perAdditionalEIPPerHour"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"prices": {
|
141
|
+
"USD": "0.005"
|
142
|
+
},
|
143
|
+
"rate": "perNonAttachedPerHour"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"prices": {
|
147
|
+
"USD": "0.00"
|
148
|
+
},
|
149
|
+
"rate": "perRemapFirst100"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"prices": {
|
153
|
+
"USD": "0.10"
|
154
|
+
},
|
155
|
+
"rate": "perRemapOver100"
|
156
|
+
}
|
157
|
+
]
|
158
|
+
}
|
159
|
+
]
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"region": "us-west-2",
|
163
|
+
"types": [
|
164
|
+
{
|
165
|
+
"values": [
|
166
|
+
{
|
167
|
+
"prices": {
|
168
|
+
"USD": "0.00"
|
169
|
+
},
|
170
|
+
"rate": "oneEIP"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"prices": {
|
174
|
+
"USD": "0.005"
|
175
|
+
},
|
176
|
+
"rate": "perAdditionalEIPPerHour"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"prices": {
|
180
|
+
"USD": "0.005"
|
181
|
+
},
|
182
|
+
"rate": "perNonAttachedPerHour"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"prices": {
|
186
|
+
"USD": "0.00"
|
187
|
+
},
|
188
|
+
"rate": "perRemapFirst100"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"prices": {
|
192
|
+
"USD": "0.10"
|
193
|
+
},
|
194
|
+
"rate": "perRemapOver100"
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|
198
|
+
]
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"region": "us-west",
|
202
|
+
"types": [
|
203
|
+
{
|
204
|
+
"values": [
|
205
|
+
{
|
206
|
+
"prices": {
|
207
|
+
"USD": "0.00"
|
208
|
+
},
|
209
|
+
"rate": "oneEIP"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"prices": {
|
213
|
+
"USD": "0.005"
|
214
|
+
},
|
215
|
+
"rate": "perAdditionalEIPPerHour"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"prices": {
|
219
|
+
"USD": "0.005"
|
220
|
+
},
|
221
|
+
"rate": "perNonAttachedPerHour"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"prices": {
|
225
|
+
"USD": "0.00"
|
226
|
+
},
|
227
|
+
"rate": "perRemapFirst100"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"prices": {
|
231
|
+
"USD": "0.10"
|
232
|
+
},
|
233
|
+
"rate": "perRemapOver100"
|
234
|
+
}
|
235
|
+
]
|
236
|
+
}
|
237
|
+
]
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"region": "eu-ireland",
|
241
|
+
"types": [
|
242
|
+
{
|
243
|
+
"values": [
|
244
|
+
{
|
245
|
+
"prices": {
|
246
|
+
"USD": "0.00"
|
247
|
+
},
|
248
|
+
"rate": "oneEIP"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"prices": {
|
252
|
+
"USD": "0.005"
|
253
|
+
},
|
254
|
+
"rate": "perAdditionalEIPPerHour"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"prices": {
|
258
|
+
"USD": "0.005"
|
259
|
+
},
|
260
|
+
"rate": "perNonAttachedPerHour"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"prices": {
|
264
|
+
"USD": "0.00"
|
265
|
+
},
|
266
|
+
"rate": "perRemapFirst100"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"prices": {
|
270
|
+
"USD": "0.10"
|
271
|
+
},
|
272
|
+
"rate": "perRemapOver100"
|
273
|
+
}
|
274
|
+
]
|
275
|
+
}
|
276
|
+
]
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"region": "apac-sin",
|
280
|
+
"types": [
|
281
|
+
{
|
282
|
+
"values": [
|
283
|
+
{
|
284
|
+
"prices": {
|
285
|
+
"USD": "0.00"
|
286
|
+
},
|
287
|
+
"rate": "oneEIP"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"prices": {
|
291
|
+
"USD": "0.005"
|
292
|
+
},
|
293
|
+
"rate": "perAdditionalEIPPerHour"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"prices": {
|
297
|
+
"USD": "0.005"
|
298
|
+
},
|
299
|
+
"rate": "perNonAttachedPerHour"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"prices": {
|
303
|
+
"USD": "0.00"
|
304
|
+
},
|
305
|
+
"rate": "perRemapFirst100"
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"prices": {
|
309
|
+
"USD": "0.10"
|
310
|
+
},
|
311
|
+
"rate": "perRemapOver100"
|
312
|
+
}
|
313
|
+
]
|
314
|
+
}
|
315
|
+
]
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"region": "apac-tokyo",
|
319
|
+
"types": [
|
320
|
+
{
|
321
|
+
"values": [
|
322
|
+
{
|
323
|
+
"prices": {
|
324
|
+
"USD": "0.00"
|
325
|
+
},
|
326
|
+
"rate": "oneEIP"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"prices": {
|
330
|
+
"USD": "0.005"
|
331
|
+
},
|
332
|
+
"rate": "perAdditionalEIPPerHour"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"prices": {
|
336
|
+
"USD": "0.005"
|
337
|
+
},
|
338
|
+
"rate": "perNonAttachedPerHour"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"prices": {
|
342
|
+
"USD": "0.00"
|
343
|
+
},
|
344
|
+
"rate": "perRemapFirst100"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"prices": {
|
348
|
+
"USD": "0.10"
|
349
|
+
},
|
350
|
+
"rate": "perRemapOver100"
|
351
|
+
}
|
352
|
+
]
|
353
|
+
}
|
354
|
+
]
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"region": "apac-syd",
|
358
|
+
"types": [
|
359
|
+
{
|
360
|
+
"values": [
|
361
|
+
{
|
362
|
+
"prices": {
|
363
|
+
"USD": "0.00"
|
364
|
+
},
|
365
|
+
"rate": "oneEIP"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"prices": {
|
369
|
+
"USD": "0.005"
|
370
|
+
},
|
371
|
+
"rate": "perAdditionalEIPPerHour"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"prices": {
|
375
|
+
"USD": "0.005"
|
376
|
+
},
|
377
|
+
"rate": "perNonAttachedPerHour"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"prices": {
|
381
|
+
"USD": "0.00"
|
382
|
+
},
|
383
|
+
"rate": "perRemapFirst100"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"prices": {
|
387
|
+
"USD": "0.10"
|
388
|
+
},
|
389
|
+
"rate": "perRemapOver100"
|
390
|
+
}
|
391
|
+
]
|
392
|
+
}
|
393
|
+
]
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"region": "sa-east-1",
|
397
|
+
"types": [
|
398
|
+
{
|
399
|
+
"values": [
|
400
|
+
{
|
401
|
+
"prices": {
|
402
|
+
"USD": "0.00"
|
403
|
+
},
|
404
|
+
"rate": "oneEIP"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"prices": {
|
408
|
+
"USD": "0.005"
|
409
|
+
},
|
410
|
+
"rate": "perAdditionalEIPPerHour"
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"prices": {
|
414
|
+
"USD": "0.005"
|
415
|
+
},
|
416
|
+
"rate": "perNonAttachedPerHour"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"prices": {
|
420
|
+
"USD": "0.00"
|
421
|
+
},
|
422
|
+
"rate": "perRemapFirst100"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"prices": {
|
426
|
+
"USD": "0.10"
|
427
|
+
},
|
428
|
+
"rate": "perRemapOver100"
|
429
|
+
}
|
430
|
+
]
|
431
|
+
}
|
432
|
+
]
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"region": "us-gov-west-1",
|
436
|
+
"types": [
|
437
|
+
{
|
438
|
+
"values": [
|
439
|
+
{
|
440
|
+
"prices": {
|
441
|
+
"USD": "0.00"
|
442
|
+
},
|
443
|
+
"rate": "oneEIP"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"prices": {
|
447
|
+
"USD": "0.01"
|
448
|
+
},
|
449
|
+
"rate": "perAdditionalEIPPerHour"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"prices": {
|
453
|
+
"USD": "0.01"
|
454
|
+
},
|
455
|
+
"rate": "perNonAttachedPerHour"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"prices": {
|
459
|
+
"USD": "0.00"
|
460
|
+
},
|
461
|
+
"rate": "perRemapFirst100"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"prices": {
|
465
|
+
"USD": "0.10"
|
466
|
+
},
|
467
|
+
"rate": "perRemapOver100"
|
468
|
+
}
|
469
|
+
]
|
470
|
+
}
|
471
|
+
]
|
472
|
+
}
|
473
|
+
]
|
474
|
+
}
|
475
|
+
}
|
225
476
|
http_version: '1.1'
|
226
|
-
recorded_at:
|
227
|
-
recorded_with: VCR 2.
|
477
|
+
recorded_at: Wed, 03 Jun 2015 01:57:53 GMT
|
478
|
+
recorded_with: VCR 2.9.3
|