def format_output(groups, flag):
    """return formatted string for instance"""
    out = []
    line_format = '{0}\t{1}\t{2}\t{3}\t{4}\t{5}'
    for g in groups['AutoScalingGroups']:
        out.append(line_format.format(g['AutoScalingGroupName'], g[
            'LaunchConfigurationName'], 'desired:' + str(g[
            'DesiredCapacity']), 'max:' + str(g['MaxSize']), 'min:' + str(g
            ['MinSize']), g['CreatedTime'].strftime('%Y/%m/%d %H:%M:%S')))
    return out
