-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
s3-like compatibility #112
Comments
If you are inputting the URLs can you use virtual host-style URLs instead? AWS has been trying to deprecate path style URLs for a while https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access so it seem like they should be 1:1 equivalent. |
@bdon Thanks for getting back, unfortunately our storage provider does not offer virtual ones, only path style are supported. |
Which storage provider or storage engine is this so others can reproduce? |
@bdon Openstack Swift, but I suppose you can also use minio to replicate. |
* this is to allow sdk v1 query params like s3ForcePathStyle, to work with Minio, etc.
PR here: #113 Currently we force the use of awssdkv2, but v1 is necessary to support those flags and work with Minio. Defaulting to v1 shouldn't have any functional impact. The alternative is to add more storage implementation-specific logic to go-pmtiles but that would defeat the purpose of using the gocloud abstraction. Aligns with suggested way of using Minio in gocloud docs: https://gocloud.dev/howto/blob/#s3-compatible |
Don't force aws sdk v2 for s3 buckets [#112] * this is to allow sdk v1 query params like s3ForcePathStyle, to work with Minio and other storage systems: see https://gocloud.dev/howto/blob/#s3-compatible
I've merged it into |
@bdon confirmed, thanks a lot! |
FYI, AWS is putting aws-sdk-go v1 into maintenance mode; v2 will be the default going forward: https://github.com/google/go-cloud/releases/tag/v0.39.0 For the next minor version I am bumping the gocloud version |
@bdon Thanks for letting me know, what is the expect change? It seems unclear to me |
Based on those release notes Gocloud will be removing aws-sdk-v1 in early 2025. The AWS SDK V2 definitely supports forcing path-style S3 buckets, not quite sure how it's exposed through gocloud S3 connection strings. |
Seems to be the same: https://github.com/google/go-cloud/blob/master/aws/aws.go#L99 |
1.22 defaults to awsv2: https://github.com/protomaps/go-pmtiles/releases/tag/v1.22.0 |
@bdon upgraded and it worked out of the box :) |
while gocloud seems to support
s3ForcePathStyle=true
, it does not seem possible to use it with pmtiles:The text was updated successfully, but these errors were encountered: