'Factory for EasyEC2 class that attempts to load AWS credentials from
the StarCluster config file. Returns an EasyEC2 object if
successful.'

def get_easy_ec2(self):

    try:
        ec2 = awsutils.EasyEC2(**self.aws)
        return ec2
    except TypeError:
        raise exception.ConfigError('no    aws    credentials    found')
