coralnet icon indicating copy to clipboard operation
coralnet copied to clipboard

Update to boto3

Open StephenChan opened this issue 8 years ago • 2 comments

I was previously wondering if this would involve replacing django-storages with some other solution, but it turns out that django-storages just added boto3 support in August. (See their journey here: https://github.com/jschneier/django-storages/pull/111) Looking at their changelog, getting boto3 support means upgrading to django-storages 1.5.0 or later.

I read in an issue or two that the django-storages readthedocs site may be out of date, so I'm not sure if any configuration changes are needed to make it work with boto3. So it'll be worth perusing their repo and issues a bit more to confirm this.

We also have some direct calls to boto, mainly related to Amazon SQS. Those will certainly have to be edited to move from boto 2 to 3. Note that according to boto's README, boto3 "can be used side-by-side with Boto [2] in the same project", so this isn't absolutely necessary to update simultaneously with the django-storages boto. It's good to have everything consistent and up to date if we can though.

StephenChan avatar Oct 24 '16 23:10 StephenChan

Whenever we update to boto3, we can upgrade django-storages to 1.9 or later.

StephenChan avatar Apr 25 '21 01:04 StephenChan

One use-case was removed in this commit: https://github.com/beijbom/coralnet/commit/eb8c1043867b4d804ca6e91318786de39af6a104. The remaining direct calls are used sparingly in management commands. I'll clean those up later.

beijbom avatar Apr 25 '21 22:04 beijbom

Completed with PR #462.

StephenChan avatar Jan 05 '23 00:01 StephenChan