-
Notifications
You must be signed in to change notification settings - Fork 547
feat(s3): Add support for custom S3 endpoint #10589
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
Conversation
hermanschaaf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good, but missing documentation (I don't think AWS_S3_ENDPOINT is a standard AWS environment variable?)
|
|
||
| - `endpoint` (string) (optional, default empty) | ||
|
|
||
| Endpoint to use for S3 API calls. This is useful for S3-compatible storage services such as MinIO. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can include an example that shows how to use this in conjunction with an AWS_S3_ENDPOINT environment variable (we can do this in a follow-up)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hermanschaaf What do you mean, there's no AWS_S3_ENDPOINT env var any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry yeah I mean, if a user was set on using an environment variable called AWS_S3_ENDPOINT (like I think the user who requested this was), then they can still do so by doing:
endpoint: "${AWS_S3_ENDPOINT}"
which I think is worth pointing out in the docs
🤖 I have created a release *beep* *boop* --- ## [4.2.0](plugins-destination-s3-v4.1.0...plugins-destination-s3-v4.2.0) (2023-05-09) ### Features * **s3:** Add support for custom S3 endpoint ([#10589](#10589)) ([48c6379](48c6379)) ### Bug Fixes * **deps:** Update module github.com/aws/aws-sdk-go-v2/config to v1.18.23 ([#10576](#10576)) ([eeb13d5](eeb13d5)) * **deps:** Update module github.com/aws/aws-sdk-go-v2/feature/s3/manager to v1.11.65 ([#10582](#10582)) ([4ed90e3](4ed90e3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes #9739
The doc for the SDK feature is here https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/endpoints/