Skip to content

Code from the 02/27/2020 presentation: Amazon S3 with `boto3`

Notifications You must be signed in to change notification settings

NH-Python/amazon-s3-boto3

Repository files navigation

Amazon S3 with boto3

Presentation Slides

Initial Setup

(These steps work for me; they may need to be tweaked to run in your environment)

  1. Create and activate a virtual environment
    $ pyenv shell 3.8.1
    $ python -m venv venv
    $ source venv/bin/activate
    (venv)$
    
  2. Install required packages
    (venv)$ pip install -r requirements.txt
    
  3. 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)
  4. Update the path in .env to reflect the path to the .awsconfig file you created above.

Running Scripts

  1. Activate the virtual environment
    $ source venv/bin/activate
    (venv)$
    
  2. Set the environment variables
    (venv)$ source .env
    
  3. Execute script
    (venv)$ ./<script_name> 
    

About

Code from the 02/27/2020 presentation: Amazon S3 with `boto3`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published