-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support Wasabi S3 storage #759
Comments
I think it's from the code here:
Anyway as a workaround, you may set os env "AWS_REGION" and have a try since AWS CONFIG init as below:
|
Unfortunately, setting AWS_REGION appears to have no effect. I think configuring the endpoint takes precedence in that case, as it provides both endpoint and region. But thanks, anyway! |
Sorry for I have no env for testing, but from my code reading, it should work.. lol.. If that does not work, try to add similar code in https://github.com/cortexproject/cortex/blob/master/pkg/chunk/aws/s3_storage_client.go#L50 and see if it works. |
I tried to connect to Scaleway S3-compatible storage and encountered the same issue to set the region. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
@sandlis I got my PR merged for above issue weaveworks/common@a2b2a63 |
why does it use harcoded |
@mizeng any news on the bump of weaveworks/common ? |
@Sh4d1 Sorry for I did not take more time in this since I did not use wasabi s3. |
@mizeng did a little digging, and apparently we just need to wait for a PR on weaveworks/common to be merged, and then we can replace the fork, and it should work :) |
@Sh4d1 It's all blocked by #945 which relies on an abandoned PR by @tomwilkie and weaveworks/common#167. |
Is your feature request related to a problem? Please describe.
I'm trying to use the Wasabi S3 storage (https://www.wasabi.com) as a storage backend for Loki. Unfortunately, this is not currently possible. Although you can specify custom S3 endpoints, it appears that Loki automatically sets
region
toDummy
when doing so. Wasabi, however, expects an actual region (eu-central-1
in my case) and consequently rejects the Loki API requests as invalid.Describe the solution you'd like
I think an explicit config option to set the region would be the easiest option. (Or if there already is an option to do so, I couldn't find it :) )
Describe alternatives you've considered
I've used the csi-s3 persistent volume driver so that Loki can store chunks to a
filesystem
. This appears to work ok, so I'm good for now. But direct support for Wasabi would still be appreciated :)Additional context
My storage config looks like this:
The text was updated successfully, but these errors were encountered: