Skip to content

Instantly share code, notes, and snippets.

@peace098beat
Created July 26, 2017 09:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peace098beat/758f5f3ad29aeb22b97c0429b9a77046 to your computer and use it in GitHub Desktop.
Save peace098beat/758f5f3ad29aeb22b97c0429b9a77046 to your computer and use it in GitHub Desktop.
s3 upload
def s3_upload(file_name:str):
import boto3
print("s3 ", file_name)
s3_client = boto3.client('s3')
bucket_name = 'nohara-dnn-workspace'
s3_client.upload_file(file_name, bucket_name, "dataset/"+Path(file_name).name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment