Skip to content

Commit 7c801ff

Browse files
authored
Merge pull request #316 from andreaso/support-out-dual-stack
Support S3 Dual-Stack Endpoints in output plugin
2 parents dd6a0f2 + 711db40 commit 7c801ff

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ See also AWS article: [Working with Regions](https://aws.amazon.com/blogs/develo
301301

302302
Enable [S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) for uploads. **IMPORTANT**: For this to work, you must first enable this feature on your destination S3 bucket.
303303

304+
**enable_dual_stack**
305+
306+
Enable [Amazon S3 Dual-Stack Endpoints](https://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html) for uploads. Will make it possible to use either IPv4 or IPv6 when connecting to S3.
307+
304308
**use_bundled_cert**
305309

306310
For cases where the default SSL certificate is unavailable (e.g. Windows), you can set this option to true in order to use the AWS SDK bundled certificate. Default is false.

lib/fluent/plugin/out_s3.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def initialize
8484
config_param :s3_endpoint, :string, default: nil
8585
desc "If true, S3 Transfer Acceleration will be enabled for uploads. IMPORTANT: You must first enable this feature on your destination S3 bucket"
8686
config_param :enable_transfer_acceleration, :bool, default: false
87+
desc "If true, use Amazon S3 Dual-Stack Endpoints. Will make it possible to use either IPv4 or IPv6 when connecting to S3."
88+
config_param :enable_dual_stack, :bool, default: false
8789
desc "If false, the certificate of endpoint will not be verified"
8890
config_param :ssl_verify_peer, :bool, :default => true
8991
desc "The format of S3 object keys"
@@ -223,6 +225,7 @@ def start
223225
options[:region] = @s3_region if @s3_region
224226
options[:endpoint] = @s3_endpoint if @s3_endpoint
225227
options[:use_accelerate_endpoint] = @enable_transfer_acceleration
228+
options[:use_dualstack_endpoint] = @enable_dual_stack
226229
options[:http_proxy] = @proxy_uri if @proxy_uri
227230
options[:force_path_style] = @force_path_style
228231
options[:compute_checksums] = @compute_checksums unless @compute_checksums.nil?

0 commit comments

Comments
 (0)