Colin Panisset

If there's no profile defined, assume we will use environment variables

...@@ -29,7 +29,11 @@ class Kappa(object): ...@@ -29,7 +29,11 @@ class Kappa(object):
29 def __init__(self, config): 29 def __init__(self, config):
30 self.config = config 30 self.config = config
31 self.session = botocore.session.get_session() 31 self.session = botocore.session.get_session()
32 - self.session.profile = config['profile'] 32 + # otherwise, assume we'll use environment variables
33 + if 'profile' in config:
34 + self.session.profile = config['profile']
35 + else:
36 + self.session.profile = None
33 self.region = config['region'] 37 self.region = config['region']
34 38
35 def create_update_roles(self, stack_name, roles_path): 39 def create_update_roles(self, stack_name, roles_path):
......