Commit 4bfe395a authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

Takes key as command line argument

parent 241b87be
import boto3
import uuid
import sys
if(len(sys.argv) > 1):
key_string = str(sys.argv[1])
def create_bucket_name(bucket_prefix):
# The generated bucket name must be between 3 and 63 chars long
......@@ -41,7 +46,7 @@ first_file_name = "ThisIsMyKey1"
Filename="EmperorWu.txt", Bucket=first_bucket_name,
# s3_client.download_file(first_bucket_name, first_file_name).download_file(
# "downloadedFile.txt")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment