fog-aws 3.14.0 → 3.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8af574874772df5b7a7e51819b23f554543472c6cef0b4ff86addac3b0c24b7
4
- data.tar.gz: f5171df32eec2c204d27ce7ac7ef361d5b7bc9c0761b6b95efd347b977deb97c
3
+ metadata.gz: d49d93b5a31789230c04265427a1f030d971e30bc7e0fffa32b0396ee4beb899
4
+ data.tar.gz: 70083f86f427d17a92f39044e7a5d6cb06c8591e2b9913e760a0fff839672b9f
5
5
  SHA512:
6
- metadata.gz: 0526c83e1825435460136d7afa5f2467e88de9171ed64fcbe0fc75871ffd2564435b310f54585de0e24e2dbb38d36fa969952c0da98787e6d43fb8128950ad36
7
- data.tar.gz: b9282f04b1b59446ab5781154932461d9230e6ef58dde2d573dd8bc488722faa02e54b77a376bda9e1ab8391a673c44bd975f24be9e1ade9ec7b30f1b817c70f
6
+ metadata.gz: 957f2207642f1d2336233f0a5d892c0873274b3069c5a92835e0b8ba727ac93387520ee5ea1b676bb7872f061b640b5f9c95cd04e44cdd429b49c4b4a828b011
7
+ data.tar.gz: b62d8eb328fcd947ad5221646912ff8c9473baeb12b3b8a638292ac025e35bed68acf5efc01800aeaae49f828980719ff755b29cada556a9dd0ebe398bfe8723
data/CHANGELOG.md CHANGED
@@ -1,8 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.16.0](https://github.com/fog/fog-aws/tree/v3.16.0) (2023-01-26)
4
+
5
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.15.0...v3.16.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - README lists incorrect usage of IAM auth [\#663](https://github.com/fog/fog-aws/issues/663)
10
+ - How can i config to use s3 in localstack [\#657](https://github.com/fog/fog-aws/issues/657)
11
+ - Fog::Storage::AWS::Files#each always iterates over entire collection [\#232](https://github.com/fog/fog-aws/issues/232)
12
+ - superclass mismatch for class AWS [\#655](https://github.com/fog/fog-aws/issues/655)
13
+ - Lambda IAM Role Not Working [\#650](https://github.com/fog/fog-aws/issues/650)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - adding missing region ap-southeast-4 [\#665](https://github.com/fog/fog-aws/pull/665) ([emptyhammond](https://github.com/emptyhammond))
18
+ o
19
+ - adding missing region eu-south-2 [\#662](https://github.com/fog/fog-aws/pull/662) ([ivangool](https://github.com/ivangool))
20
+ - Bump actions/dependency-review-action from 2 to 3 [\#659](https://github.com/fog/fog-aws/pull/659) ([dependabot[bot]](https://github.com/apps/dependabot))
21
+ - Update aws.rb [\#658](https://github.com/fog/fog-aws/pull/658) ([ivangool](https://github.com/ivangool))
22
+ - Bump actions/stale from 5 to 6 [\#656](https://github.com/fog/fog-aws/pull/656) ([dependabot[bot]](https://github.com/apps/dependabot))
23
+
24
+ ## [v3.15.0](https://github.com/fog/fog-aws/tree/v3.15.0) (2022-09-12)
25
+
26
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.14.0...v3.15.0)
27
+
28
+ **Closed issues:**
29
+
30
+ - URI.decode is obsolete \(and not available in Ruby 3.0\) [\#653](https://github.com/fog/fog-aws/issues/653)
31
+ - S3: File copy not working outside us-east-1 region [\#645](https://github.com/fog/fog-aws/issues/645)
32
+ - Unable to list, update and remove RDS tags in AWS GovCloud Account regions. [\#644](https://github.com/fog/fog-aws/issues/644)
33
+ - Documentation links broken / 404 [\#642](https://github.com/fog/fog-aws/issues/642)
34
+
35
+ **Merged pull requests:**
36
+
37
+ - Replace URI.decode as obsolete, and removed in Ruby 3.0 [\#654](https://github.com/fog/fog-aws/pull/654) ([kuahyeow](https://github.com/kuahyeow))
38
+ - Fix typo in readme [\#652](https://github.com/fog/fog-aws/pull/652) ([geemus](https://github.com/geemus))
39
+ - change sync\_clock to plain GET [\#651](https://github.com/fog/fog-aws/pull/651) ([duckworth](https://github.com/duckworth))
40
+ - Update README file with download url example [\#649](https://github.com/fog/fog-aws/pull/649) ([lucasocon](https://github.com/lucasocon))
41
+ - Bump actions/dependency-review-action from 1 to 2 [\#648](https://github.com/fog/fog-aws/pull/648) ([dependabot[bot]](https://github.com/apps/dependabot))
42
+ - add x2gd and t4g instance flavours [\#647](https://github.com/fog/fog-aws/pull/647) ([mushyy](https://github.com/mushyy))
43
+ - Fix a typo in CHANGELOG [\#646](https://github.com/fog/fog-aws/pull/646) ([y-yagi](https://github.com/y-yagi))
44
+
3
45
  ## [v3.14.0](https://github.com/fog/fog-aws/tree/v3.14.0) (2022-05-09)
4
46
 
5
- [Full Changelog](https://github.com/fog/fog-aws/compare/v3.13.0...HEAD)
47
+ [Full Changelog](https://github.com/fog/fog-aws/compare/v3.13.0...v3.14.0)
6
48
 
7
49
  **Closed issues:**
8
50
 
@@ -10,7 +52,7 @@
10
52
 
11
53
  **Merged pull requests:**
12
54
 
13
- - RDD tags issue in AWS GovCloud Account regions. [\#643](https://github.com/fog/fog-aws/pull/643) ([svavhal](https://github.com/svavhal))
55
+ - RDS tags issue in AWS GovCloud Account regions. [\#643](https://github.com/fog/fog-aws/pull/643) ([svavhal](https://github.com/svavhal))
14
56
  - Create codeql.yml [\#641](https://github.com/fog/fog-aws/pull/641) ([naveensrinivasan](https://github.com/naveensrinivasan))
15
57
  - chore\(deps\): Included dependency review [\#640](https://github.com/fog/fog-aws/pull/640) ([naveensrinivasan](https://github.com/naveensrinivasan))
16
58
  - Bump actions/stale from 4 to 5 [\#639](https://github.com/fog/fog-aws/pull/639) ([dependabot[bot]](https://github.com/apps/dependabot))
@@ -712,7 +754,6 @@
712
754
 
713
755
  - How to setup private files with CloudFront? [\#275](https://github.com/fog/fog-aws/issues/275)
714
756
  - Feature: Custom Managed Policies [\#272](https://github.com/fog/fog-aws/issues/272)
715
- - Question: which aws-sdk version is used [\#270](https://github.com/fog/fog-aws/issues/270)
716
757
  - Support an IAM list\_attached\_role\_policies method [\#191](https://github.com/fog/fog-aws/issues/191)
717
758
 
718
759
  **Merged pull requests:**
data/README.md CHANGED
@@ -106,6 +106,20 @@ directory.files
106
106
  directory.files.new(key: 'user/1/Gemfile').url(Time.now + 60)
107
107
  ```
108
108
 
109
+ ##### Generate download URL
110
+ You should pass an option argument that contains the `query` key with `response-content-disposition` inside indicating that is an attachment and the filename to be used when downloaded.
111
+
112
+ ```ruby
113
+ options = {
114
+ query: {
115
+ 'response-content-disposition' => "attachment; filename=#{key}"
116
+ }
117
+ }
118
+
119
+ directory.files.new(key: 'user/1/Gemfile').url(Time.now + 60, options)
120
+ ```
121
+
122
+
109
123
  ##### Controlling credential refresh time with IAM authentication
110
124
 
111
125
  When using IAM authentication with
@@ -118,7 +132,7 @@ that will not last as long as its requested expiration time if
118
132
  the remainder of the authentication token lifetime was shorter.
119
133
 
120
134
  ```ruby
121
- s3 = Fog::Storage.new(provider: 'AWS', use_iam_auth: true)
135
+ s3 = Fog::Storage.new(provider: 'AWS', use_iam_profile: true)
122
136
  directory = s3.directories.get('gaudi-portal-dev', prefix: 'user/1/')
123
137
 
124
138
  directory.files.new(key: 'user/1/Gemfile').url(Time.now + 60)
@@ -140,7 +154,7 @@ is lower than 60 seconds:
140
154
  ```ruby
141
155
  s3 = Fog::Storage.new(
142
156
  provider: 'AWS',
143
- use_iam_auth: true,
157
+ use_iam_profile: true,
144
158
  aws_credentials_refresh_threshold_seconds: 60
145
159
  )
146
160
  directory = s3.directories.get('gaudi-portal-dev', prefix: 'user/1/')
@@ -286,6 +286,76 @@ module Fog
286
286
  :ebs_optimized_available => true,
287
287
  :instance_store_volumes => 0
288
288
  },
289
+ {
290
+ :id => 't4g.nano',
291
+ :name => 'T4G Nano Instace',
292
+ :bits => 64,
293
+ :cores => 2,
294
+ :disk => 0,
295
+ :ram => 537,
296
+ :ebs_optimized_available => true,
297
+ :instance_store_volumes => 0
298
+ },
299
+ {
300
+ :id => 't4g.micro',
301
+ :name => 'T4G Micro Instance',
302
+ :bits => 64,
303
+ :cores => 2,
304
+ :disk => 0,
305
+ :ram => 1073,
306
+ :ebs_optimized_available => true,
307
+ :instance_store_volumes => 0
308
+ },
309
+ {
310
+ :id => 't4g.small',
311
+ :name => 'T4G Small Instance',
312
+ :bits => 64,
313
+ :cores => 2,
314
+ :disk => 0,
315
+ :ram => 2147,
316
+ :ebs_optimized_available => true,
317
+ :instance_store_volumes => 0
318
+ },
319
+ {
320
+ :id => 't4g.medium',
321
+ :name => 'T4G Medium Instace',
322
+ :bits => 64,
323
+ :cores => 2,
324
+ :disk => 0,
325
+ :ram => 4295,
326
+ :ebs_optimized_available => true,
327
+ :instance_store_volumes => 0
328
+ },
329
+ {
330
+ :id => 't4g.large',
331
+ :name => 'T4G Large Instance',
332
+ :bits => 64,
333
+ :cores => 2,
334
+ :disk => 0,
335
+ :ram => 8590,
336
+ :ebs_optimized_available => true,
337
+ :instance_store_volumes => 0
338
+ },
339
+ {
340
+ :id => 't4g.xlarge',
341
+ :name => 'T4G Extra Large Instance',
342
+ :bits => 64,
343
+ :cores => 4,
344
+ :disk => 0,
345
+ :ram => 17180,
346
+ :ebs_optimized_available => true,
347
+ :instance_store_volumes => 0
348
+ },
349
+ {
350
+ :id => 't4g.2xlarge',
351
+ :name => 'T4G Double Extra Large Instance',
352
+ :bits => 64,
353
+ :cores => 8,
354
+ :disk => 0,
355
+ :ram => 34360,
356
+ :ebs_optimized_available => true,
357
+ :instance_store_volumes => 0
358
+ },
289
359
  {
290
360
  :id => 'm6g.medium',
291
361
  :name => 'M6G Medium',
@@ -2236,6 +2306,96 @@ module Fog
2236
2306
  :ebs_optimized_available => true,
2237
2307
  :instance_store_volumes => 2
2238
2308
  },
2309
+ {
2310
+ :id => 'x2gd.medium',
2311
+ :name => 'X2gd Medium Instance',
2312
+ :bits => 64,
2313
+ :cores => 1,
2314
+ :disk => 59,
2315
+ :ram => 17180,
2316
+ :ebs_optimized_available => true,
2317
+ :instance_store_volumes => 0
2318
+ },
2319
+ {
2320
+ :id => 'x2gd.large',
2321
+ :name => 'X2gd Large Instance',
2322
+ :bits => 64,
2323
+ :cores => 2,
2324
+ :disk => 118,
2325
+ :ram => 34360,
2326
+ :ebs_optimized_available => true,
2327
+ :instance_store_volumes => 0
2328
+ },
2329
+ {
2330
+ :id => 'x2gd.xlarge',
2331
+ :name => 'X2gd Extra Large Instance',
2332
+ :bits => 64,
2333
+ :cores => 4,
2334
+ :disk => 237,
2335
+ :ram => 68719,
2336
+ :ebs_optimized_available => true,
2337
+ :instance_store_volumes => 0
2338
+ },
2339
+ {
2340
+ :id => 'x2gd.2xlarge',
2341
+ :name => 'X2gd Double Extra Large Instance',
2342
+ :bits => 64,
2343
+ :cores => 8,
2344
+ :disk => 475,
2345
+ :ram => 137439,
2346
+ :ebs_optimized_available => true,
2347
+ :instance_store_volumes => 0
2348
+ },
2349
+ {
2350
+ :id => 'x2gd.4xlarge',
2351
+ :name => 'X2gd Quadruple Extra Large Instance',
2352
+ :bits => 64,
2353
+ :cores => 16,
2354
+ :disk => 950,
2355
+ :ram => 274878,
2356
+ :ebs_optimized_available => true,
2357
+ :instance_store_volumes => 0
2358
+ },
2359
+ {
2360
+ :id => 'x2gd.8xlarge',
2361
+ :name => 'X2gd Octuple Extra Large Instance',
2362
+ :bits => 64,
2363
+ :cores => 32,
2364
+ :disk => 1900,
2365
+ :ram => 549756,
2366
+ :ebs_optimized_available => true,
2367
+ :instance_store_volumes => 0
2368
+ },
2369
+ {
2370
+ :id => 'x2gd.12xlarge',
2371
+ :name => 'X2gd Twelve Extra Large Instance',
2372
+ :bits => 64,
2373
+ :cores => 48,
2374
+ :disk => 2850,
2375
+ :ram => 824634,
2376
+ :ebs_optimized_available => true,
2377
+ :instance_store_volumes => 0
2378
+ },
2379
+ {
2380
+ :id => 'x2gd.16xlarge',
2381
+ :name => 'X2gd Sixteen Extra Large Instance',
2382
+ :bits => 64,
2383
+ :cores => 64,
2384
+ :disk => 3800,
2385
+ :ram => 1099512,
2386
+ :ebs_optimized_available => true,
2387
+ :instance_store_volumes => 0
2388
+ },
2389
+ {
2390
+ :id => 'x2gd.metal',
2391
+ :name => 'X2gd Metal',
2392
+ :bits => 64,
2393
+ :cores => 64,
2394
+ :disk => 3800,
2395
+ :ram => 1099512,
2396
+ :ebs_optimized_available => true,
2397
+ :instance_store_volumes => 0
2398
+ },
2239
2399
  {
2240
2400
  :id => "u-6tb1.metal",
2241
2401
  :name => "U 6TB Metal",
@@ -14,7 +14,7 @@ module Fog
14
14
  when 'GroupName', 'PolicyName'
15
15
  @response[name] = value
16
16
  when 'PolicyDocument'
17
- @response['Policy'][name] = if decoded_string = URI.decode(value)
17
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
18
18
  Fog::JSON.decode(decoded_string) rescue value
19
19
  else
20
20
  value
@@ -12,7 +12,7 @@ module Fog
12
12
  when 'RoleName', 'PolicyName'
13
13
  @response['Policy'][name] = value
14
14
  when 'PolicyDocument'
15
- @response['Policy'][name] = if decoded_string = URI.decode(value)
15
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
16
16
  Fog::JSON.decode(decoded_string) rescue value
17
17
  else
18
18
  value
@@ -14,7 +14,7 @@ module Fog
14
14
  when 'UserName', 'PolicyName'
15
15
  @response['Policy'][name] = value
16
16
  when 'PolicyDocument'
17
- @response['Policy'][name] = if decoded_string = URI.decode(value)
17
+ @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value)
18
18
  Fog::JSON.decode(decoded_string) rescue value
19
19
  else
20
20
  value
@@ -18,7 +18,7 @@ module Fog
18
18
  when 'IsDefaultVersion'
19
19
  @version[name] = (value == 'true')
20
20
  when 'Document'
21
- @version[name] = if decoded_string = URI.decode(value)
21
+ @version[name] = if decoded_string = URI.decode_www_form_component(value)
22
22
  Fog::JSON.decode(decoded_string) rescue value
23
23
  else
24
24
  value
@@ -6,7 +6,7 @@ module Fog
6
6
  #
7
7
  def sync_clock
8
8
  response = begin
9
- get_service
9
+ Excon.get("#{@scheme}://#{@host}")
10
10
  rescue Excon::Errors::HTTPStatusError => error
11
11
  error.response
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AWS
3
- VERSION = "3.14.0"
3
+ VERSION = "3.16.0"
4
4
  end
5
5
  end
data/lib/fog/aws.rb CHANGED
@@ -224,13 +224,13 @@ module Fog
224
224
  'ap-east-1',
225
225
  'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3',
226
226
  'ap-south-1',
227
- 'ap-southeast-1', 'ap-southeast-2',
227
+ 'ap-southeast-1', 'ap-southeast-2', 'ap-southeast-3', 'ap-southeast-4',
228
228
  'ca-central-1',
229
229
  'cn-north-1',
230
230
  'cn-northwest-1',
231
231
  'eu-central-1',
232
232
  'eu-north-1',
233
- 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-south-1',
233
+ 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-south-1', 'eu-south-2',
234
234
  'me-south-1',
235
235
  'us-east-1', 'us-east-2',
236
236
  'us-west-1', 'us-west-2',
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.0
4
+ version: 3.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
8
8
  - Wesley Beary
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-05-09 00:00:00.000000000 Z
12
+ date: 2023-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -1443,7 +1443,7 @@ homepage: https://github.com/fog/fog-aws
1443
1443
  licenses:
1444
1444
  - MIT
1445
1445
  metadata: {}
1446
- post_install_message:
1446
+ post_install_message:
1447
1447
  rdoc_options: []
1448
1448
  require_paths:
1449
1449
  - lib
@@ -1458,8 +1458,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1458
1458
  - !ruby/object:Gem::Version
1459
1459
  version: '0'
1460
1460
  requirements: []
1461
- rubygems_version: 3.3.5
1462
- signing_key:
1461
+ rubygems_version: 3.4.1
1462
+ signing_key:
1463
1463
  specification_version: 4
1464
1464
  summary: Module for the 'fog' gem to support Amazon Web Services.
1465
1465
  test_files: []