-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DisableHostPrefix doesn't change s3 client behavior #364
Labels
bug
This issue is a bug.
Comments
jasdel
added a commit
that referenced
this issue
Oct 27, 2020
…oint or not Adds a new member to the `aws.Endpoint` struct, `HostnameImmutable`. This member directs if the SDK is allowed to modify the resolved endpoint to meet the requirements of the API. If `HostnameImmutable` is true, the SDK will not attempt to modify the hostname via any customizations, or prefix behavior. Flag defaults to false. - Fixes #827 (SDK requiring region for endpoint resolution) - Fixes #328 - Fixes #364 - Related to #836 When Amazon S3 Accesspoint support is implemented. - Related to #479 Depends on aws/smithy-go#222
jasdel
added a commit
that referenced
this issue
Oct 27, 2020
…oint or not Adds a new member to the `aws.Endpoint` struct, `HostnameImmutable`. This member directs if the SDK is allowed to modify the resolved endpoint to meet the requirements of the API. If `HostnameImmutable` is true, the SDK will not attempt to modify the hostname via any customizations, or prefix behavior. Flag defaults to false. - Fixes #827 (SDK requiring region for endpoint resolution) - Fixes #328 - Fixes #364 - Related to #836 When Amazon S3 Accesspoint support is implemented. - Related to #479 Depends on aws/smithy-go#222
jasdel
added a commit
that referenced
this issue
Oct 27, 2020
Adds a new member to the `aws.Endpoint` struct, `HostnameImmutable`. This member directs if the SDK is allowed to modify the resolved endpoint to meet the requirements of the API. If `HostnameImmutable` is true, the SDK will not attempt to modify the hostname via any customizations, or prefix behavior. Flag defaults to false. - Fixes #827 (SDK requiring region for endpoint resolution) - Fixes #328 - Fixes #364 - Related to #836 When Amazon S3 Accesspoint support is implemented. - Related to #479 Depends on aws/smithy-go#222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #328
Version of AWS SDK for Go?
v0.10.0
Version of Go (
go version
)?go version go1.13rc1 linux/amd64
What issue did you see?
When setting
DisableHostPrefix
totrue
in theaws.Config
struct, the s3 client does not setForcePathStyle
totrue
. This causes problems when generating a config to target a local endpoint (localstack) for integration testing purposes.If I am misunderstanding the purpose of the
DisableHostPrefix
flag, please let me know!Steps to reproduce
aws.Config
withDisableHostPrefix
set totrue
.s3.Client
with that config.ForcePathStyle
flag on thes3.Client
.The text was updated successfully, but these errors were encountered: