django-s3-storage icon indicating copy to clipboard operation
django-s3-storage copied to clipboard

Is it possible to use this library for yandex object storage?

Open rnmhdn opened this issue 4 years ago • 3 comments

I tried to configure it to work with yandex but I kept getting The AWS Access Key Id you provided does not exist in our records.

keep in mind that the same config works with django-storages.

rnmhdn avatar Dec 21 '20 09:12 rnmhdn

django-s3-storage doesn't explicitly support or not-support yandex object storage. It supports S3, so if something else exposes an S3-like interface, I'd imagine it would work.

If you can figure out the source of the problem, I'd take an MR.

On Mon, 21 Dec 2020 at 09:22, levi scott [email protected] wrote:

I tried to configure it to work with yandex but I kept getting The AWS Access Key Id you provided does not exist in our records.

keep in mind that the same config works with django-storages.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-s3-storage/issues/119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEKCGVBDTCFXDALQZOUEDSV4HT5ANCNFSM4VD6I7RQ .

etianen avatar Dec 21 '20 09:12 etianen

I think it has to do with how the url is constructed.

rnmhdn avatar Dec 28 '20 10:12 rnmhdn

I think you can just set the setting AWS_S3_ENDPOINT_URL to the correct URL (ie: storage.yandexcloud.net). I don't have a yandex account so can't really test it. But if the compatibility they claim is correct, this should do it.

MichaelAnckaert avatar Jan 09 '21 16:01 MichaelAnckaert