Aws S3 Boto Python

Connecting Django with AWS S3 using Boto by Eric on February 1, 2020

Amazon Web Services (AWS) has been revolutionary in getting servers and processing power to virtually anyone on the cheap.  You can host your web site there, process large sets of data, even back up your personal files to an Amazon S3 server.  Even if your site isn't hosted directly on AWS you can still benefit by hosting your files from there.  A lot of sites do this to help off load the bandwidth costs onto Amazon because in many cases it is cheaper than the bandwidth costs for your site.  In this post I want to go over how to access these files stored on an S3 instance of AWS from Python using a plugin known as Boto.  You can read the Boto S3 commands at their website.  There are a lot of them and I am only going over the basics here. Boto is a Python interface to Amazon Web Services and helps you interact with every aspect of AWS.  I'm just going to focus on the S3 portion since that is where we store files for clients.  We designed a way for clients to view and store files thr...