SOutaHI / upload2s3

upload video files by boto3 to s3 buckets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upload_s3

upload video files by boto3 to s3 buckets

how to use

  • create .env file and write info for access s3.
  • load .env by dotenv
AWS_ACCESS_KEY_ID='**********'
AWS_SECRET_ACCESS_KEY='**********'
AWS_DEFAULT_REGION='ap-northeast-1'
  • set video dir path and video file name, and execution
python upload_video.py $VIDEO_DIR_PATH $VIDEO_FILE_NAME $BUCKET_NAME

performance

  • uploading time is 1.2 ~ 1.4sec for about 10MB file.

ref

simple upload

improve upload speed

error handling

About

upload video files by boto3 to s3 buckets


Languages

Language:Python 100.0%