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.
['aws', 'aws-s3', 'blueprint', 'boto3', 'example', 'flask', 'python', 's3']
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.
 Simple Flask AWS S3 Uploader
Simple and quick AWS S3 upload capability for Flask using Boto3 &amp; 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`