(These steps work for me; they may need to be tweaked to run in your environment)
- Create and activate a virtual environment
$ pyenv shell 3.8.1 $ python -m venv venv $ source venv/bin/activate (venv)$
- Install required packages
(venv)$ pip install -r requirements.txt
- Create a file named
.awsconfig
file containing your AWS user's access key id and secret. DO NOT check this file into git (it's ignored using.gitignore
by default) - Update the path in
.env
to reflect the path to the.awsconfig
file you created above.
- Activate the virtual environment
$ source venv/bin/activate (venv)$
- Set the environment variables
(venv)$ source .env
- Execute script
(venv)$ ./<script_name>