Skip to content

path style access #6340

@simonelbaz

Description

@simonelbaz

Is your feature request related to a problem? Please describe.

It would be nice to have path style access support to S3 storage. This feature is deprecated but some environments still use it and do not support virtual host style.

By the way, Opensearch supports it (https://docs.opensearch.org/latest/tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore/#amazon-s3):

s3.client.default.path_style_access: false # whether to use the deprecated path-style bucket URLs.

Describe the solution you'd like

I would like to submit a PR if it is OK for the data-prepper maintainers. This PR would allow the user to enable path style access to S3 storage.

Describe alternatives you've considered (Optional)
The environment variable does not seem to be taken into account by the software.amazon.awssdk library:

AWS_S3_FORCE_PATH_STYLE: "true"

I have also tried to use configand credentials files. The addressing_style also is not used by the library:

[default]
region = us-east-1
s3 =
  endpoint_url = https://{{ s3_endpoint }}
  signature_version = s3v4
  addressing_style = path

From this link https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html, it seems not possible to activate path style from JVM settings or environment variables.

Additional context
data-prepper version 2.13.0, docker image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Unplanned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions