code for article pfeilbr/boto-playground
learn and experiment with Boto 3 / AWS SDK for Python
Initial setup
git clone <this repo>
# ensure python 3.x
python3 -m venv venv
source venv/bin/activate
# install dependencies
pip install boto3
pip install -U python-dotenv
# save dependencies
pip freeze > requirements.txt
Running
# setup virtualenv
source venv/bin/activate
pip install -r requirements.txt
# run script
python s3-example.py
# exit virtualenv / deactivate
deactivate
Twitter • Reddit