using keys as shown in cmc PR. Checking for presence, etc.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
'''
|
'''
|
||||||
put access and secret key here. All modules should pick it up
|
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 = ''
|
AWS_SECRET_ACCESS_KEY = ''
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import boto3
|
import boto3
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
from config import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("-s", "--step", help="list the step you would like to run",
|
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
|
# 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
|
# We need the user to tell us the step they want to proceed on
|
||||||
if (args.step == 1):
|
if (args.step == 1):
|
||||||
|
|||||||
Reference in New Issue
Block a user