athens 0.3.5 → 0.3.6

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: b0751e4a11947a14a576b1a2b251c53af99a90b7b88e15617f810767efb3cce9
4
- data.tar.gz: a6dbc5ef43c672a80df58c68159614c02a25a4b377039111d68ac104d9712473
3
+ metadata.gz: dce70371a1505fb7f63bfbcd872ba136b998b146b005e084ae7d4f3bf5394c7b
4
+ data.tar.gz: 69e24000860943707e5b52f24dbb2289e76e0dd35c970ca9f50a59aab07289cd
5
5
  SHA512:
6
- metadata.gz: 629cb6c7f875a261ee1285b6e92acf688e51f81efaecd7423fccc14f17bc8e14b54e433a2b02a03abf3bc5c9cc0ddb8c08f3771623340e2e9d16437e448b70ef
7
- data.tar.gz: d38b3a46dc522de7de9cb66e457d6a7e10d0baaa77e432262a1ff3bb01104326a405c4341bce6a1d8d77fc24fdd6b51217c8bc93a364002db364e48bd5581cca
6
+ metadata.gz: e7b59f65553704094baf50bb4d609bacb2ec698f788ff89f27a679e9663418aa3c08282dbcd9a5a65c42a9b15065a74a2b35af111900b0965af103ef5538e29c
7
+ data.tar.gz: 62c44387712ce5bdc94da5f4091b676d7ef6e4a330ddd90732bc92f6e64cfb61a8078f93e3aaf930be04fc1e952a0c827cb4177c3c6226c37eedcbfee21b7aca
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /tmp/
9
9
 
10
10
  /.vagrant/
11
- /ubuntu-xenial-16.04-cloudimg-console.log
11
+ /ubuntu-xenial-16.04-cloudimg-console.log
12
+ /vendor/
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.6 / 2021-11-16
2
+
3
+ * Addition of :result_encryption as a configuration option to change encryption options for query results (https://github.com/getletterpress/athens/issues/12)
4
+ * Bumped development gem versions to latest releases
5
+
1
6
  ## 0.3.5 / 2021-05-19
2
7
 
3
8
  * Addition of :aws_profile as a configuration option for credentials (thanks [oisin](https://github.com/oisin))
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- athens (0.3.5)
4
+ athens (0.3.6)
5
5
  aws-sdk-athena (~> 1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- aws-eventstream (1.1.1)
11
- aws-partitions (1.458.0)
12
- aws-sdk-athena (1.37.0)
13
- aws-sdk-core (~> 3, >= 3.112.0)
10
+ aws-eventstream (1.2.0)
11
+ aws-partitions (1.530.0)
12
+ aws-sdk-athena (1.43.0)
13
+ aws-sdk-core (~> 3, >= 3.122.0)
14
14
  aws-sigv4 (~> 1.1)
15
- aws-sdk-core (3.114.0)
15
+ aws-sdk-core (3.122.1)
16
16
  aws-eventstream (~> 1, >= 1.0.2)
17
- aws-partitions (~> 1, >= 1.239.0)
17
+ aws-partitions (~> 1, >= 1.525.0)
18
18
  aws-sigv4 (~> 1.1)
19
19
  jmespath (~> 1.0)
20
- aws-sigv4 (1.2.3)
20
+ aws-sigv4 (1.4.0)
21
21
  aws-eventstream (~> 1, >= 1.0.2)
22
22
  jmespath (1.4.0)
23
- rake (13.0.3)
23
+ rake (13.0.6)
24
24
  rexml (3.2.5)
25
25
 
26
26
  PLATFORMS
data/README.md CHANGED
@@ -92,6 +92,7 @@ Athens.configure do |config|
92
92
  config.aws_profile = 'myprofile' # Optional
93
93
  config.aws_region = 'us-east-1' # Optional
94
94
  config.wait_polling_period = 0.25 # Optional - What period should we poll for the complete query?
95
+ config.result_encryption = nil # Optional, see below
95
96
  end
96
97
  ```
97
98
 
@@ -105,6 +106,14 @@ conn = Athens::Connection.new(aws_client_override: {})
105
106
 
106
107
  Take a look at the [AWS Athena SDK](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Athena/Client.html#initialize-instance_method) for a list of all the available options.
107
108
 
109
+ The `result_encryption` option controls how the Athens results will be encrypted at the `output_location`. By default it's set to use the Amazon SSE encryption if you don't set it at all:
110
+
111
+ ```ruby
112
+ { encryption_option: "SSE_S3" }
113
+ ```
114
+
115
+ If you set it to `nil`, it'll default to the bucket encryption settings. You can also use a customer kms key, see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Athena/Types/EncryptionConfiguration.html for the correct format.
116
+
108
117
  ### Advanced Usage
109
118
 
110
119
  Providing a database name to the connection is optional, if you omit the name you'll have to specify it in your query:
@@ -5,7 +5,8 @@ module Athens
5
5
  :aws_region,
6
6
  :output_location,
7
7
  :wait_polling_period,
8
- :aws_profile
8
+ :aws_profile,
9
+ :result_encryption
9
10
 
10
11
  def initialize
11
12
  @aws_access_key = nil
@@ -14,6 +15,7 @@ module Athens
14
15
  @output_location = nil
15
16
  @wait_polling_period = 0.25
16
17
  @aws_profile = nil
18
+ @result_encryption = { encryption_option: "SSE_S3" }
17
19
  end
18
20
  end
19
21
  end
@@ -48,9 +48,7 @@ module Athens
48
48
  def result_config
49
49
  Aws::Athena::Types::ResultConfiguration.new(
50
50
  output_location: Athens.configuration.output_location,
51
- encryption_configuration: {
52
- encryption_option: "SSE_S3"
53
- }
51
+ encryption_configuration: Athens.configuration.result_encryption
54
52
  )
55
53
  end
56
54
 
@@ -1,3 +1,3 @@
1
1
  module Athens
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schulte
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-athena