Open buxm opened 1 year ago
Setting up my server, and was browsing through the conf params for AWS. Expected the ability to use S3 compatible such as Minio. Was not seeing the URL variable. Alas, I see it's not possible as yet.
So, here I am adding my +1
It would be great if it was possible to upload files to an S3 API compatible object storage service different from AWS S3, such as Google Cloud Platform, Oracle Cloud, self-hosted Minio and many others. This could be achieved by adding support for the following variables:
AWS_URL
: URL of the object storage endpoint (mandatory)AWS_CA_BUNDLE
: The path to a custom certificate bundle to use when establishing SSL/TLS connections (optional)AWS_USE_SSL
: Whether or not to use SSL (defaulttrue
)AWS_VERIFY_SSL
: Whether or not to verify SSL certificates (defaulttrue
)Such variables could then be used in
boto3.client()
orboto3.resource()
to connect to alternative object storage services (usingAWS_URL
) and potentially to self hosted ones (with own CA or with self signed certificates or even without SSL) using the other variables. Examples of boto3 usage with non-AWS S3 API compatible object storage services: https://medium.com/oracledevs/use-aws-python-sdk-to-upload-files-to-oracle-cloud-infrastructure-object-storage-b623e5681412 https://docs.outscale.com/en/userguide/Boto3.html