Boto3, S3, Glacier

If you haven’t already, install the aws cli:

sudo apt install awscli

Run it and check the results:

aws configure
cat ~/.aws/credentials
cat ~/.aws/

My aws config file:


And then:

git clone
cd boto3/
virtualenv -p /usr/bin/python3 venv
. venv/bin/activate
pip install -r requirements.txt
pip install -e .

When you are done, you can deactivate the virtualenv:


Run a simple test:

import boto3

s3 = boto3.resource('s3')
for bucket in s3.buckets.all():

The docs are probably also on the web, but if you want, you can make the docs locally, which takes perhaps two or three minutes on a fast machine:

pip install -r requirements-docs.txt
cd docs
make html

Optionally, run some tests, which take considerably longer:

cd ..
sudo apt-get install tox