using keys as shown in cmc PR. Checking for presence, etc.

This commit is contained in:
cktricky
2017-12-28 09:59:37 -05:00
parent 8485aeacdd
commit 20b0d83ad5
2 changed files with 6 additions and 2 deletions

View File

@@ -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 = ''

View File

@@ -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):