lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.3.0 vs lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.3.1
- old
+ new
@@ -82,10 +82,12 @@
config_param :s3_region, :string, default: ENV["AWS_REGION"] || "us-east-1"
desc "Use 's3_region' instead"
config_param :s3_endpoint, :string, default: nil
desc "If true, S3 Transfer Acceleration will be enabled for uploads. IMPORTANT: You must first enable this feature on your destination S3 bucket"
config_param :enable_transfer_acceleration, :bool, default: false
+ desc "If true, use Amazon S3 Dual-Stack Endpoints. Will make it possible to use either IPv4 or IPv6 when connecting to S3."
+ config_param :enable_dual_stack, :bool, default: false
desc "If false, the certificate of endpoint will not be verified"
config_param :ssl_verify_peer, :bool, :default => true
desc "The format of S3 object keys"
config_param :s3_object_key_format, :string, default: "%{path}%{time_slice}_%{index}.%{file_extension}"
desc "If true, the bucket name is always left in the request URI and never moved to the host as a sub-domain"
@@ -221,9 +223,10 @@
def start
options = setup_credentials
options[:region] = @s3_region if @s3_region
options[:endpoint] = @s3_endpoint if @s3_endpoint
options[:use_accelerate_endpoint] = @enable_transfer_acceleration
+ options[:use_dualstack_endpoint] = @enable_dual_stack
options[:http_proxy] = @proxy_uri if @proxy_uri
options[:force_path_style] = @force_path_style
options[:compute_checksums] = @compute_checksums unless @compute_checksums.nil?
options[:signature_version] = @signature_version unless @signature_version.nil?
options[:ssl_verify_peer] = @ssl_verify_peer