Skip to content

Instantly share code, notes, and snippets.

View sannithibalaji's full-sized avatar

sannithibalaji sannithibalaji

View GitHub Profile
@sannithibalaji
sannithibalaji / UploadDirS3.py
Created September 4, 2019 14:26 — forked from feelinc/UploadDirS3.py
Upload folder contents to AWS S3
#!/usr/bin/python
import os
import sys
import boto3
# get an access token, local (from) directory, and S3 (to) directory
# from the command-line
local_directory, bucket, destination = sys.argv[1:4]