def aws_output(args, aws_config):
 environment = os.environ.copy()
 environment.update(aws_config)
 return check_output((['aws'] + args), env=environment)

def aws_output ( args , aws_config ) : environment = os . environ . copy ( ) environment . update ( aws_config ) return check_output ( ( [ 'aws' ] + args ) , env = environment )
run the aws command line tool with the supplied subcommand args and the supplied aws_config as environment variables .