From 20b0d83ad57c0f5a0fcc5643e77c92c4af52d688 Mon Sep 17 00:00:00 2001 From: cktricky Date: Thu, 28 Dec 2017 09:59:37 -0500 Subject: [PATCH] using keys as shown in cmc PR. Checking for presence, etc. --- config.py | 2 +- weirdAAL.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 1579d08..e206eea 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,5 @@ ''' put access and secret key here. All modules should pick it up ''' -AWS_ACCESS_KEY_ID = '' +AWS_ACCESS_KEY_ID = 'test' AWS_SECRET_ACCESS_KEY = '' diff --git a/weirdAAL.py b/weirdAAL.py index 9e9c7ed..d20a4c6 100755 --- a/weirdAAL.py +++ b/weirdAAL.py @@ -9,6 +9,7 @@ import boto3 import argparse import os +from config import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY parser = argparse.ArgumentParser() parser.add_argument("-s", "--step", help="list the step you would like to run", @@ -19,7 +20,10 @@ args = parser.parse_args() # Need to figure out if we have keys in the ENV or not -#print os.environ['AWS_ACCESS_KEY_ID'] +if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: + print("We've got it") +else: + print("Please supply keys as outlined in our README.md file") # We need the user to tell us the step they want to proceed on if (args.step == 1):