diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 1bed705dc..1dad5e249 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -2428,6 +2428,11 @@ See [AWS Docs on Dualstack Endpoints](https://docs.aws.amazon.com/AmazonS3/lates See: [AWS S3 Transfer acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration-examples.html)`, Default: false, Advanced: true, + }, { + Name: "use_arn_region", + Help: `If true, enables arn region support for the service.`, + Default: false, + Advanced: true, }, { Name: "leave_parts_on_error", Provider: "AWS", @@ -2975,6 +2980,7 @@ type Options struct { ForcePathStyle bool `config:"force_path_style"` V2Auth bool `config:"v2_auth"` UseAccelerateEndpoint bool `config:"use_accelerate_endpoint"` + UseARNRegion bool `config:"use_arn_region"` LeavePartsOnError bool `config:"leave_parts_on_error"` ListChunk int32 `config:"list_chunk"` ListVersion int `config:"list_version"` @@ -3339,6 +3345,7 @@ func s3Connection(ctx context.Context, opt *Options, client *http.Client) (s3Cli options = append(options, func(s3Opt *s3.Options) { s3Opt.UsePathStyle = opt.ForcePathStyle s3Opt.UseAccelerate = opt.UseAccelerateEndpoint + s3Opt.UseARNRegion = opt.UseARNRegion // FIXME maybe this should be a tristate so can default to DualStackEndpointStateUnset? if opt.UseDualStack { s3Opt.EndpointOptions.UseDualStackEndpoint = aws.DualStackEndpointStateEnabled