lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.0.0.rc4 vs lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.0.0.rc5

- old
+ new

@@ -20,10 +20,12 @@ desc "Path prefix of the files on S3" config_param :path, :string, default: "" desc "The Server-side encryption algorithm used when storing this object in S3 (AES256, aws:kms)" config_param :use_server_side_encryption, :string, default: nil + desc "Use aws-sdk-ruby bundled cert" + config_param :use_bundled_cert, :bool, default: false desc "AWS access key id" config_param :aws_key_id, :string, default: nil, secret: true desc "AWS secret key." config_param :aws_sec_key, :string, default: nil, secret: true config_section :assume_role_credentials, multi: false do @@ -126,9 +128,11 @@ def configure(conf) compat_parameters_convert(conf, :buffer, :formatter, :inject) super + + Aws.use_bundled_cert! if @use_bundled_cert if @s3_endpoint && @s3_endpoint.end_with?('amazonaws.com') raise Fluent::ConfigError, "s3_endpoint parameter is not supported for S3, use s3_region instead. This parameter is for S3 compatible services" end