-
Notifications
You must be signed in to change notification settings - Fork 270
Description
Some tools are configured to write to s3 with no option to configure the storageclass. This feature request will let those tools use the proxy with default or no storageclass and the proxy will write to the proxied s3 with a target storageclass.
We need that because some tools predates the creation of the storageclass feature brought up by AWS. We also have case where these tools has this option for AWS but not for S3 compatible, however minio or ceph let you build s3 solution with different storage class.
The natural approach would be to change those tools to add the storageclass information in their PUT request but often this feature is not prioritised by the development team for different reasons like upgrading their library create too many frictions with their existing codebase.
Here an example of how one would use this middleware
s3proxy.storageclass.default=STANDARD_IA
s3proxy.storageclass.STANDARD=STANDARD_IA
this configuration make sure that no information on the storageclass (default) or the information STANDARD storageclass is provided then s3proxy will write to the STANDARD_IA storageclass.
In this situation
s3proxy.storageclass.GLACIER=HDD_SC
Any request made for putting the object on GLACIER will be translated in HDD_SC.
This request should also work the other way, any GET request that return HDD_SC should be transformed in GLACIER .