Skip to content

Simple and easy to use Flask app to upload files to Amazon S3. Based on Python, Flask, and using Boto3. Securely storing your AWS credentials as environment variables. Quick AWS S3 Flask uploader example.

License

Notifications You must be signed in to change notification settings

clarkyeah/simple-flask-s3-uploader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Flask AWS S3 Uploader

Simple and quick AWS S3 upload capability for Flask using Boto3 & env variables

Download and install locally

  1. git clone git@github.com:jelmerdejong/simple-flask-s3-uploader.git
  2. cd simple-flask-s3-uploader
  3. mkvirtualenv simple-flask-s3-uploader
  4. pip install -r requirements.txt

Set local environment variables

Open your environments postactive file (nano $VIRTUAL_ENV/bin/postactivate) and add the following lines:

cd ~/Projects/simple-flask-s3-uploader
export APP_SETTINGS="config.DevelopmentConfig"
export SECRET_KEY="your-random-secret-key"
export S3_BUCKET="your-bucket-name"
export S3_KEY="your-aws-secret-key"
export S3_SECRET_ACCESS_KEY="your-aws-secret-access-key"

Run it!

  1. export FLASK_APP=app.py
  2. flask run

About

Simple and easy to use Flask app to upload files to Amazon S3. Based on Python, Flask, and using Boto3. Securely storing your AWS credentials as environment variables. Quick AWS S3 Flask uploader example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.0%
  • HTML 15.0%