Skip to content

Commit

Permalink
Add config_param for AWS S3 Server Side Encryption
Browse files Browse the repository at this point in the history
Added config_param “use_server_side_encryption” to use server-side
encryption with Amazon S3-managed encryption keys

server-side encryption is not enabled by default.
  • Loading branch information
Alec Oot committed Feb 12, 2015
1 parent 5500bd9 commit fdcc4f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/out_s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def initialize

config_param :path, :string, :default => ""
config_param :use_ssl, :bool, :default => true
config_param :use_server_side_encryption, :string, :default => nil
config_param :aws_key_id, :string, :default => nil
config_param :aws_sec_key, :string, :default => nil
config_param :s3_bucket, :string
Expand Down Expand Up @@ -76,6 +77,7 @@ def start
options[:region] = @s3_region if @s3_region
options[:proxy_uri] = @proxy_uri if @proxy_uri
options[:use_ssl] = @use_ssl
options[:s3_server_side_encryption] = @use_server_side_encryption

@s3 = AWS::S3.new(options)
@bucket = @s3.buckets[@s3_bucket]
Expand Down

0 comments on commit fdcc4f2

Please sign in to comment.